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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 3fdf8795b1beafd343ce76ec1e29c9b36b51f408..608881e419506be1862a0c59da5b31c67dcb61b5 100644
--- a/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -74,7 +74,7 @@ bool CompositingReasonFinder::requiresCompositingForScrollableFrame() const
return m_renderView.frameView()->isScrollable();
}
-CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle(RenderObject* renderer) const
+CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle(LayoutObject* renderer) const
{
if (RuntimeEnabledFeatures::slimmingPaintCompositorLayerizationEnabled())
return CompositingReasonNone;
@@ -136,7 +136,7 @@ CompositingReasons CompositingReasonFinder::potentialCompositingReasonsFromStyle
return reasons;
}
-bool CompositingReasonFinder::requiresCompositingForTransform(RenderObject* renderer) const
+bool CompositingReasonFinder::requiresCompositingForTransform(LayoutObject* renderer) const
{
// Note that we ask the renderer if it has a transform, because the style may have transforms,
// but the renderer may be an inline that doesn't support them.
@@ -146,7 +146,7 @@ bool CompositingReasonFinder::requiresCompositingForTransform(RenderObject* rend
CompositingReasons CompositingReasonFinder::nonStyleDeterminedDirectReasons(const Layer* layer) const
{
CompositingReasons directReasons = CompositingReasonNone;
- RenderObject* renderer = layer->renderer();
+ LayoutObject* renderer = layer->renderer();
if (hasOverflowScrollTrigger()) {
if (layer->clipParent())
@@ -187,9 +187,9 @@ bool CompositingReasonFinder::requiresCompositingForPositionFixed(const Layer* l
return layer->scrollsWithViewport() && m_renderView.frameView()->isScrollable();
}
-bool CompositingReasonFinder::requiresCompositingForScrollBlocksOn(const RenderObject* renderer) const
+bool CompositingReasonFinder::requiresCompositingForScrollBlocksOn(const LayoutObject* renderer) const
{
- // Note that the other requires* functions run at RenderObject::styleDidChange time and so can rely
+ // 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.
RenderStyle* style = renderer->style();
« no previous file with comments | « Source/core/layout/compositing/CompositingReasonFinder.h ('k') | Source/core/layout/compositing/LayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698