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

Unified Diff: cc/layer_impl.h

Issue 11491007: cc: Remove dangerous LayerImpl::removeFromParent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/layer_impl.h
diff --git a/cc/layer_impl.h b/cc/layer_impl.h
index cb90958e117cb373f27bf4e197008d5aee48fbf1..1624a6cb96938427ce4f66947a4ce5bba7a44fd7 100644
--- a/cc/layer_impl.h
+++ b/cc/layer_impl.h
@@ -65,7 +65,7 @@ public:
const LayerImpl* parent() const { return m_parent; }
const LayerList& children() const { return m_children; }
void addChild(scoped_ptr<LayerImpl>);
- void removeFromParent();
+ scoped_ptr<LayerImpl> removeChild(LayerImpl* child);
void removeAllChildren();
void setMaskLayer(scoped_ptr<LayerImpl>);
« no previous file with comments | « cc/damage_tracker_unittest.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698