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

Unified Diff: Source/core/dom/Node.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 | « Source/core/dom/Node.h ('k') | Source/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index b4f65e799e2b1abaef1ccf2166296f9779336ba7..4d0ab6bf92cc79124fdf7b6209875b485e7a9b02 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -486,13 +486,13 @@ Node* Node::toNode()
return this;
}
-HTMLInputElement* Node::toInputElement()
+Result<HTMLInputElement> Node::toInputElement()
{
// If one of the below ASSERTs trigger, you are calling this function
// directly or indirectly from a constructor or destructor of this object.
// Don't do this!
ASSERT(!(isHTMLElement() && hasTagName(inputTag)));
- return 0;
+ return nullptr;
}
short Node::tabIndex() const
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698