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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix 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/HTMLElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('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 7eb85cd3fc0d0d4c36827f7e8d26757720da4f43..503fe07915439bf4f6c60b8bc49dedc0bc312079 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));
}
@@ -388,7 +388,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.
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | Source/core/html/HTMLEmbedElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698