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

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

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/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextFormControlElement.h
diff --git a/Source/core/html/HTMLTextFormControlElement.h b/Source/core/html/HTMLTextFormControlElement.h
index 506380be7c68275e8b4f99ddd090f386a2aa762d..5232cebfb4bc65efff3c83657236622299193cc2 100644
--- a/Source/core/html/HTMLTextFormControlElement.h
+++ b/Source/core/html/HTMLTextFormControlElement.h
@@ -90,6 +90,8 @@ public:
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
+ virtual void acceptHeapVisitor(Visitor*) const OVERRIDE;
+
protected:
HTMLTextFormControlElement(const QualifiedName&, Document*, HTMLFormElement*);
bool isPlaceholderEmpty() const;
@@ -147,13 +149,13 @@ inline bool isHTMLTextFormControlElement(const Node* node)
return node->isElementNode() && toElement(node)->isTextFormControl();
}
-inline HTMLTextFormControlElement* toHTMLTextFormControlElement(Node* node)
+inline Result<HTMLTextFormControlElement> toHTMLTextFormControlElement(Node* node)
{
ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextFormControlElement(node));
- return static_cast<HTMLTextFormControlElement*>(node);
+ return Handle<HTMLTextFormControlElement>(static_cast<HTMLTextFormControlElement*>(node));
}
-HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
+Result<HTMLTextFormControlElement> enclosingTextFormControl(const Position&);
} // namespace
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698