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

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

Issue 2873133002: Check StyleSheetIsLoading before clearing LinkStyle sheet. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/css/remove-blocking-with-loading-import-expected.html ('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/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index 37ae8541c209c0802f85dfbae948e2f06e370829..7da54755a5d50a5a4e7e270ac08fa4a1595544e0 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -402,11 +402,11 @@ void LinkStyle::SetSheetTitle(const String& title) {
}
void LinkStyle::OwnerRemoved() {
- if (sheet_)
- ClearSheet();
-
if (StyleSheetIsLoading())
RemovePendingSheet();
+
+ if (sheet_)
+ ClearSheet();
}
DEFINE_TRACE(LinkStyle) {
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/css/remove-blocking-with-loading-import-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698