Bug 1491442 - Fix field order. r=fix CLOSED TREE
authorMarkus Stange <mstange@themasta.com>
Thu, 15 Aug 2019 21:52:55 -0400
changeset 488418 03a1e5d857b555b7f400a94ca904786cba968c50
parent 488417 0822612163d60c8c8deb17f0ab5c59de79b05a66
child 488419 76f8cb64876681e93d675465b48c4a6c8b84bc5d
push id36443
push userccoroiu@mozilla.com
push dateFri, 16 Aug 2019 09:48:15 +0000
treeherdermozilla-central@5d4cbfe103bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfix
bugs1491442
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1491442 - Fix field order. r=fix CLOSED TREE
gfx/layers/NativeLayerCA.mm
--- a/gfx/layers/NativeLayerCA.mm
+++ b/gfx/layers/NativeLayerCA.mm
@@ -21,17 +21,17 @@ using gfx::IntRegion;
 
 /* static */ already_AddRefed<NativeLayerRootCA> NativeLayerRootCA::CreateForCALayer(
     CALayer* aLayer) {
   RefPtr<NativeLayerRootCA> layerRoot = new NativeLayerRootCA(aLayer);
   return layerRoot.forget();
 }
 
 NativeLayerRootCA::NativeLayerRootCA(CALayer* aLayer)
-    : mRootCALayer([aLayer retain]), mMutex("NativeLayerRootCA") {}
+    : mMutex("NativeLayerRootCA"), mRootCALayer([aLayer retain]) {}
 
 NativeLayerRootCA::~NativeLayerRootCA() {
   MOZ_RELEASE_ASSERT(mSublayers.IsEmpty(),
                      "Please clear all layers before destroying the layer root.");
 
   // FIXME: mMutated might be true at this point, which would indicate that, even
   // though mSublayers is empty now, this state may not yet have been synced to
   // the underlying CALayer. In other words, mRootCALayer might still have sublayers.