Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1273)

Unified Diff: Source/core/layout/compositing/CompositingReasonFinder.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/compositing/CompositingReasonFinder.cpp
diff --git a/Source/core/layout/compositing/CompositingReasonFinder.cpp b/Source/core/layout/compositing/CompositingReasonFinder.cpp
index b8a7ab3c100fd207c50cdafd03249cfc203b7c43..98fc176b091f3053aa746724389aaa50477fae83 100644
--- a/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -81,7 +81,7 @@ CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle
CompositingReasons reasons = CompositingReasonNone;
- const LayoutStyle& style = renderer->styleRef();
+ const ComputedStyle& style = renderer->styleRef();
if (requiresCompositingForTransform(renderer))
reasons |= CompositingReason3DTransform;
@@ -173,7 +173,7 @@ CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(cons
return directReasons;
}
-bool CompositingReasonFinder::requiresCompositingForAnimation(const LayoutStyle& style) const
+bool CompositingReasonFinder::requiresCompositingForAnimation(const ComputedStyle& style) const
{
if (style.subtreeWillChangeContents())
return style.isRunningAnimationOnCompositor();
@@ -195,7 +195,7 @@ bool CompositingReasonFinder::requiresCompositingForScrollBlocksOn(const LayoutO
// Note that the other requires* functions run at LayoutObject::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.
- const LayoutStyle& style = renderer->styleRef();
+ const ComputedStyle& style = renderer->styleRef();
// We should only get here by CompositingReasonScrollBlocksOn being a potential compositing reason.
ASSERT(style.hasScrollBlocksOn() && !renderer->isDocumentElement());
« no previous file with comments | « Source/core/layout/compositing/CompositingReasonFinder.h ('k') | Source/core/layout/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698