Index: third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp |
diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp |
index bd8878a302b1dba1b02acd1c370850ad6cce395d..7169af4fbc27b7660b2dbd41fd040aeb95af51c9 100644 |
--- a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp |
+++ b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp |
@@ -79,7 +79,8 @@ void LayerClipRecorder::collectRoundedRectClips( |
// is properly clipped so that it can in turn clip the scrolled contents in |
// the compositor. |
if (layer->needsCompositedScrolling() && |
- !(paintFlags & PaintLayerPaintingChildClippingMaskPhase)) |
+ !(paintFlags & PaintLayerPaintingChildClippingMaskPhase || |
+ paintFlags & PaintLayerPaintingAncestorClippingMaskPhase)) |
break; |
if (layer->layoutObject()->hasOverflowClip() && |