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

Unified Diff: Source/core/html/HTMLElement.h

Issue 206743005: Use Traversal<HTMLElement> API in HTMLTableRowsCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use const HTMLElement in template specialization for consistency 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/html/HTMLElement.h
diff --git a/Source/core/html/HTMLElement.h b/Source/core/html/HTMLElement.h
index 09ff972e265e1d83ee4ea8197d21a1c8b22cf893..e28af443e3efd13117b0d6739e0c217b55f16fc6 100644
--- a/Source/core/html/HTMLElement.h
+++ b/Source/core/html/HTMLElement.h
@@ -128,8 +128,9 @@ private:
DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement());
+template <> inline bool isElementOfType<const HTMLElement>(const Node& node) { return node.isHTMLElement(); }
Inactive 2014/03/20 22:15:24 Without this template specialization, isElementOfT
template <typename T> bool isElementOfType(const HTMLElement&);
-template <> inline bool isElementOfType<HTMLElement>(const HTMLElement&) { return true; }
+template <> inline bool isElementOfType<const HTMLElement>(const HTMLElement&) { return true; }
inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document, ConstructionType type = CreateHTMLElement)
: Element(tagName, &document, type)
« no previous file with comments | « no previous file | Source/core/html/HTMLTableRowsCollection.cpp » ('j') | Source/core/html/HTMLTableRowsCollection.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698