Index: Source/core/rendering/RenderTextFragment.cpp |
diff --git a/Source/core/rendering/RenderTextFragment.cpp b/Source/core/rendering/RenderTextFragment.cpp |
index bd640c89a748e7a4e90af8562ddf5966f95310c1..b1157c9b8bf83e91643ed6e060c83595d4367557 100644 |
--- a/Source/core/rendering/RenderTextFragment.cpp |
+++ b/Source/core/rendering/RenderTextFragment.cpp |
@@ -53,11 +53,15 @@ RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str) |
RenderTextFragment::~RenderTextFragment() |
{ |
-#if !ENABLE(OILPAN) |
+ ASSERT(!m_firstLetterPseudoElement); |
+} |
+ |
+void RenderTextFragment::destroy() |
+{ |
if (m_isRemainingTextRenderer && m_firstLetterPseudoElement) |
m_firstLetterPseudoElement->setRemainingTextRenderer(nullptr); |
m_firstLetterPseudoElement = nullptr; |
-#endif |
+ RenderText::destroy(); |
} |
void RenderTextFragment::trace(Visitor* visitor) |