| 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 1f8b20c68892524e006ba9b604305a16070d5367..55da8a47fa5376dfd0db00783f389fb09aec0d05 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp
|
| @@ -116,7 +116,7 @@ void StyleElement::clearDocumentData(Document& document, Element* element)
|
|
|
| if (m_registeredAsCandidate) {
|
| DCHECK(element->inShadowIncludingDocument());
|
| - document.styleEngine().removeStyleSheetCandidateNode(element, element->treeScope());
|
| + document.styleEngine().removeStyleSheetCandidateNode(element, element->treeScopeOrDocument());
|
| m_registeredAsCandidate = false;
|
| }
|
| }
|
|
|