| 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.
|
|
|