Bug 1207734 - Part 1.c. Fix coding style of HasTransformStyle. r=birtles draft
authorcku <cku@mozilla.com>
Mon, 15 Jan 2018 11:12:25 +0800
changeset 749182 a5b445762b46d3c247e4a57864c66454f5d58218
parent 749181 f2dc6cad129e9f5c8c8c056c934d2ed3f2e30155
child 749183 04fe9115ce1d189155ff9b2c89b1a656a55dd1c9
push id97349
push userbbirtles@mozilla.com
push dateWed, 31 Jan 2018 02:59:16 +0000
reviewersbirtles
bugs1207734
milestone60.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
@@ -2748,17 +2748,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;
   }