| 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.
|
|
|