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

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: Rebase to master 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/CompositingLayerAssigner.cpp
diff --git a/Source/core/layout/compositing/CompositingLayerAssigner.cpp b/Source/core/layout/compositing/CompositingLayerAssigner.cpp
index 145a2ad17526d81b95e89a38228869509bef859b..ff06c7b60ac1213336a918df245b05daad3b4d69 100644
--- a/Source/core/layout/compositing/CompositingLayerAssigner.cpp
+++ b/Source/core/layout/compositing/CompositingLayerAssigner.cpp
@@ -125,12 +125,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())
@@ -139,7 +139,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.

Powered by Google App Engine
This is Rietveld 408576698