Bug 1207734 - Part 1.c. Fix coding style of HasTransformStyle. draft
authorcku <cku@mozilla.com>
Mon, 15 Jan 2018 11:12:25 +0800
changeset 720247 0b84734c0e64709ef0c0d4239ef8cc0a1068bdd6
parent 720218 62a57ffe6c6137efbf68bbc9843e0cb0a170003e
child 720248 1a75f7765d854910fbb10b2fd31427ef1d9524c6
push id95487
push userbmo:cku@mozilla.com
push dateMon, 15 Jan 2018 05:48:29 +0000
bugs1207734
milestone59.0a1
Bug 1207734 - Part 1.c. Fix coding style of HasTransformStyle. 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;
   }