Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 1978083002: Rename Pending to PendingScriptBlocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 5efdd124421ea579c4c44c51cb791733162eba88..5b241d1d4eb8fef4c03b3abdc2c85cd076d3491c 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -133,7 +133,7 @@ void StyleEngine::injectAuthorSheet(StyleSheetContents* authorSheet)
void StyleEngine::addPendingSheet(StyleEngineContext &context)
{
- m_pendingStylesheets++;
+ m_pendingScriptBlockingStylesheets++;
context.addingPendingSheet(document());
if (context.addedPendingSheetBeforeBody())
@@ -154,10 +154,10 @@ void StyleEngine::removePendingSheet(Node* styleSheetCandidateNode, const StyleE
}
// Make sure we knew this sheet was pending, and that our count isn't out of sync.
- DCHECK_GT(m_pendingStylesheets, 0);
+ DCHECK_GT(m_pendingScriptBlockingStylesheets, 0);
- m_pendingStylesheets--;
- if (m_pendingStylesheets)
+ m_pendingScriptBlockingStylesheets--;
+ if (m_pendingScriptBlockingStylesheets)
return;
document().didRemoveAllPendingStylesheet();
@@ -427,7 +427,7 @@ void StyleEngine::didDetach()
bool StyleEngine::shouldClearResolver() const
{
- return !m_didCalculateResolver && !haveStylesheetsLoaded();
+ return !m_didCalculateResolver && !haveScriptBlockingStylesheetsLoaded();
}
void StyleEngine::resolverChanged(StyleResolverUpdateMode mode)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698