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

Unified Diff: Source/core/editing/htmlediting.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/editing/htmlediting.cpp
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
index ee9eb74b16607fb50b00e10fe267327558b69752..6fc42c46055792237fe3c60dcc8547d2900e3a72 100644
--- a/Source/core/editing/htmlediting.cpp
+++ b/Source/core/editing/htmlediting.cpp
@@ -820,9 +820,9 @@ PassRefPtr<HTMLElement> createDefaultParagraphElement(Document& document)
{
switch (document.frame()->editor().defaultParagraphSeparator()) {
case EditorParagraphSeparatorIsDiv:
- return HTMLDivElement::create(&document);
+ return HTMLDivElement::create(document);
case EditorParagraphSeparatorIsP:
- return HTMLParagraphElement::create(&document);
+ return HTMLParagraphElement::create(document);
}
ASSERT_NOT_REACHED();
@@ -831,22 +831,22 @@ PassRefPtr<HTMLElement> createDefaultParagraphElement(Document& document)
PassRefPtr<HTMLElement> createBreakElement(Document& document)
{
- return HTMLBRElement::create(&document);
+ return HTMLBRElement::create(document);
}
PassRefPtr<HTMLElement> createOrderedListElement(Document& document)
{
- return HTMLOListElement::create(&document);
+ return HTMLOListElement::create(document);
}
PassRefPtr<HTMLElement> createUnorderedListElement(Document& document)
{
- return HTMLUListElement::create(&document);
+ return HTMLUListElement::create(document);
}
PassRefPtr<HTMLElement> createListItemElement(Document& document)
{
- return HTMLLIElement::create(&document);
+ return HTMLLIElement::create(document);
}
PassRefPtr<HTMLElement> createHTMLElement(Document& document, const QualifiedName& name)

Powered by Google App Engine
This is Rietveld 408576698