| Index: Source/core/html/HTMLTextFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
|
| index b9bc032d0d37dbc76a630f134fd6764eb0f8be7a..5f641165c79366cfa38e847a5313d8e0322dd737 100644
|
| --- a/Source/core/html/HTMLTextFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLTextFormControlElement.cpp
|
| @@ -49,7 +49,7 @@ namespace WebCore {
|
| using namespace HTMLNames;
|
| using namespace std;
|
|
|
| -HTMLTextFormControlElement::HTMLTextFormControlElement(const QualifiedName& tagName, Document* doc, HTMLFormElement* form)
|
| +HTMLTextFormControlElement::HTMLTextFormControlElement(const QualifiedName& tagName, Document& doc, HTMLFormElement* form)
|
| : HTMLFormControlElementWithState(tagName, doc, form)
|
| , m_lastChangeWasUserEdit(false)
|
| , m_cachedSelectionStart(-1)
|
| @@ -509,7 +509,7 @@ void HTMLTextFormControlElement::setInnerTextValue(const String& value)
|
| innerTextElement()->setInnerText(value, ASSERT_NO_EXCEPTION);
|
|
|
| if (value.endsWith('\n') || value.endsWith('\r'))
|
| - innerTextElement()->appendChild(HTMLBRElement::create(&document()));
|
| + innerTextElement()->appendChild(HTMLBRElement::create(document()));
|
| }
|
|
|
| setFormControlValueMatchesRenderer(true);
|
|
|