| Index: Source/core/rendering/compositing/CompositingReasonFinder.cpp
|
| diff --git a/Source/core/rendering/compositing/CompositingReasonFinder.cpp b/Source/core/rendering/compositing/CompositingReasonFinder.cpp
|
| index 9ecf1738874764909b33ecdaefd95d127a229649..1714fd8b4d26a0eb6f8df567d3724d3b83209c6a 100644
|
| --- a/Source/core/rendering/compositing/CompositingReasonFinder.cpp
|
| +++ b/Source/core/rendering/compositing/CompositingReasonFinder.cpp
|
| @@ -81,7 +81,7 @@ CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle
|
|
|
| CompositingReasons reasons = CompositingReasonNone;
|
|
|
| - RenderStyle* style = renderer->style();
|
| + const RenderStyle* style = renderer->style();
|
|
|
| if (requiresCompositingForTransform(renderer))
|
| reasons |= CompositingReason3DTransform;
|
| @@ -170,7 +170,7 @@ CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons
|
| return directReasons;
|
| }
|
|
|
| -bool CompositingReasonFinder::requiresCompositingForAnimation(RenderStyle* style) const
|
| +bool CompositingReasonFinder::requiresCompositingForAnimation(const RenderStyle* style) const
|
| {
|
| if (style->subtreeWillChangeContents())
|
| return style->isRunningAnimationOnCompositor();
|
| @@ -192,7 +192,7 @@ bool CompositingReasonFinder::requiresCompositingForScrollBlocksOn(const RenderO
|
| // Note that the other requires* functions run at RenderObject::styleDidChange time and so can rely
|
| // only on the style of their object. This function runs at CompositingRequirementsUpdater::update
|
| // time, and so can consider the style of other objects.
|
| - RenderStyle* style = renderer->style();
|
| + const RenderStyle* style = renderer->style();
|
|
|
| // We should only get here by CompositingReasonScrollBlocksOn being a potential compositing reason.
|
| ASSERT(style->hasScrollBlocksOn() && !renderer->isDocumentElement());
|
|
|