diff options
Diffstat (limited to 'Source/WebCore/editing/FormatBlockCommand.cpp')
-rw-r--r-- | Source/WebCore/editing/FormatBlockCommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/editing/FormatBlockCommand.cpp b/Source/WebCore/editing/FormatBlockCommand.cpp index 58157af..9d90a1e 100644 --- a/Source/WebCore/editing/FormatBlockCommand.cpp +++ b/Source/WebCore/editing/FormatBlockCommand.cpp @@ -60,8 +60,8 @@ void FormatBlockCommand::formatSelection(const VisiblePosition& startOfSelection void FormatBlockCommand::formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>& blockNode) { - Node* nodeToSplitTo = enclosingBlockToSplitTreeTo(start.node()); - RefPtr<Node> outerBlock = (start.node() == nodeToSplitTo) ? start.node() : splitTreeToNode(start.node(), nodeToSplitTo); + Node* nodeToSplitTo = enclosingBlockToSplitTreeTo(start.deprecatedNode()); + RefPtr<Node> outerBlock = (start.deprecatedNode() == nodeToSplitTo) ? start.deprecatedNode() : splitTreeToNode(start.deprecatedNode(), nodeToSplitTo); RefPtr<Node> nodeAfterInsertionPosition = outerBlock; RefPtr<Range> range = Range::create(document(), start, endOfSelection); |