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 721517 cfa892d6aa848e0c08b699d64c1a271521ecf4a4
parent 721516 71f635d9a86f62ec189eb1cfdc8746414c09d0ee
child 721518 c6be6571ad126caf4349f92c08d4d2493dea1502
push id95856
push userjwatt@jwatt.org
push dateWed, 17 Jan 2018 10:55:16 +0000
reviewersbirtles
bugs1207734
milestone59.0a1
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;
   }