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

Unified Diff: sky/engine/core/html/HTMLElement.h

Issue 942933003: Remove almost all clients of isHTMLElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/editing/htmlediting.cpp ('k') | sky/engine/core/html/parser/HTMLConstructionSite.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLElement.h
diff --git a/sky/engine/core/html/HTMLElement.h b/sky/engine/core/html/HTMLElement.h
index f8d0db8172606ec7186d63d404b2aefabbc44964..3b07bc6f23fa69fcacb474766f4ff5eeb2a5c068 100644
--- a/sky/engine/core/html/HTMLElement.h
+++ b/sky/engine/core/html/HTMLElement.h
@@ -56,8 +56,7 @@ inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
#define DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
inline bool is##thisType(const thisType* element); \
inline bool is##thisType(const thisType& element); \
- inline bool is##thisType(const HTMLElement* element) { return element && is##thisType(*element); } \
- inline bool is##thisType(const Node& node) { return node.isHTMLElement() ? is##thisType(toHTMLElement(node)) : false; } \
+ inline bool is##thisType(const Node& node) { return node.isElementNode() ? is##thisType(toElement(node)) : false; } \
inline bool is##thisType(const Node* node) { return node && is##thisType(*node); } \
inline bool is##thisType(const Element* element) { return element && is##thisType(*element); } \
template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { return is##thisType(node.get()); } \
« no previous file with comments | « sky/engine/core/editing/htmlediting.cpp ('k') | sky/engine/core/html/parser/HTMLConstructionSite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698