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/html/HTMLButtonElement.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/html/HTMLButtonElement.h ('k') | Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLButtonElement.cpp
diff --git a/Source/core/html/HTMLButtonElement.cpp b/Source/core/html/HTMLButtonElement.cpp
index 82a44dd397a996ceb067466c421411278c9fa9a8..5fa87430d87bdc221dcea38666b1ed950b28f8e6 100644
--- a/Source/core/html/HTMLButtonElement.cpp
+++ b/Source/core/html/HTMLButtonElement.cpp
@@ -49,9 +49,9 @@ inline HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Docume
ScriptWrappable::init(this);
}
-PassRefPtr<HTMLButtonElement> HTMLButtonElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
+Result<HTMLButtonElement> HTMLButtonElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form)
{
- return adoptRef(new HTMLButtonElement(tagName, document, form));
+ return adoptNode(new HTMLButtonElement(tagName, document, form));
}
void HTMLButtonElement::setType(const AtomicString& type)
@@ -208,4 +208,9 @@ bool HTMLButtonElement::recalcWillValidate() const
return m_type == SUBMIT && HTMLFormControlElement::recalcWillValidate();
}
+void HTMLButtonElement::acceptHeapVisitor(Visitor* visitor) const
+{
+ HTMLFormControlElement::acceptHeapVisitor(visitor);
+}
+
} // namespace
« no previous file with comments | « Source/core/html/HTMLButtonElement.h ('k') | Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698