Skip to content
  • antti@apple.com's avatar
    Remove StyleSheetContents::m_finalURL · 1a7112cb
    antti@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=94140
    
    Reviewed by Andreas Kling.
    
    It is equal (or empty in case of inline stylesheets) to the baseURL passed in CSSParserContext.
    Removing it simplifies the constructors and the related code.
    
    * css/CSSStyleSheet.cpp:
    (WebCore::CSSStyleSheet::createInline):
    (WebCore::CSSStyleSheet::canAccessRules):
    (WebCore::CSSStyleSheet::rules):
    (WebCore::CSSStyleSheet::cssRules):
    
        - factor access check to a function
        - allow document always access rules of its inline stylesheets
    
    * css/StyleRuleImport.cpp:
    (WebCore::StyleRuleImport::setCSSStyleSheet):
    (WebCore::StyleRuleImport::requestStyleSheet):
    * css/StyleSheetContents.cpp:
    (WebCore::StyleSheetContents::StyleSheetContents):
    (WebCore::StyleSheetContents::parseAuthorStyleSheet):
    * css/StyleSheetContents.h:
    (WebCore::StyleSheetContents::create):
    (WebCore::StyleSheetContents::originalURL):
    (StyleSheetContents):
    * dom/ProcessingInstruction.cpp:
    (WebCore::ProcessingInstruction::setCSSStyleSheet):
    * html/HTMLLinkElement.cpp:
    (WebCore::HTMLLinkElement::setCSSStyleSheet):
    * inspector/InspectorStyleSheet.cpp:
    (WebCore::fillMediaListChain):
    (WebCore::InspectorStyleSheet::styleSheetURL):
    * xml/XSLImportRule.cpp:
    (WebCore::XSLImportRule::loadSheet):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a7112cb