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

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 325063003: Delete RenderLayerCompositor::layerWillBeRemoved (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 2ea3361e0e4d60d57d65d874bf87094e6f5b9859..dc168b63b4493b39584870dd4fed8c34079814b4 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -1400,10 +1400,6 @@ void RenderLayer::addChild(RenderLayer* child, RenderLayer* beforeChild)
RenderLayer* RenderLayer::removeChild(RenderLayer* oldChild)
{
- if (!renderer()->documentBeingDestroyed())
- compositor()->layerWillBeRemoved(this, oldChild);
-
- // remove the child
if (oldChild->previousSibling())
oldChild->previousSibling()->setNextSibling(oldChild->nextSibling());
if (oldChild->nextSibling())
@@ -1450,9 +1446,6 @@ void RenderLayer::removeOnlyThisLayer()
if (!m_parent)
return;
- compositor()->layerWillBeRemoved(m_parent, this);
-
- // Dirty the clip rects.
m_clipper.clearClipRectsIncludingDescendants();
RenderLayer* nextSib = nextSibling();

Powered by Google App Engine
This is Rietveld 408576698