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

Unified Diff: Source/core/html/ImageInputType.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/ImageInputType.h ('k') | Source/core/html/InputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ImageInputType.cpp
diff --git a/Source/core/html/ImageInputType.cpp b/Source/core/html/ImageInputType.cpp
index eef34da59eb1f6da35ce1424a3d174a3b124675e..172440bcb870b5c51ff14b7e53e7905f12f2a94d 100644
--- a/Source/core/html/ImageInputType.cpp
+++ b/Source/core/html/ImageInputType.cpp
@@ -39,12 +39,12 @@ namespace WebCore {
using namespace HTMLNames;
-inline ImageInputType::ImageInputType(HTMLInputElement* element)
+inline ImageInputType::ImageInputType(Handle<HTMLInputElement> element)
: BaseButtonInputType(element)
{
}
-PassOwnPtr<InputType> ImageInputType::create(HTMLInputElement* element)
+PassOwnPtr<InputType> ImageInputType::create(Handle<HTMLInputElement> element)
{
return adoptPtr(new ImageInputType(element));
}
@@ -87,7 +87,7 @@ bool ImageInputType::supportsValidation() const
void ImageInputType::handleDOMActivateEvent(Event* event)
{
- RefPtr<HTMLInputElement> element = this->element();
+ Handle<HTMLInputElement> element = this->element();
if (element->isDisabledFormControl() || !element->form())
return;
element->setActivatedSubmit(true);
@@ -103,7 +103,7 @@ void ImageInputType::handleDOMActivateEvent(Event* event)
RenderObject* ImageInputType::createRenderer(RenderArena* arena, RenderStyle*) const
{
- RenderImage* image = new (arena) RenderImage(element());
+ RenderImage* image = new (arena) RenderImage(Handle<HTMLInputElement>(element()).raw());
image->setImageResource(RenderImageResource::create());
return image;
}
@@ -173,7 +173,7 @@ bool ImageInputType::shouldRespectHeightAndWidthAttributes()
unsigned ImageInputType::height() const
{
- RefPtr<HTMLInputElement> element = this->element();
+ Handle<HTMLInputElement> element = this->element();
if (!element->renderer()) {
// Check the attribute first for an explicit pixel value.
@@ -197,7 +197,7 @@ unsigned ImageInputType::height() const
unsigned ImageInputType::width() const
{
- RefPtr<HTMLInputElement> element = this->element();
+ Handle<HTMLInputElement> element = this->element();
if (!element->renderer()) {
// Check the attribute first for an explicit pixel value.
« no previous file with comments | « Source/core/html/ImageInputType.h ('k') | Source/core/html/InputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698