diff --git a/engine/core/dom/Document.cpp b/engine/core/dom/Document.cpp index a3965deea32..c718870f10d 100644 --- a/engine/core/dom/Document.cpp +++ b/engine/core/dom/Document.cpp @@ -1519,18 +1519,6 @@ void Document::didLoadAllImports() didLoadAllParserBlockingResources(); } -void Document::didRemoveAllPendingStylesheet() -{ - styleResolverChanged(); - - // Only imports on master documents can trigger rendering. - if (HTMLImportLoader* import = importLoader()) - import->didRemoveAllPendingStylesheet(); - if (!haveImportsLoaded()) - return; - didLoadAllParserBlockingResources(); -} - void Document::didLoadAllParserBlockingResources() { m_resumeParserWaitingForResourcesTimer.startOneShot(0, FROM_HERE); diff --git a/engine/core/dom/Document.h b/engine/core/dom/Document.h index 741588fb759..804dc69a76d 100644 --- a/engine/core/dom/Document.h +++ b/engine/core/dom/Document.h @@ -521,7 +521,6 @@ public: ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } void didLoadAllParserBlockingResources(); - void didRemoveAllPendingStylesheet(); bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::InStyleRecalc; } diff --git a/engine/core/html/imports/HTMLImportLoader.cpp b/engine/core/html/imports/HTMLImportLoader.cpp index 1d83129e004..336d42d15c6 100644 --- a/engine/core/html/imports/HTMLImportLoader.cpp +++ b/engine/core/html/imports/HTMLImportLoader.cpp @@ -146,12 +146,6 @@ void HTMLImportLoader::didFinishParsing() setState(finishLoading()); } -void HTMLImportLoader::didRemoveAllPendingStylesheet() -{ - if (m_state == StateParsed) - setState(finishLoading()); -} - void HTMLImportLoader::didFinishLoading() { for (size_t i = 0; i < m_imports.size(); ++i) diff --git a/engine/core/html/imports/HTMLImportLoader.h b/engine/core/html/imports/HTMLImportLoader.h index 6db058d6098..daad42774ef 100644 --- a/engine/core/html/imports/HTMLImportLoader.h +++ b/engine/core/html/imports/HTMLImportLoader.h @@ -85,10 +85,6 @@ public: // Tells the loader that the parser is done with this import. // Called by Document::finishedParsing, after DOMContentLoaded was dispatched. void didFinishParsing(); - // Tells the loader that all of the import's stylesheets finished - // loading. - // Called by Document::didRemoveAllPendingStylesheet. - void didRemoveAllPendingStylesheet(); PassRefPtr microtaskQueue() const;