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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 1603873004: Dynamically inserted StyleSheet shouldn't block loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update LayoutTests Created 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/network/resource-priority-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index e18c443f1caca3a6d4529b352760b7b0e6e79e76..e3a6738e2536ffc254d596c93311a6349e4b3fa1 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -725,7 +725,7 @@ void LinkStyle::process()
// Don't hold up layout tree construction and script execution on stylesheets
// that are not needed for the layout at the moment.
- bool blocking = mediaQueryMatches && !m_owner->isAlternate();
+ bool blocking = mediaQueryMatches && !m_owner->isAlternate() && m_owner->isCreatedByParser();
addPendingSheet(blocking ? Blocking : NonBlocking);
// Load stylesheets that are not needed for the layout immediately with low priority.
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/network/resource-priority-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698