| Index: Source/core/editing/VisibleSelection.cpp
|
| diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp
|
| index 558ff23030d6daeb876f2cf12d230661ed050233..a490dbbd042cb4b9b481e79d4f207a8f97a3de04 100644
|
| --- a/Source/core/editing/VisibleSelection.cpp
|
| +++ b/Source/core/editing/VisibleSelection.cpp
|
| @@ -744,22 +744,22 @@ void VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries()
|
|
|
| VisiblePosition VisibleSelection::visiblePositionRespectingEditingBoundary(const LayoutPoint& localPoint, Node* targetNode) const
|
| {
|
| - if (!targetNode->renderer())
|
| + if (!targetNode->layoutObject())
|
| return VisiblePosition();
|
|
|
| LayoutPoint selectionEndPoint = localPoint;
|
| Element* editableElement = rootEditableElement();
|
|
|
| if (editableElement && !editableElement->contains(targetNode)) {
|
| - if (!editableElement->renderer())
|
| + if (!editableElement->layoutObject())
|
| return VisiblePosition();
|
|
|
| - FloatPoint absolutePoint = targetNode->renderer()->localToAbsolute(FloatPoint(selectionEndPoint));
|
| - selectionEndPoint = roundedLayoutPoint(editableElement->renderer()->absoluteToLocal(absolutePoint));
|
| + FloatPoint absolutePoint = targetNode->layoutObject()->localToAbsolute(FloatPoint(selectionEndPoint));
|
| + selectionEndPoint = roundedLayoutPoint(editableElement->layoutObject()->absoluteToLocal(absolutePoint));
|
| targetNode = editableElement;
|
| }
|
|
|
| - return VisiblePosition(targetNode->renderer()->positionForPoint(selectionEndPoint));
|
| + return VisiblePosition(targetNode->layoutObject()->positionForPoint(selectionEndPoint));
|
| }
|
|
|
|
|
|
|