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

Unified Diff: cc/layers/layer.cc

Issue 1850453002: cc : Fix bug in tree synchronization when mask layer changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 9 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_impl.h » ('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 838a62d7648beed630d47422d9ce1f9b14999512..60dd6b1680fa07ece93049152d2162da5aafd209 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -413,8 +413,8 @@ void Layer::SetMaskLayer(Layer* mask_layer) {
}
mask_layer_ = mask_layer;
if (mask_layer_.get()) {
- DCHECK(!mask_layer_->parent());
mask_layer_->RemoveFromParent();
+ DCHECK(!mask_layer_->parent());
mask_layer_->SetParent(this);
mask_layer_->SetIsMask(true);
}
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698