• andersca@apple.com's avatar
    Move user style sheet handling to UserContentController · c005d5bc
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=127322
    <rdar://problem/15861296>
    
    Reviewed by Andreas Kling.
    
    * dom/DocumentStyleSheetCollection.cpp:
    (WebCore::DocumentStyleSheetCollection::updateInjectedStyleSheetCache):
    * page/PageGroup.cpp:
    (WebCore::PageGroup::addUserStyleSheetToWorld):
    (WebCore::PageGroup::removeUserStyleSheetFromWorld):
    (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
    (WebCore::PageGroup::removeAllUserContent):
    * page/PageGroup.h:
    * page/UserContentController.cpp:
    (WebCore::UserContentController::addUserStyleSheet):
    (WebCore::UserContentController::removeUserStyleSheet):
    (WebCore::UserContentController::removeUserStyleSheets):
    (WebCore::UserContentController::removeAllUserContent):
    (WebCore::UserContentController::invalidateInjectedStyleSheetCacheInAllFrames):
    * page/UserContentController.h:
    (WebCore::UserContentController::userStyleSheets):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c005d5bc
UserContentController.h 2.71 KB