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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 1843693002: Introduce setNeedsActiveStyleUpdate for adding/removing stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 8fac39c3f48f6a3fa22ad1a0b72762015aa855a7..0b3d1845db1a04e8d1942f833a6b6d8a916e836d 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -319,7 +319,7 @@ void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint)
if (m_link)
m_link->ownerRemoved();
- document().removedStyleSheet(removedSheet.get());
+ document().styleEngine().setNeedsActiveStyleUpdate(removedSheet.get(), FullStyleUpdate);
}
void HTMLLinkElement::finishParsingChildren()
@@ -773,7 +773,7 @@ void LinkStyle::process()
// we no longer contain a stylesheet, e.g. perhaps rel or type was changed
RefPtrWillBeRawPtr<StyleSheet> removedSheet = m_sheet.get();
clearSheet();
- document().removedStyleSheet(removedSheet.get());
+ document().styleEngine().setNeedsActiveStyleUpdate(removedSheet.get(), FullStyleUpdate);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698