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

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

Issue 1721673002: Removed Document::addedStyleSheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « 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 5f7c5dac4e75e66156d9b2c9513a872e95ac8d5b..4ca2d1f3c8d4ccc010976531550e2d8a826529b9 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -643,10 +643,6 @@ void LinkStyle::removePendingSheet()
if (type == NonBlocking) {
// Tell StyleEngine to re-compute styleSheets of this m_owner's treescope.
m_owner->document().styleEngine().modifiedStyleSheetCandidateNode(m_owner);
- // Document::removePendingSheet() triggers the style selector recalc for blocking sheets.
- // FIXME: We don't have enough knowledge at this point to know if we're adding or removing a sheet
- // so we can't call addedStyleSheet() or removedStyleSheet().
- m_owner->document().styleEngine().resolverChanged(FullStyleUpdate);
return;
}
@@ -689,7 +685,6 @@ void LinkStyle::setDisabledState(bool disabled)
if (m_owner->shouldProcessStyle())
process();
} else {
- // FIXME: We don't have enough knowledge here to know if we should call addedStyleSheet() or removedStyleSheet().
m_owner->document().styleEngine().resolverChanged(FullStyleUpdate);
}
}
« 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