Bug 1207734 - Part 1.c. Fix coding style of HasTransformStyle. r=birtles
☠☠ backed out by 6002f08576ab ☠ ☠
authorcku <cku@mozilla.com>
Mon, 15 Jan 2018 11:12:25 +0800
changeset 453934 cfa892d6aa848e0c08b699d64c1a271521ecf4a4
parent 453933 71f635d9a86f62ec189eb1cfdc8746414c09d0ee
child 453935 c6be6571ad126caf4349f92c08d4d2493dea1502
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1207734
milestone59.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 1207734 - Part 1.c. Fix coding style of HasTransformStyle. r=birtles MozReview-Commit-ID: 3UgIrO5qLFq
layout/style/nsStyleStruct.h
--- a/layout/style/nsStyleStruct.h
+++ b/layout/style/nsStyleStruct.h
@@ -2782,17 +2782,17 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsSt
 
   bool IsContainPaint() const {
     return NS_STYLE_CONTAIN_PAINT & mContain;
   }
 
   /* Returns whether the element has the -moz-transform property
    * or a related property. */
   bool HasTransformStyle() const {
-    return mSpecifiedTransform != nullptr ||
+    return mSpecifiedTransform ||
            mTransformStyle == NS_STYLE_TRANSFORM_STYLE_PRESERVE_3D ||
            (mWillChangeBitField & NS_STYLE_WILL_CHANGE_TRANSFORM);
   }
 
   bool HasPerspectiveStyle() const {
     return mChildPerspective.GetUnit() == eStyleUnit_Coord;
   }