Make PositionInComposedTree::downstream() to work properly
commit3a79f21e8e383b9bdf75a016879dc5ba032ca5f4
authoryosin@chromium.org <yosin@chromium.org>
Wed, 5 Aug 2015 05:16:45 +0000 (5 05:16 +0000)
committeryosin@chromium.org <yosin@chromium.org>
Wed, 5 Aug 2015 05:16:45 +0000 (5 05:16 +0000)
treea0f139bae8279fbe0565a1263cbc8c8b6d0ca108
parent7d7e4ec3a01ef891a086079b49937c85e827c07f
Make PositionInComposedTree::downstream() to work properly

This patch makes |PositionInComposedTree::downstream()| to use composed tree
version of |caretMaxOffset()| instead of DOM tree version.

This patch is a preparation of templatizing |VisiblePosition|.

BUG=510337
TEST=webkit_unit_tests --gtest_filter=PositionTest.downstreamAfterAnchor

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

git-svn-id: svn://svn.chromium.org/blink/trunk@200025 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/Source/core/dom/Position.cpp
third_party/WebKit/Source/core/dom/PositionTest.cpp