Index: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp |
index 1ee5b2d22a5a7dec2d091f2c86020a1f9f2018db..f414c68cf594e11a019bce909050a55b78c4283b 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp |
@@ -74,7 +74,7 @@ CompositingReasonFinder::potentialCompositingReasonsFromStyle( |
const ComputedStyle& style = layoutObject->styleRef(); |
- if (requiresCompositingForTransform(layoutObject)) |
+ if (requiresCompositingForTransform(*layoutObject)) |
reasons |= CompositingReason3DTransform; |
if (style.backfaceVisibility() == BackfaceVisibilityHidden) |
@@ -132,12 +132,12 @@ CompositingReasonFinder::potentialCompositingReasonsFromStyle( |
} |
bool CompositingReasonFinder::requiresCompositingForTransform( |
- LayoutObject* layoutObject) const { |
+ const LayoutObject& layoutObject) { |
// Note that we ask the layoutObject if it has a transform, because the style |
// may have transforms, but the layoutObject may be an inline that doesn't |
// support them. |
- return layoutObject->hasTransformRelatedProperty() && |
- layoutObject->style()->has3DTransform(); |
+ return layoutObject.hasTransformRelatedProperty() && |
+ layoutObject.styleRef().has3DTransform(); |
} |
CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons( |
@@ -171,7 +171,7 @@ CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons( |
} |
bool CompositingReasonFinder::requiresCompositingForAnimation( |
- const ComputedStyle& style) const { |
+ const ComputedStyle& style) { |
if (style.subtreeWillChangeContents()) |
return style.isRunningAnimationOnCompositor(); |