| 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 131dbf6dd07a0fed6d51a59ea87a61eda55dcec8..55aad76828a74138f08b7098007fc82c742a79ae 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
|
| @@ -124,8 +124,8 @@ Element* FormatBlockCommand::elementForFormatBlockCommand(Range* range)
|
| if (!commonAncestor)
|
| return 0;
|
|
|
| - Element* rootEditableElement = range->startContainer()->rootEditableElement();
|
| - if (!rootEditableElement || commonAncestor->contains(rootEditableElement))
|
| + Element* element = rootEditableElement(*range->startContainer());
|
| + if (!element || commonAncestor->contains(element))
|
| return 0;
|
|
|
| return commonAncestor->isElementNode() ? toElement(commonAncestor) : 0;
|
|
|