Index: Source/core/editing/FormatBlockCommand.cpp |
diff --git a/Source/core/editing/FormatBlockCommand.cpp b/Source/core/editing/FormatBlockCommand.cpp |
index 2c2d26aa05d04c32fd3eac3ec8507bc8652b0c11..13510e43137fc33a75f0a340b337277a84f8b3d2 100644 |
--- a/Source/core/editing/FormatBlockCommand.cpp |
+++ b/Source/core/editing/FormatBlockCommand.cpp |
@@ -70,7 +70,7 @@ void FormatBlockCommand::formatRange(const Position& start, const Position& end, |
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); |
+ RefPtrWillBeRawPtr<Range> range = Range::create(document(), start, endOfSelection); |
if (isElementForFormatBlock(refNode->tagQName()) && VisiblePosition(start) == startOfBlock(VisiblePosition(start)) |
&& (VisiblePosition(end) == endOfBlock(VisiblePosition(end)) || isNodeVisiblyContainedWithin(*refNode, *range)) |