Index: Source/core/dom/StyleElement.cpp |
diff --git a/Source/core/dom/StyleElement.cpp b/Source/core/dom/StyleElement.cpp |
index 157898efea3ce956f89661d9bc33729604a4db1b..a6a68be911f0e029cef4438ddab27f99a4c0a401 100644 |
--- a/Source/core/dom/StyleElement.cpp |
+++ b/Source/core/dom/StyleElement.cpp |
@@ -85,7 +85,7 @@ void StyleElement::clearDocumentData(Document& document, Element* element) |
m_sheet->clearOwnerNode(); |
if (element->inDocument()) |
- document.styleEngine()->removeStyleSheetCandidateNode(element, element->hasTagName(HTMLNames::styleTag) ? toHTMLStyleElement(element)->scopingNode() : 0); |
+ document.styleEngine()->removeStyleSheetCandidateNode(element, isHTMLStyleElement(*element) ? toHTMLStyleElement(*element).scopingNode() : 0); |
} |
void StyleElement::childrenChanged(Element* element) |