Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index caea872adab0f715961a1a565b5980e79acb49b9..b3fc354fccda1138c1c0a4050842029df2c4c9a2 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1248,12 +1248,9 @@ void WebLocalFrameImpl::selectRange(const WebRange& webRange) |
frame()->selection().setSelectedRange(range.get(), VP_DEFAULT_AFFINITY, FrameSelection::NonDirectional, NotUserTriggered); |
} |
-void WebLocalFrameImpl::moveRangeSelectionExtent(const WebPoint& pointInViewport, WebFrame::TextGranularity granularity) |
+void WebLocalFrameImpl::moveRangeSelectionExtent(const WebPoint& point) |
{ |
- blink::TextGranularity blinkGranularity = blink::CharacterGranularity; |
- if (granularity == WebFrame::WordGranularity) |
- blinkGranularity = blink::WordGranularity; |
- frame()->selection().moveRangeSelectionExtent(visiblePositionForViewportPoint(pointInViewport), blinkGranularity); |
+ frame()->selection().moveRangeSelectionExtent(visiblePositionForViewportPoint(point)); |
} |
void WebLocalFrameImpl::moveRangeSelection(const WebPoint& baseInViewport, const WebPoint& extentInViewport, WebFrame::TextGranularity granularity) |