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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/CompositingLayerAssigner.cpp
diff --git a/Source/core/layout/compositing/CompositingLayerAssigner.cpp b/Source/core/layout/compositing/CompositingLayerAssigner.cpp
index 614b77b9c6ba17548c42084bbdc457d6ff098203..a459345f379f990cb316d132d6b1d8206ff4bbb4 100644
--- a/Source/core/layout/compositing/CompositingLayerAssigner.cpp
+++ b/Source/core/layout/compositing/CompositingLayerAssigner.cpp
@@ -128,12 +128,12 @@ CompositingReasons CompositingLayerAssigner::getReasonsPreventingSquashing(const
// video to share a backing with other layers.
//
// compositing/video/video-controls-layer-creation.html
- if (layer->renderer()->isVideo() || squashingLayer.renderer()->isVideo())
+ if (layer->layoutObject()->isVideo() || squashingLayer.layoutObject()->isVideo())
return CompositingReasonSquashingVideoIsDisallowed;
// Don't squash iframes, frames or plugins.
// FIXME: this is only necessary because there is frame code that assumes that composited frames are not squashed.
- if (layer->renderer()->isLayoutPart() || squashingLayer.renderer()->isLayoutPart())
+ if (layer->layoutObject()->isLayoutPart() || squashingLayer.layoutObject()->isLayoutPart())
return CompositingReasonSquashingLayoutPartIsDisallowed;
if (layer->reflectionInfo())
@@ -142,7 +142,7 @@ CompositingReasons CompositingLayerAssigner::getReasonsPreventingSquashing(const
if (squashingWouldExceedSparsityTolerance(layer, squashingState))
return CompositingReasonSquashingSparsityExceeded;
- if (layer->renderer()->style()->hasBlendMode())
+ if (layer->layoutObject()->style()->hasBlendMode())
return CompositingReasonSquashingBlendingIsDisallowed;
// FIXME: this is not efficient, since it walks up the tree. We should store these values on the CompositingInputsCache.
@@ -234,7 +234,7 @@ void CompositingLayerAssigner::assignLayersToBackingsForReflectionLayer(Layer* r
static ScrollingCoordinator* scrollingCoordinatorFromLayer(Layer& layer)
{
- Page* page = layer.renderer()->frame()->page();
+ Page* page = layer.layoutObject()->frame()->page();
if (!page)
return 0;
@@ -256,8 +256,8 @@ void CompositingLayerAssigner::assignLayersToBackingsInternal(Layer* layer, Squa
layersNeedingPaintInvalidation.append(layer);
m_layersChanged = true;
if (ScrollingCoordinator* scrollingCoordinator = scrollingCoordinatorFromLayer(*layer)) {
- if (layer->renderer()->style()->hasViewportConstrainedPosition())
- scrollingCoordinator->frameViewFixedObjectsDidChange(layer->renderer()->view()->frameView());
+ if (layer->layoutObject()->style()->hasViewportConstrainedPosition())
+ scrollingCoordinator->frameViewFixedObjectsDidChange(layer->layoutObject()->view()->frameView());
}
}

Powered by Google App Engine
This is Rietveld 408576698