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

Unified Diff: cc/layers/layer.cc

Issue 2908073003: Ensure that mask layer is of the same size as the owning layer. (Closed)
Patch Set: style change 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
« no previous file with comments | « no previous file | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 2b631c60afc942a6f4a42f3c1a2cf9f75e511dda..91fbb2705f7a07bf88db2c820781ecdaa6d94f1d 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1207,6 +1207,8 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
subtree_property_changed_ = false;
inputs_.update_rect = gfx::Rect();
+ if (mask_layer())
+ DCHECK_EQ(bounds().ToString(), mask_layer()->bounds().ToString());
layer_tree_host_->RemoveLayerShouldPushProperties(this);
}
« no previous file with comments | « no previous file | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698