Index: Source/WebCore/rendering/RenderWidget.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderWidget.cpp (revision 79927) |
+++ Source/WebCore/rendering/RenderWidget.cpp (working copy) |
@@ -120,8 +120,6 @@ |
if (RenderView* v = view()) |
v->removeWidget(this); |
- if (m_hasCounterNodeMap) |
- RenderCounter::destroyCounterNodes(this); |
if (AXObjectCache::accessibilityEnabled()) { |
document()->axObjectCache()->childrenChanged(this->parent()); |
@@ -129,6 +127,9 @@ |
} |
remove(); |
+ if (m_hasCounterNodeMap) |
+ RenderCounter::destroyCounterNodes(this); |
+ |
setWidget(0); |
// removes from override size map |