Index: Source/core/editing/DeleteSelectionCommand.cpp |
diff --git a/Source/core/editing/DeleteSelectionCommand.cpp b/Source/core/editing/DeleteSelectionCommand.cpp |
index 39b7546220723b51630ed69e17832ea882a5ac29..d520b7f07cf4bd238d36ef3c93690c663c7be2e3 100644 |
--- a/Source/core/editing/DeleteSelectionCommand.cpp |
+++ b/Source/core/editing/DeleteSelectionCommand.cpp |
@@ -625,7 +625,7 @@ void DeleteSelectionCommand::mergeParagraphs() |
// We need to merge into m_upstreamStart's block, but it's been emptied out and collapsed by deletion. |
if (!mergeDestination.deepEquivalent().deprecatedNode() || !mergeDestination.deepEquivalent().deprecatedNode()->isDescendantOf(enclosingBlock(m_upstreamStart.containerNode())) || m_startsAtEmptyLine) { |
- insertNodeAt(createBreakElement(&document()).get(), m_upstreamStart); |
+ insertNodeAt(createBreakElement(document()).get(), m_upstreamStart); |
mergeDestination = VisiblePosition(m_upstreamStart); |
} |
@@ -825,7 +825,7 @@ void DeleteSelectionCommand::doApply() |
&& lineBreakBeforeStart; |
} |
- RefPtr<Node> placeholder = m_needPlaceholder ? createBreakElement(&document()).get() : 0; |
+ RefPtr<Node> placeholder = m_needPlaceholder ? createBreakElement(document()).get() : 0; |
if (placeholder) { |
if (m_sanitizeMarkup) |