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

Unified Diff: Source/core/layout/LayoutPart.cpp

Issue 1174373003: Deregister image client in LayoutObject::willBeDestroyed() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« Source/core/layout/LayoutObject.cpp ('K') | « Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutPart.cpp
diff --git a/Source/core/layout/LayoutPart.cpp b/Source/core/layout/LayoutPart.cpp
index 35597aea0146a36494d82a4f6d5ae09eed5a8d86..be800342ecb7718524f04e2e67e2dec3609128e6 100644
--- a/Source/core/layout/LayoutPart.cpp
+++ b/Source/core/layout/LayoutPart.cpp
@@ -54,7 +54,7 @@ LayoutPart::LayoutPart(Element* element)
void LayoutPart::deref()
{
if (--m_refCount <= 0)
- postDestroy();
+ delete this;
}
void LayoutPart::willBeDestroyed()
« Source/core/layout/LayoutObject.cpp ('K') | « Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698