Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 0ebb4e7c68dec79030afb0450e27c0cc22753296..612931458d455e3e261386cf539f7738f2681d8b 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -383,7 +383,7 @@ PassRefPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, Exc |
break; |
} |
- fragment->appendChild(Text::create(&document(), text.substring(start, i - start)), es); |
+ fragment->appendChild(Text::create(document(), text.substring(start, i - start)), es); |
if (es.hadException()) |
return 0; |
@@ -477,7 +477,7 @@ void HTMLElement::setOuterText(const String &text, ExceptionState& es) |
if (text.contains('\r') || text.contains('\n')) |
newChild = textToFragment(text, es); |
else |
- newChild = Text::create(&document(), text); |
+ newChild = Text::create(document(), text); |
if (!this || !parentNode()) |
es.throwDOMException(HierarchyRequestError); |