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

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

Issue 2551473002: Correctly re-collect active style for html imports. (Closed)
Patch Set: Created 4 years 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 7b045d5829383c80336277d60ca62e7785898d9d..8718ce5913f19a5e8e8a2556319f3a7d5ff27399 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportChild.cpp
@@ -54,7 +54,10 @@ HTMLImportChild::~HTMLImportChild() {}
void HTMLImportChild::ownerInserted() {
if (!m_loader->isDone())
return;
- root()->document()->styleEngine().resolverChanged(FullStyleUpdate);
+ document()->styleEngine().htmlImportAddedOrRemoved();
+ // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
+ // updates are async. https://crbug.com/567021
+ root()->document()->styleEngine().resolverChanged(AnalyzedStyleUpdate);
}
void HTMLImportChild::didShareLoader() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698