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

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: Fix tests build 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 fcb80702b7ac39287536e17357279cce0afbecf0..939b88872cdcf5b9319f38454114b71655651f86 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