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

Unified Diff: Source/core/html/BaseButtonInputType.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/BaseButtonInputType.h ('k') | Source/core/html/BaseCheckableInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/BaseButtonInputType.cpp
diff --git a/Source/core/html/BaseButtonInputType.cpp b/Source/core/html/BaseButtonInputType.cpp
index 75f97ec243ae7640b138cf75b3a8e3a6c63e590c..e3b6b296e7c6050d49d4c630e30853518b54bac7 100644
--- a/Source/core/html/BaseButtonInputType.cpp
+++ b/Source/core/html/BaseButtonInputType.cpp
@@ -41,6 +41,11 @@ namespace WebCore {
using namespace HTMLNames;
+BaseButtonInputType::BaseButtonInputType(const Handle<HTMLInputElement>& element)
+ : BaseClickableWithKeyInputType(element)
+{
+}
+
bool BaseButtonInputType::shouldSaveAndRestoreFormControlState() const
{
return false;
@@ -54,7 +59,7 @@ bool BaseButtonInputType::appendFormData(FormDataList&, bool) const
RenderObject* BaseButtonInputType::createRenderer(RenderArena* arena, RenderStyle*) const
{
- return new (arena) RenderButton(element());
+ return new (arena) RenderButton(Handle<HTMLInputElement>(element()).raw());
}
bool BaseButtonInputType::storesValueSeparateFromAttribute()
« no previous file with comments | « Source/core/html/BaseButtonInputType.h ('k') | Source/core/html/BaseCheckableInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698