| Index: Source/core/html/forms/InputTypeView.h
|
| diff --git a/Source/core/html/forms/InputTypeView.h b/Source/core/html/forms/InputTypeView.h
|
| index 2b880d051a6258387cce5cd8ce8f2e84613fe997..43528cb4e417d0e17bfc6ef8bcfc9b82661eef3c 100644
|
| --- a/Source/core/html/forms/InputTypeView.h
|
| +++ b/Source/core/html/forms/InputTypeView.h
|
| @@ -70,7 +70,7 @@ class InputTypeView : public RefCounted<InputTypeView> {
|
| WTF_MAKE_FAST_ALLOCATED;
|
|
|
| public:
|
| - static PassRefPtr<InputTypeView> create(HTMLInputElement*);
|
| + static PassRefPtr<InputTypeView> create(HTMLInputElement&);
|
| virtual ~InputTypeView();
|
|
|
| virtual bool sizeShouldIncludeDecoration(int defaultSize, int& preferredSize) const;
|
| @@ -110,13 +110,13 @@ public:
|
| virtual void updateClearButtonVisibility();
|
|
|
| protected:
|
| - InputTypeView(HTMLInputElement* element) : m_element(element) { }
|
| - HTMLInputElement* element() const { return m_element; }
|
| + InputTypeView(HTMLInputElement& element) : m_element(element) { }
|
| + HTMLInputElement& element() const { return m_element; }
|
|
|
| private:
|
| - // Raw pointer because the HTMLInputElement object owns this InputTypeView
|
| + // Not a RefPtr because the HTMLInputElement object owns this InputTypeView
|
| // object.
|
| - HTMLInputElement* m_element;
|
| + HTMLInputElement& m_element;
|
| };
|
|
|
| } // namespace WebCore
|
|
|