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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 2614663004: Pause HTML parser for external stylesheets in the body (Closed)
Patch Set: Paramaterized test cases Created 3 years, 11 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/html/parser/BackgroundHTMLParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
index 2c9759fc1312640eeb66055b6401d6f147ddfaeb..458c988b8e13becae1c3ed6b46442537be70ddb1 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -291,6 +291,8 @@ void BackgroundHTMLParser::pumpTokenizer() {
m_token->clear();
if (simulatedToken == HTMLTreeBuilderSimulator::ScriptEnd ||
+ simulatedToken == HTMLTreeBuilderSimulator::StyleEnd ||
+ simulatedToken == HTMLTreeBuilderSimulator::Link ||
m_pendingTokens->size() >= m_pendingTokenLimit) {
shouldNotifyMainThread |= queueChunkForMainThread();
// If we're far ahead of the main thread, yield for a bit to avoid
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698