X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fdom%2FDocumentStyleSheetCollection.cpp;h=c737792bbc21b1cad7f3c8035c8257b075ac792d;hp=4ce1c539d6c0b40092357ac876a6a4f8676d012f;hb=e85eae78d9cc3f18fcae6060fce29fad4d2368e7;hpb=017bb5973ab4e608a9e5dfa71736f17df323bc03 diff --git a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp index 4ce1c53..c737792 100644 --- a/Source/WebCore/dom/DocumentStyleSheetCollection.cpp +++ b/Source/WebCore/dom/DocumentStyleSheetCollection.cpp @@ -46,6 +46,7 @@ #include "StyleSheetList.h" #include "UserContentURLPattern.h" #include "WebCoreMemoryInstrumentation.h" +#include namespace WebCore { @@ -53,7 +54,6 @@ using namespace HTMLNames; DocumentStyleSheetCollection::DocumentStyleSheetCollection(Document* document) : m_document(document) - , m_authorStyleSheets(StyleSheetList::create(document)) , m_pendingStylesheets(0) , m_pageGroupUserSheetCacheValid(false) , m_hadActiveLoadingStylesheet(false) @@ -70,8 +70,6 @@ DocumentStyleSheetCollection::DocumentStyleSheetCollection(Document* document) DocumentStyleSheetCollection::~DocumentStyleSheetCollection() { - m_authorStyleSheets->documentDestroyed(); - if (m_pageUserSheet) m_pageUserSheet->clearOwnerNode(); if (m_pageGroupUserSheets) { @@ -376,9 +374,9 @@ bool DocumentStyleSheetCollection::testAddedStyleSheetRequiresStyleRecalc(StyleS return false; } -void DocumentStyleSheetCollection::analyzeStyleSheetChange(UpdateFlag updateFlag, const Vector >& newStylesheets, bool& requiresStyleResolverReset, bool& requiresFullStyleRecalc) +void DocumentStyleSheetCollection::analyzeStyleSheetChange(UpdateFlag updateFlag, const Vector >& newStylesheets, StyleResolverUpdateType& styleResolverUpdateType, bool& requiresFullStyleRecalc) { - requiresStyleResolverReset = true; + styleResolverUpdateType = Reconstruct; requiresFullStyleRecalc = true; // Stylesheets of