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

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

Issue 331763002: HTML Imports: styles in removed imports should be applied when it comes back (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/LinkImport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportChild.cpp
diff --git a/Source/core/html/imports/HTMLImportChild.cpp b/Source/core/html/imports/HTMLImportChild.cpp
index dc817a79fddc9f7ba7bcf8d15914e3b5d9e15b36..f1e9cff807ecdbd5bd3fb5374065cd4a67a28289 100644
--- a/Source/core/html/imports/HTMLImportChild.cpp
+++ b/Source/core/html/imports/HTMLImportChild.cpp
@@ -65,6 +65,13 @@ HTMLImportChild::~HTMLImportChild()
#endif
}
+void HTMLImportChild::ownerInserted()
+{
+ if (!m_loader->isDone())
+ return;
+ root()->document()->styleResolverChanged();
+}
+
void HTMLImportChild::didShareLoader()
{
createCustomElementMicrotaskStepIfNeeded();
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/LinkImport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698