Skip to content
  • hyatt@apple.com's avatar
    https://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the... · 959a3c5a
    hyatt@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the page's user stylesheet in
    parsed form.  Allows the sheet to survive across destruction/re-creation of the CSSStyleSelector.
    
    Reviewed by Eric Seidel.
    
    * css/CSSStyleSelector.cpp:
    (WebCore::CSSStyleSelector::CSSStyleSelector):
    * css/CSSStyleSelector.h:
    * dom/Document.cpp:
    (WebCore::Document::attach):
    (WebCore::Document::pageUserSheet):
    (WebCore::Document::clearPageUserSheet):
    (WebCore::Document::recalcStyleSelector):
    * dom/Document.h:
    * loader/PlaceholderDocument.cpp:
    (WebCore::PlaceholderDocument::attach):
    * page/Page.cpp:
    (WebCore::Page::userStyleSheetLocationChanged):
    * page/Settings.cpp:
    (WebCore::Settings::setUserStyleSheetLocation):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    959a3c5a