| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index f190409c339f76537b10230fcdec6ed5803d5362..0c9edc2b739cd7018906d6e2a5abba4fa9b4d13e 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -714,26 +714,6 @@ void EventHandler::updateSelectionForMouseDrag()
|
| updateSelectionForMouseDrag(result);
|
| }
|
|
|
| -static VisiblePosition selectionExtentRespectingEditingBoundary(const VisibleSelection& selection, const LayoutPoint& localPoint, Node* targetNode)
|
| -{
|
| - LayoutPoint selectionEndPoint = localPoint;
|
| - Element* editableElement = selection.rootEditableElement();
|
| -
|
| - if (!targetNode->renderer())
|
| - return VisiblePosition();
|
| -
|
| - if (editableElement && !editableElement->contains(targetNode)) {
|
| - if (!editableElement->renderer())
|
| - return VisiblePosition();
|
| -
|
| - FloatPoint absolutePoint = targetNode->renderer()->localToAbsolute(FloatPoint(selectionEndPoint));
|
| - selectionEndPoint = roundedLayoutPoint(editableElement->renderer()->absoluteToLocal(absolutePoint));
|
| - targetNode = editableElement;
|
| - }
|
| -
|
| - return targetNode->renderer()->positionForPoint(selectionEndPoint);
|
| -}
|
| -
|
| void EventHandler::updateSelectionForMouseDrag(const HitTestResult& hitTestResult)
|
| {
|
| if (!m_mouseDownMayStartSelect)
|
| @@ -743,8 +723,7 @@ void EventHandler::updateSelectionForMouseDrag(const HitTestResult& hitTestResul
|
| if (!target)
|
| return;
|
|
|
| - VisiblePosition targetPosition = selectionExtentRespectingEditingBoundary(m_frame->selection()->selection(), hitTestResult.localPoint(), target);
|
| -
|
| + VisiblePosition targetPosition = visiblePositionRespectingEditingBoundary(m_frame->selection()->selection(), hitTestResult.localPoint(), target);
|
| // Don't modify the selection if we're not on a node.
|
| if (targetPosition.isNull())
|
| return;
|
|
|