| Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| index 3fe2471ade436bcc32bb056d46e8063e953f0e89..ee40e3732833188fb54b6cf9016de93a3ec0c71b 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -718,16 +718,16 @@ Element* enclosingBlock(const PositionInFlatTree& position, EditingBoundaryCross
|
| return enclosingBlockAlgorithm<EditingInFlatTreeStrategy>(position, rule);
|
| }
|
|
|
| -Element* enclosingBlockFlowElement(Node& node)
|
| +Element* enclosingBlockFlowElement(const Node& node)
|
| {
|
| if (isBlockFlowElement(node))
|
| - return &toElement(node);
|
| + return const_cast<Element*>(&toElement(node));
|
|
|
| for (Node* n = node.parentNode(); n; n = n->parentNode()) {
|
| if (isBlockFlowElement(*n) || isHTMLBodyElement(*n))
|
| return toElement(n);
|
| }
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| bool inSameContainingBlockFlowElement(Node* a, Node* b)
|
|
|