| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 1779eaab7a9968c5e03b1bcf34e2c9d6a65c1db6..cc8f300d2dbbb26735e8ffbda564a3afbac36aa1 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -3262,14 +3262,14 @@ PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, TextAf
|
| {
|
| // If this is a non-anonymous layoutObject in an editable area, then it's simple.
|
| if (Node* node = nonPseudoNode()) {
|
| - if (!node->hasEditableStyle()) {
|
| + if (!hasEditableStyle(*node)) {
|
| // If it can be found, we prefer a visually equivalent position that is editable.
|
| const Position position = Position(node, offset);
|
| Position candidate = mostForwardCaretPosition(position, CanCrossEditingBoundary);
|
| - if (candidate.anchorNode()->hasEditableStyle())
|
| + if (hasEditableStyle(*candidate.anchorNode()))
|
| return PositionWithAffinity(candidate, affinity);
|
| candidate = mostBackwardCaretPosition(position, CanCrossEditingBoundary);
|
| - if (candidate.anchorNode()->hasEditableStyle())
|
| + if (hasEditableStyle(*candidate.anchorNode()))
|
| return PositionWithAffinity(candidate, affinity);
|
| }
|
| // FIXME: Eliminate legacy editing positions
|
|
|