| Index: third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleElement.cpp b/third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| index 22f54058887bfb7bcd0ec787de00e013d728a910..6fc0bf7d01a33c0c3b804ed65b16b988dce8459c 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| @@ -86,13 +86,11 @@ void StyleElement::removedFrom(Element& element,
|
| m_registeredAsCandidate = false;
|
| }
|
|
|
| - StyleSheet* removedSheet = m_sheet.get();
|
| -
|
| - if (m_sheet)
|
| + if (m_sheet) {
|
| clearSheet(element);
|
| - if (removedSheet)
|
| - document.styleEngine().setNeedsActiveStyleUpdate(removedSheet,
|
| - AnalyzedStyleUpdate);
|
| + if (element.isConnected())
|
| + document.styleEngine().setNeedsActiveStyleUpdate(element.treeScope());
|
| + }
|
| }
|
|
|
| StyleElement::ProcessingResult StyleElement::childrenChanged(Element& element) {
|
|
|