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

Unified Diff: third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp

Issue 2882983002: Avoid synchronous stylesheet update on html import loaded. (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
Index: third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
index ac0d018c9a1b03016f4d802ec31bbc94058f8992..a38d4894a29edbbaf104def7243786f16cf08fa8 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
@@ -78,7 +78,7 @@ void HTMLImportChild::DidFinish() {
void HTMLImportChild::DidFinishLoading() {
StateWillChange();
- if (GetDocument() && GetDocument()->StyleSheets().length() > 0)
+ if (GetDocument() && GetDocument()->GetStyleEngine().HasStyleSheets())
UseCounter::Count(Root()->GetDocument(),
UseCounter::kHTMLImportsHasStyleSheets);
V0CustomElement::DidFinishLoadingImport(*(Root()->GetDocument()));
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698