| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index b9fc0c259b9a3fc469fcaad8d47d0ee73a8d0349..941a0fd3d6ab388fbc3de48236b34fd4a5499098 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -64,7 +64,7 @@ using namespace WTF;
|
| using std::min;
|
| using std::max;
|
|
|
| -PassRefPtr<HTMLElement> HTMLElement::create(const QualifiedName& tagName, Document* document)
|
| +PassRefPtr<HTMLElement> HTMLElement::create(const QualifiedName& tagName, Document& document)
|
| {
|
| return adoptRef(new HTMLElement(tagName, document));
|
| }
|
| @@ -385,7 +385,7 @@ PassRefPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, Exc
|
| return 0;
|
|
|
| if (c == '\r' || c == '\n') {
|
| - fragment->appendChild(HTMLBRElement::create(&document()), es);
|
| + fragment->appendChild(HTMLBRElement::create(document()), es);
|
| if (es.hadException())
|
| return 0;
|
| // Make sure \r\n doesn't result in two line breaks.
|
|
|