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

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

Issue 459353002: Oilpan: Move more code of RenderObject destructors to destroy(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/RenderCounter.cpp
diff --git a/Source/core/rendering/RenderCounter.cpp b/Source/core/rendering/RenderCounter.cpp
index ff1b355e39fb0f6f702761eab24f98c67149d355..34d77d9d7cafec3f1bb6b49e002fd951012926cf 100644
--- a/Source/core/rendering/RenderCounter.cpp
+++ b/Source/core/rendering/RenderCounter.cpp
@@ -355,10 +355,15 @@ RenderCounter::RenderCounter(Document* node, const CounterContent& counter)
RenderCounter::~RenderCounter()
{
+}
+
+void RenderCounter::destroy()
+{
if (m_counterNode) {
m_counterNode->removeRenderer(this);
ASSERT(!m_counterNode);
}
+ RenderText::destroy();
}
void RenderCounter::willBeDestroyed()

Powered by Google App Engine
This is Rietveld 408576698