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())); |