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

Unified Diff: Source/core/html/forms/ResetInputType.cpp

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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/forms/ResetInputType.h ('k') | Source/core/html/forms/SearchInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/ResetInputType.cpp
diff --git a/Source/core/html/forms/ResetInputType.cpp b/Source/core/html/forms/ResetInputType.cpp
index 7ee95f7debe9be6a0a8a6f0702448e7d05433b82..d1e07e544dbec8d1dbcb65a468e4db0693469019 100644
--- a/Source/core/html/forms/ResetInputType.cpp
+++ b/Source/core/html/forms/ResetInputType.cpp
@@ -41,7 +41,7 @@
namespace WebCore {
-PassRefPtr<InputType> ResetInputType::create(HTMLInputElement* element)
+PassRefPtr<InputType> ResetInputType::create(HTMLInputElement& element)
{
return adoptRef(new ResetInputType(element));
}
@@ -58,9 +58,9 @@ bool ResetInputType::supportsValidation() const
void ResetInputType::handleDOMActivateEvent(Event* event)
{
- if (element()->isDisabledFormControl() || !element()->form())
+ if (element().isDisabledFormControl() || !element().form())
return;
- element()->form()->reset();
+ element().form()->reset();
event->setDefaultHandled();
}
« no previous file with comments | « Source/core/html/forms/ResetInputType.h ('k') | Source/core/html/forms/SearchInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698