Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 120096) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -653,6 +653,8 @@ |
m_fullScreenElementStack.clear(); |
#endif |
+ detachParser(); |
+ |
// removeAllChildren() doesn't always unregister IDs, |
// so tear down scope information upfront to avoid having stale references in the map. |
destroyTreeScopeData(); |
@@ -660,8 +662,6 @@ |
m_markers->detach(); |
- detachParser(); |
- |
m_cssCanvasElements.clear(); |
#if ENABLE(REQUEST_ANIMATION_FRAME) |