| 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 44442099edb41aee29f75bb55e3d68f0f039a3c0..504bd7c0de5f4f6b4dd85b64a8823e3878f6440e 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
|
| @@ -165,14 +165,14 @@ Node* enclosingBlockToSplitTreeTo(Node* startNode)
|
| DCHECK(startNode);
|
| Node* lastBlock = startNode;
|
| for (Node& runner : NodeTraversal::inclusiveAncestorsOf(*startNode)) {
|
| - if (!runner.hasEditableStyle())
|
| + if (!hasEditableStyle(runner))
|
| return lastBlock;
|
| - if (isTableCell(&runner) || isHTMLBodyElement(&runner) || !runner.parentNode() || !runner.parentNode()->hasEditableStyle() || isElementForFormatBlock(&runner))
|
| + if (isTableCell(&runner) || isHTMLBodyElement(&runner) || !runner.parentNode() || !hasEditableStyle(*runner.parentNode()) || isElementForFormatBlock(&runner))
|
| return &runner;
|
| if (isEnclosingBlock(&runner))
|
| lastBlock = &runner;
|
| if (isHTMLListElement(&runner))
|
| - return runner.parentNode()->hasEditableStyle() ? runner.parentNode() : &runner;
|
| + return hasEditableStyle(*runner.parentNode()) ? runner.parentNode() : &runner;
|
| }
|
| return lastBlock;
|
| }
|
|
|