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

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

Issue 1761693002: Removed unnecessary resolverChanged call. (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 | « no previous file | 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 7e165f6175db8d6007daa951dd36b27630115a6c..3bcfb933486b77ace718b1f758b58eb462469170 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -677,16 +677,13 @@ void LinkStyle::setDisabledState(bool disabled)
return;
}
- if (m_sheet)
+ if (m_sheet) {
m_sheet->setDisabled(disabled);
-
- // Load the sheet, since it's never been loaded before.
- if (!m_sheet && m_disabledState == EnabledViaScript) {
- if (m_owner->shouldProcessStyle())
- process();
- } else {
- m_owner->document().styleEngine().resolverChanged(FullStyleUpdate);
+ return;
}
+
+ if (m_disabledState == EnabledViaScript && m_owner->shouldProcessStyle())
+ process();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698