Index: third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp |
index 5d28398ed469eb8a5194ac2358400d28df656d16..917473f4dcc029820801187721c517a5834b48a4 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp |
@@ -69,7 +69,7 @@ void FormatBlockCommand::formatSelection(const VisiblePosition& startOfSelection |
void FormatBlockCommand::formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtrWillBeRawPtr<HTMLElement>& blockElement) |
{ |
Element* refElement = enclosingBlockFlowElement(createVisiblePosition(end)); |
- Element* root = editableRootElementForPosition(start); |
+ Element* root = rootEditableElementOf(start); |
// Root is null for elements with contenteditable=false. |
if (!root || !refElement) |
return; |