| Index: Source/core/css/resolver/ScopedStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| index 72417408eb4f8990bd40edceca5e33a0ca0f3fa7..fc915a2639266b5f8858b0e1b481a05fc1801714 100644
|
| --- a/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| @@ -46,23 +46,6 @@
|
|
|
| namespace blink {
|
|
|
| -TreeScope* ScopedStyleResolver::treeScopeFor(Document& document, const CSSStyleSheet* sheet)
|
| -{
|
| - ASSERT(sheet);
|
| -
|
| - if (!sheet->ownerDocument())
|
| - return 0;
|
| -
|
| - Node* ownerNode = sheet->ownerNode();
|
| - if (!isHTMLStyleElement(ownerNode) && !isSVGStyleElement(ownerNode))
|
| - return &document;
|
| -
|
| - Element& styleElement = toElement(*ownerNode);
|
| - if (styleElement.isInShadowTree())
|
| - return styleElement.containingShadowRoot();
|
| - return &document;
|
| -}
|
| -
|
| ScopedStyleResolver* ScopedStyleResolver::parent() const
|
| {
|
| for (TreeScope* scope = treeScope().parentTreeScope(); scope; scope = scope->parentTreeScope()) {
|
|
|