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

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

Issue 2519393002: Force adding sheets and recalc for html import re-ordering. (Closed)
Patch Set: Missing reset in resetAuthorStyle() Created 4 years, 1 month 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/Source/core/html/imports/LinkImport.h ('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/imports/LinkImport.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
index d5fecf9d305110bce4a6806456a18663b8526c10..f1de54b6a0af350679335b09b508488072d2f7af 100644
--- a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
+++ b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
@@ -118,6 +118,11 @@ void LinkImport::ownerInserted() {
m_child->ownerInserted();
}
+void LinkImport::ownerRemoved() {
+ if (m_owner)
+ m_owner->document().styleEngine().importRemoved();
+}
+
DEFINE_TRACE(LinkImport) {
visitor->trace(m_child);
HTMLImportChildClient::trace(visitor);
« no previous file with comments | « third_party/WebKit/Source/core/html/imports/LinkImport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698