Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: Source/core/dom/StyleElement.cpp

Issue 192293002: Use new is*Element() helper functions in DOM code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add is*Element(PassRefPtr) helper Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698