Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
index 969d1ef6811cc4f7d7087aaff83ec0e750820d20..4146ce843e4f0b809942d962423af93d4d888921 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp |
@@ -777,7 +777,7 @@ bool PaintLayerCompositor::canBeComposited(const PaintLayer* layer) const |
// into the hierarchy between this layer and its children in the z-order hierarchy. |
bool PaintLayerCompositor::clipsCompositingDescendants(const PaintLayer* layer) const |
{ |
- return layer->hasCompositingDescendant() && layer->layoutObject()->hasClipOrOverflowClip(); |
+ return layer->hasCompositingDescendant() && layer->layoutObject()->hasClipRelatedProperty(); |
} |
// If an element has composited negative z-index children, those children paint in front of the |