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

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

Issue 1903803002: Do not block painting for in-body CSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge conflict 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/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index 4338ba519334f6b51f9c0c83cec16402bfec78c1..0c9eb8c53acd5243a3f0774d6857e3dfc482e3b9 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -166,7 +166,7 @@ void ProcessingInstruction::process(const String& href, const String& charset)
if (resource) {
m_loading = true;
if (!m_isXSL)
- document().styleEngine().addPendingSheet();
+ document().styleEngine().addPendingSheet(m_styleEngineContext);
setResource(resource);
}
}
@@ -184,7 +184,7 @@ bool ProcessingInstruction::sheetLoaded()
{
if (!isLoading()) {
if (!DocumentXSLT::sheetLoaded(document(), this))
- document().styleEngine().removePendingSheet(this);
+ document().styleEngine().removePendingSheet(this, m_styleEngineContext);
return true;
}
return false;
@@ -288,7 +288,7 @@ void ProcessingInstruction::clearSheet()
{
DCHECK(m_sheet);
if (m_sheet->isLoading())
- document().styleEngine().removePendingSheet(this);
+ document().styleEngine().removePendingSheet(this, m_styleEngineContext);
m_sheet.release()->clearOwnerNode();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.h ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698