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

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

Issue 23822003: Have EditCommand classes deal with Document references, not pointers (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
« no previous file with comments | « Source/core/editing/InputMethodController.cpp ('k') | Source/core/editing/InsertLineBreakCommand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InsertIntoTextNodeCommand.cpp
diff --git a/Source/core/editing/InsertIntoTextNodeCommand.cpp b/Source/core/editing/InsertIntoTextNodeCommand.cpp
index 851b9aba058bd44d7007d433418a998797ef7bc2..d2ddc99502aa1a41278cf050f5aff149f0c4fb5e 100644
--- a/Source/core/editing/InsertIntoTextNodeCommand.cpp
+++ b/Source/core/editing/InsertIntoTextNodeCommand.cpp
@@ -35,7 +35,7 @@
namespace WebCore {
InsertIntoTextNodeCommand::InsertIntoTextNodeCommand(PassRefPtr<Text> node, unsigned offset, const String& text)
- : SimpleEditCommand(&node->document())
+ : SimpleEditCommand(node->document())
, m_node(node)
, m_offset(offset)
, m_text(text)
@@ -47,9 +47,9 @@ InsertIntoTextNodeCommand::InsertIntoTextNodeCommand(PassRefPtr<Text> node, unsi
void InsertIntoTextNodeCommand::doApply()
{
- bool passwordEchoEnabled = document()->settings() && document()->settings()->passwordEchoEnabled();
+ bool passwordEchoEnabled = document().settings() && document().settings()->passwordEchoEnabled();
if (passwordEchoEnabled)
- document()->updateLayoutIgnorePendingStylesheets();
+ document().updateLayoutIgnorePendingStylesheets();
if (!m_node->rendererIsEditable())
return;
« no previous file with comments | « Source/core/editing/InputMethodController.cpp ('k') | Source/core/editing/InsertLineBreakCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698