Index: Source/core/editing/FormatBlockCommand.cpp |
diff --git a/Source/core/editing/FormatBlockCommand.cpp b/Source/core/editing/FormatBlockCommand.cpp |
index 5b3d1837ea1f29d74f7e6177d0ab8e8978cfd2a0..ac397a9ebf0ad8855764e157a02f368a0dbdc281 100644 |
--- a/Source/core/editing/FormatBlockCommand.cpp |
+++ b/Source/core/editing/FormatBlockCommand.cpp |
@@ -73,7 +73,7 @@ void FormatBlockCommand::formatRange(const Position& start, const Position& end, |
RefPtr<Range> range = Range::create(document(), start, endOfSelection); |
if (isElementForFormatBlock(refNode->tagQName()) && VisiblePosition(start) == startOfBlock(VisiblePosition(start)) |
- && (VisiblePosition(end) == endOfBlock(VisiblePosition(end)) || isNodeVisiblyContainedWithin(refNode, range.get())) |
+ && (VisiblePosition(end) == endOfBlock(VisiblePosition(end)) || isNodeVisiblyContainedWithin(*refNode, *range)) |
&& refNode != root && !root->isDescendantOf(refNode)) { |
// Already in a block element that only contains the current paragraph |
if (refNode->hasTagName(tagName())) |