⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107346 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 7:34:21 PM (15 years ago)
Author:
rniwa@webkit.org
Message:

CachedResourceLoader is destroyed before CSSFontSelector is destroyed
https://bugs.webkit.org/show_bug.cgi?id=77817

Reviewed by Adam Barth.

Explicitly clear style selector before destorying the cached resource loader.

No new tests but PerformanceTests/Parser/html5-full-render.html was crashing
on performance bots due to this bug.

  • dom/Document.cpp:

(WebCore::Document::~Document):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107335 r107346  
     12012-02-09  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        CachedResourceLoader is destroyed before CSSFontSelector is destroyed
     4        https://bugs.webkit.org/show_bug.cgi?id=77817
     5
     6        Reviewed by Adam Barth.
     7
     8        Explicitly clear style selector before destorying the cached resource loader.
     9
     10        No new tests but PerformanceTests/Parser/html5-full-render.html was crashing
     11        on performance bots due to this bug.
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::~Document):
     15
    1162012-02-09  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebCore/dom/Document.cpp

    r107135 r107346  
    546546    detachParser();
    547547    m_document = 0;
    548     m_cachedResourceLoader.clear();
    549548
    550549    m_renderArena.clear();
     
    578577    if (m_mediaQueryMatcher)
    579578        m_mediaQueryMatcher->documentDestroyed();
     579
     580    clearStyleSelector(); // We need to destory CSSFontSelector before destroying m_cachedResourceLoader.
     581    m_cachedResourceLoader.clear();
    580582
    581583    // We must call clearRareData() here since a Document class inherits TreeScope
Note: See TracChangeset for help on using the changeset viewer.