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

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

Issue 2554873002: Mark correct tree-scope dirty removing link in shadow. (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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index 06a8129631ec454bb9090660d522cbdf78bc5917..38cddc87122147cde22309985d14c1951944b10f 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -216,7 +216,8 @@ void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) {
DCHECK(!linkStyle() || !linkStyle()->hasSheet());
return;
}
- document().styleEngine().removeStyleSheetCandidateNode(*this);
+ document().styleEngine().removeStyleSheetCandidateNode(*this,
+ *insertionPoint);
StyleSheet* removedSheet = sheet();
@@ -224,7 +225,7 @@ void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) {
m_link->ownerRemoved();
document().styleEngine().setNeedsActiveStyleUpdate(removedSheet,
- FullStyleUpdate);
+ AnalyzedStyleUpdate);
}
void HTMLLinkElement::finishParsingChildren() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698