| Index: Source/WebCore/dom/Document.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/Document.cpp (revision 135746)
|
| +++ Source/WebCore/dom/Document.cpp (working copy)
|
| @@ -656,9 +656,6 @@
|
|
|
| m_weakReference->clear();
|
|
|
| - if (m_mediaQueryMatcher)
|
| - m_mediaQueryMatcher->documentDestroyed();
|
| -
|
| clearStyleResolver(); // We need to destory CSSFontSelector before destroying m_cachedResourceLoader.
|
|
|
| // It's possible for multiple Documents to end up referencing the same CachedResourceLoader (e.g., SVGImages
|
| @@ -2151,6 +2148,9 @@
|
| // callers of Document::detach().
|
| m_frame = 0;
|
| m_renderArena.clear();
|
| +
|
| + if (m_mediaQueryMatcher)
|
| + m_mediaQueryMatcher->documentDestroyed();
|
| }
|
|
|
| void Document::prepareForDestruction()
|
|
|