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

Unified Diff: Source/web/WebNode.cpp

Issue 1345193004: Add WebNode::isCommentNode(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « no previous file | public/web/WebNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNode.cpp
diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
index 1b9452b582f5c9508547bc03d5eaa0f9e89d8882..5dea2bc4f583e8ebe1f198936b26b4b0ce13809a 100644
--- a/Source/web/WebNode.cpp
+++ b/Source/web/WebNode.cpp
@@ -191,6 +191,11 @@ bool WebNode::isTextNode() const
return m_private->isTextNode();
}
+bool WebNode::isCommentNode() const
+{
+ return m_private->nodeType() == Node::COMMENT_NODE;
+}
+
bool WebNode::isFocusable() const
{
if (!m_private->isElementNode())
« no previous file with comments | « no previous file | public/web/WebNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698