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

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

Issue 23548010: Have htmlediting create functions 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/InsertTextCommand.cpp
diff --git a/Source/core/editing/InsertTextCommand.cpp b/Source/core/editing/InsertTextCommand.cpp
index 330246b297ccce67a19f099b6a6b2ddbdb1970e9..0871e3bc0d1cc8b16a4b2b6eb2c29a2c7ee280ef 100644
--- a/Source/core/editing/InsertTextCommand.cpp
+++ b/Source/core/editing/InsertTextCommand.cpp
@@ -246,7 +246,7 @@ Position InsertTextCommand::insertTab(const Position& pos)
}
// create new tab span
- RefPtr<Element> spanNode = createTabSpanElement(&document());
+ RefPtr<Element> spanNode = createTabSpanElement(document());
// place it
if (!node->isTextNode()) {
« no previous file with comments | « Source/core/editing/InsertParagraphSeparatorCommand.cpp ('k') | Source/core/editing/ModifySelectionListLevel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698