Introduce composed tree version of leftPositionOf()
This patch introduces composed tree version of |leftPositionOf()| by templatizing original |leftPositionOf()| to work both DOM tree position and composed tree position version for introducing composed tree version of |VisibleSelection| class. This patch also introduces |createVisiblePosition()| for |PositionInComposdTreeWithAffinity| and templaizes |honorEditingBoundaryAtOrAfter()| and |leftVisuallyDistinctCandidate()| used by |leftPositionOf()|. 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/1326313002 git-svn-id: svn://svn.chromium.org/blink/trunk@201954 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment