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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2826673003: Fix clipping of squashed sibling layers with border radius masks (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/nested-border-radius-composited-child-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index a9aaa381dcaa511e54ed9ac049395b7972004827..df6ec5704fbe81fcb5c7b0760fddb9bd21ad89b1 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -953,6 +953,13 @@ void PaintLayerPainter::paintFragmentWithPhase(
case PaintPhaseMask: // Mask painting will handle clipping to self.
clippingRule = LayerClipRecorder::DoNotIncludeSelfForBorderRadius;
break;
+ case kPaintPhaseClippingMask:
+ if (paint_flags & kPaintLayerPaintingAncestorClippingMaskPhase) {
+ // The ancestor is the thing that needs to clip, so do not include
+ // this layer's clips.
+ clipping_rule = LayerClipRecorder::kDoNotIncludeSelfForBorderRadius;
+ break;
+ }
default:
clippingRule = LayerClipRecorder::IncludeSelfForBorderRadius;
break;
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/nested-border-radius-composited-child-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698