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

Unified Diff: Source/core/html/forms/InputType.h

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/ImageInputType.cpp ('k') | Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/InputType.h
diff --git a/Source/core/html/forms/InputType.h b/Source/core/html/forms/InputType.h
index e03b962dec57a36243fedb94511606f3fd70b1d9..56fb69fb6afdc433ca25ff591c6d9e2c661df094 100644
--- a/Source/core/html/forms/InputType.h
+++ b/Source/core/html/forms/InputType.h
@@ -58,8 +58,8 @@ class InputType : public InputTypeView {
WTF_MAKE_FAST_ALLOCATED;
public:
- static PassRefPtr<InputType> create(HTMLInputElement*, const AtomicString&);
- static PassRefPtr<InputType> createText(HTMLInputElement*);
+ static PassRefPtr<InputType> create(HTMLInputElement&, const AtomicString&);
+ static PassRefPtr<InputType> createText(HTMLInputElement&);
static const AtomicString& normalizeTypeName(const AtomicString&);
virtual ~InputType();
@@ -239,7 +239,7 @@ public:
virtual bool hasCustomFocusLogic() const OVERRIDE;
protected:
- InputType(HTMLInputElement* element) : InputTypeView(element) { }
+ InputType(HTMLInputElement& element) : InputTypeView(element) { }
Chrome* chrome() const;
Locale& locale() const;
Decimal parseToNumberOrNaN(const String&) const;
« no previous file with comments | « Source/core/html/forms/ImageInputType.cpp ('k') | Source/core/html/forms/InputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698