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

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

Issue 2859483006: cc: Enable composited border-radius scrolling.
Patch Set: test-rebaseline Created 3 years, 6 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: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index 3a703cacddc9b186a5166d8afdb54d39e6ba7d3f..2e6a616e0edc0e36011ee34a41dc397f32cb5104 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -500,8 +500,15 @@ void PaintLayerClipper::InitializeCommonClipRectState(
} else {
const auto* ancestor_overflow_clip = ancestor_properties->OverflowClip();
if (ancestor_overflow_clip) {
- DCHECK_EQ(destination_property_tree_state.Clip(),
- ancestor_overflow_clip->Parent());
+ if (const auto* ancestor_rounded_clip =
chrishtr 2017/06/21 15:26:56 Put #ifdef DCHECK_IS_ON around these conditionals.
+ ancestor_properties->InnerBorderRadiusClip()) {
+ DCHECK_EQ(destination_property_tree_state.Clip(),
+ ancestor_rounded_clip->Parent());
+ DCHECK_EQ(ancestor_rounded_clip, ancestor_overflow_clip->Parent());
+ } else {
+ DCHECK_EQ(destination_property_tree_state.Clip(),
+ ancestor_overflow_clip->Parent());
+ }
destination_property_tree_state.SetClip(ancestor_overflow_clip);
}
}

Powered by Google App Engine
This is Rietveld 408576698