| Index: Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| diff --git a/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| index 0f66be41ea3c24c0e41a30495d6fb1445e1ddd86..5932452135da28ae46d7ef45e862cbab27c96b12 100644
|
| --- a/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| +++ b/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| @@ -59,10 +59,10 @@ void TreeScopeStyleSheetCollection::addStyleSheetCandidateNode(Node* node, bool
|
| else
|
| m_styleSheetCandidateNodes.add(node);
|
|
|
| - if (!node->hasTagName(HTMLNames::styleTag))
|
| + if (!isHTMLStyleElement(*node))
|
| return;
|
|
|
| - ContainerNode* scopingNode = toHTMLStyleElement(node)->scopingNode();
|
| + ContainerNode* scopingNode = toHTMLStyleElement(*node).scopingNode();
|
| if (!isTreeScopeRoot(scopingNode))
|
| m_scopingNodesForStyleScoped.add(scopingNode);
|
| }
|
|
|