| 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();
|
| }
|
| }
|
|
|
|
|