| Index: Source/core/css/resolver/ScopedStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| index 3bc70ed09d42c1ab762c5ffee02fab9c954cb112..3a3f8e6c5b1c65ceb7c46d36c92dde8d225f02f1 100644
|
| --- a/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
|
| @@ -54,12 +54,11 @@ ScopedStyleResolver* ScopedStyleTree::ensureScopedStyleResolver(const ContainerN
|
| ScopedStyleResolver* ScopedStyleTree::scopedStyleResolverFor(const ContainerNode& scopingNode)
|
| {
|
| if (!scopingNode.hasScopedHTMLStyleChild()
|
| - && !(scopingNode.isElementNode() && toElement(scopingNode).shadow())
|
| + && !isShadowHost(&scopingNode)
|
| && !scopingNode.isDocumentNode()
|
| && !scopingNode.isShadowRoot())
|
| return 0;
|
| - HashMap<const ContainerNode*, OwnPtr<ScopedStyleResolver> >::iterator it = m_authorStyles.find(&scopingNode);
|
| - return it != m_authorStyles.end() ? it->value.get() : 0;
|
| + return lookupScopedStyleResolverFor(&scopingNode);
|
| }
|
|
|
| ScopedStyleResolver* ScopedStyleTree::addScopedStyleResolver(const ContainerNode& scopingNode, bool& isNewEntry)
|
|
|