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

Unified Diff: Source/core/html/HTMLElement.cpp

Issue 23513013: Have Text constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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/HTMLDetailsElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/html/HTMLDetailsElement.cpp ('k') | Source/core/html/HTMLKeygenElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698