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

Unified Diff: Source/core/dom/StyleSheetCandidate.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/StyleSheetCandidate.cpp
diff --git a/Source/core/dom/StyleSheetCandidate.cpp b/Source/core/dom/StyleSheetCandidate.cpp
index 8e59675b7b0478b19475df22fa6e06bdee74b612..e9bad97e4a1b8a5705d69e544ba52ba5908a53ac 100644
--- a/Source/core/dom/StyleSheetCandidate.cpp
+++ b/Source/core/dom/StyleSheetCandidate.cpp
@@ -104,16 +104,16 @@ StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
return Pi;
if (node.isHTMLElement()) {
- if (node.hasTagName(linkTag))
+ if (isHTMLLinkElement(node))
return HTMLLink;
- if (node.hasTagName(styleTag))
+ if (isHTMLStyleElement(node))
return HTMLStyle;
ASSERT_NOT_REACHED();
return HTMLStyle;
}
- if (node.isSVGElement() && node.hasTagName(SVGNames::styleTag))
+ if (isSVGStyleElement(node))
return SVGStyle;
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698