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

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

Issue 2546393002: Make setNeedsActiveStyleUpdate mark treescope dirty only. (Closed)
Patch Set: Rebased 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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 38cddc87122147cde22309985d14c1951944b10f..c73e440047c214df9a85217a9e92819fac50eac3 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -219,13 +219,12 @@ void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) {
document().styleEngine().removeStyleSheetCandidateNode(*this,
*insertionPoint);
- StyleSheet* removedSheet = sheet();
-
if (m_link)
m_link->ownerRemoved();
- document().styleEngine().setNeedsActiveStyleUpdate(removedSheet,
- AnalyzedStyleUpdate);
+ // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
+ // updates are async. https://crbug.com/567021
+ document().styleEngine().resolverChanged(AnalyzedStyleUpdate);
}
void HTMLLinkElement::finishParsingChildren() {
« 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