| Index: Source/core/editing/VisiblePosition.cpp
|
| diff --git a/Source/core/editing/VisiblePosition.cpp b/Source/core/editing/VisiblePosition.cpp
|
| index b1b2e1a6ee7ae6385ce684a8f1378d35570bb149..0b3d5119aa0b2e7eb52039f027f734c1be8d4960 100644
|
| --- a/Source/core/editing/VisiblePosition.cpp
|
| +++ b/Source/core/editing/VisiblePosition.cpp
|
| @@ -442,10 +442,10 @@ VisiblePosition VisiblePosition::honorEditingBoundaryAtOrBefore(const VisiblePos
|
| if (pos.isNull())
|
| return pos;
|
|
|
| - Node* highestRoot = highestEditableRoot(deepEquivalent());
|
| + Handle<Node> highestRoot = highestEditableRoot(deepEquivalent());
|
|
|
| // Return empty position if pos is not somewhere inside the editable region containing this position
|
| - if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot))
|
| + if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot.raw()))
|
| return VisiblePosition();
|
|
|
| // Return pos itself if the two are from the very same editable region, or both are non-editable
|
| @@ -468,10 +468,10 @@ VisiblePosition VisiblePosition::honorEditingBoundaryAtOrAfter(const VisiblePosi
|
| if (pos.isNull())
|
| return pos;
|
|
|
| - Node* highestRoot = highestEditableRoot(deepEquivalent());
|
| + Handle<Node> highestRoot = highestEditableRoot(deepEquivalent());
|
|
|
| // Return empty position if pos is not somewhere inside the editable region containing this position
|
| - if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot))
|
| + if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot.raw()))
|
| return VisiblePosition();
|
|
|
| // Return pos itself if the two are from the very same editable region, or both are non-editable
|
|
|