Index: Source/core/editing/ApplyBlockElementCommand.cpp |
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp |
index bb2e553869c6f794063fae76649b27eaaeb4ffce..c9f6e5af16fc8ee46baee62d5ed6b1af2aec2573 100644 |
--- a/Source/core/editing/ApplyBlockElementCommand.cpp |
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp |
@@ -108,7 +108,7 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel |
if (isAtUnsplittableElement(start)) { |
RefPtr<Element> blockquote = createBlockElement(); |
insertNodeAt(blockquote, start); |
- RefPtr<Element> placeholder = createBreakElement(&document()); |
+ RefPtr<Element> placeholder = createBreakElement(document()); |
appendNode(placeholder, blockquote); |
setEndingSelection(VisibleSelection(positionBeforeNode(placeholder.get()), DOWNSTREAM, endingSelection().isDirectional())); |
return; |
@@ -278,7 +278,7 @@ VisiblePosition ApplyBlockElementCommand::endOfNextParagrahSplittingTextNodesIfN |
PassRefPtr<Element> ApplyBlockElementCommand::createBlockElement() const |
{ |
- RefPtr<Element> element = createHTMLElement(&document(), m_tagName); |
+ RefPtr<Element> element = createHTMLElement(document(), m_tagName); |
if (m_inlineStyle.length()) |
element->setAttribute(styleAttr, m_inlineStyle); |
return element.release(); |