Bug 1207734 - Part 1.c. Fix coding style of HasTransformStyle. r=birtles
MozReview-Commit-ID: 3UgIrO5qLFq
--- 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;
}