mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove didRemoveAllPendingStylesheet.
Nothing calls this now, and sky has no concept of pending stylesheets. TBR=ojan@chromium.org Review URL: https://codereview.chromium.org/849773002
This commit is contained in:
parent
0a258c1921
commit
c4ecc2236b
@ -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);
|
||||
|
||||
@ -521,7 +521,6 @@ public:
|
||||
ElementDataCache* elementDataCache() { return m_elementDataCache.get(); }
|
||||
|
||||
void didLoadAllParserBlockingResources();
|
||||
void didRemoveAllPendingStylesheet();
|
||||
|
||||
bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::InStyleRecalc; }
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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<CustomElementSyncMicrotaskQueue> microtaskQueue() const;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user