Bug 1473137: Change mOpacityIndices to be an AutoTArray. r=mattwoodrow draft
authorBas Schouten <bschouten@mozilla.com>
Tue, 03 Jul 2018 20:23:53 +0000
changeset 813710 e7d3084c9e05629cea080ee86f1dfbf6c000d626
parent 813709 67ad760d083ac9c48b062616e1305ce017b89443
push id114983
push userbschouten@mozilla.com
push dateTue, 03 Jul 2018 20:24:34 +0000
reviewersmattwoodrow
bugs1473137
milestone63.0a1
Bug 1473137: Change mOpacityIndices to be an AutoTArray. r=mattwoodrow MozReview-Commit-ID: HZMPetxdyrH
layout/painting/FrameLayerBuilder.cpp
--- a/layout/painting/FrameLayerBuilder.cpp
+++ b/layout/painting/FrameLayerBuilder.cpp
@@ -767,17 +767,17 @@ public:
    * All the display items that have been assigned to this painted layer.
    * These items get added by Accumulate().
    */
   nsTArray<AssignedDisplayItem> mAssignedDisplayItems;
   /**
    * Tracks the active opacity markers by holding the indices to PUSH_OPACITY
    * items in |mAssignedDisplayItems|.
    */
-  nsTArray<size_t> mOpacityIndices;
+  AutoTArray<size_t, 2> mOpacityIndices;
 };
 
 struct NewLayerEntry {
   NewLayerEntry()
     : mAnimatedGeometryRoot(nullptr)
     , mASR(nullptr)
     , mClipChain(nullptr)
     , mScrollMetadataASR(nullptr)