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

Unified Diff: third_party/WebKit/Source/web/WebNode.cpp

Issue 1365203002: Make WebNode::to<Type>() (and toConst) casts contain type asserts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add BLINK_IMPLEMENTATION guard. 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
Index: third_party/WebKit/Source/web/WebNode.cpp
diff --git a/third_party/WebKit/Source/web/WebNode.cpp b/third_party/WebKit/Source/web/WebNode.cpp
index 5dea2bc4f583e8ebe1f198936b26b4b0ce13809a..ba4cbbfa669e75367c9bd0b2c5a061be8225601f 100644
--- a/third_party/WebKit/Source/web/WebNode.cpp
+++ b/third_party/WebKit/Source/web/WebNode.cpp
@@ -131,11 +131,6 @@ bool WebNode::lessThan(const WebNode& n) const
return m_private.get() < n.m_private.get();
}
-WebNode::NodeType WebNode::nodeType() const
-{
- return static_cast<NodeType>(m_private->nodeType());
-}
-
WebNode WebNode::parentNode() const
{
return WebNode(const_cast<ContainerNode*>(m_private->parentNode()));
@@ -219,6 +214,11 @@ bool WebNode::isElementNode() const
return m_private->isElementNode();
}
+bool WebNode::isDocumentNode() const
+{
+ return m_private->isDocumentNode();
+}
+
void WebNode::dispatchEvent(const WebDOMEvent& event)
{
if (!event.isNull())
« no previous file with comments | « third_party/WebKit/Source/web/WebLabelElement.cpp ('k') | third_party/WebKit/Source/web/WebOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698