Commit 2b369942 authored by yosin@chromium.org's avatar yosin@chromium.org

Make WebLocalFrameImpl to use VisibleSelection::toNormalizedEphemeralRange()...

Make WebLocalFrameImpl to use VisibleSelection::toNormalizedEphemeralRange() instead of toNormalizedRange()

This patch changes |WebLocalFrameImpl| class to use |toNormalizedEphemeralRange()|
in |VisibleSelection| class instead of |toNormalizedRange()| as a preparation
of templatizing |VisibleSelection| to use templatized positions instead of
DOM position to represent range.

This patch is a preparation of making selection to handle granularity for web
component, http://crrev.com/1277863002

BUG=513568
TEST=n/a; no behavior changes

Review URL: https://codereview.chromium.org/1313013002

git-svn-id: svn://svn.chromium.org/blink/trunk@201123 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 209bf48e
...@@ -1240,7 +1240,7 @@ bool WebLocalFrameImpl::hasSelection() const ...@@ -1240,7 +1240,7 @@ bool WebLocalFrameImpl::hasSelection() const
WebRange WebLocalFrameImpl::selectionRange() const WebRange WebLocalFrameImpl::selectionRange() const
{ {
return frame()->selection().toNormalizedRange(); return createRange(frame()->selection().selection().toNormalizedEphemeralRange());
} }
WebString WebLocalFrameImpl::selectionAsText() const WebString WebLocalFrameImpl::selectionAsText() const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment