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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/SplitTextNodeCommand.cpp
diff --git a/Source/core/editing/SplitTextNodeCommand.cpp b/Source/core/editing/SplitTextNodeCommand.cpp
index 0a57ef77e98e4ca7d27ae656462611190bee22ea..7c25e9f5248f34bab89c3b01670c4d8feb3e1026 100644
--- a/Source/core/editing/SplitTextNodeCommand.cpp
+++ b/Source/core/editing/SplitTextNodeCommand.cpp
@@ -36,7 +36,7 @@
namespace WebCore {
SplitTextNodeCommand::SplitTextNodeCommand(PassRefPtr<Text> text, int offset)
- : SimpleEditCommand(text->document())
+ : SimpleEditCommand(&text->document())
, m_text2(text)
, m_offset(offset)
{
@@ -72,7 +72,7 @@ void SplitTextNodeCommand::doUnapply()
if (!m_text1 || !m_text1->rendererIsEditable())
return;
- ASSERT(m_text1->document() == document());
+ ASSERT(&m_text1->document() == document());
String prefixText = m_text1->data();
« no previous file with comments | « Source/core/editing/SplitElementCommand.cpp ('k') | Source/core/editing/SplitTextNodeContainingElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698