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

Unified Diff: cc/layers/layer.cc

Issue 2859483006: cc: Enable composited border-radius scrolling.
Patch Set: Make respect-clip-for-non-composited-scrollers-when-prefering-compositing-to-lcd-text.html not a re… Created 3 years, 7 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: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index d3100f3daa802322ca072e5be186709b65020bce..7ec2bf6ea25ddb7e036d94025f988be499f459ab 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -426,6 +426,7 @@ void Layer::SetMaskLayer(Layer* mask_layer) {
if (inputs_.mask_layer.get()) {
// The mask layer should not have any children.
DCHECK(inputs_.mask_layer->children().empty());
+ DCHECK_EQ(bounds().ToString(), inputs_.mask_layer->bounds().ToString());
trchen 2017/05/22 23:00:06 CLM updates layer geometry after attaching mask la
sunxd 2017/06/15 15:59:10 Done.
inputs_.mask_layer->RemoveFromParent();
DCHECK(!inputs_.mask_layer->parent());

Powered by Google App Engine
This is Rietveld 408576698