DescriptionHide canonicalPosition in VisiblePosition from header file
This patch makes static member function |VisiblePosition::canonicalPosition| to
static function in "VisiblePosition.cpp" for code health by limiting visibility.
Since following patch make |canonicalPosition()| to be a template funciton to
make |VisiblePosition| to work with both DOM tree position and composed tree
position for selection for web component, we don't want to have template
declaration, which is implementation details and redundant information for
clients of |VisiblePostion|, in private section of header file.
a preparation of converting
|canonicalPosition| to a template function to make |VisibilePosition| to work
with both a position in DOM tree and composed tree.
This patch is result of collaboration work with hajimehoshi@chromium.org
for selection of web components. After this patch, we are going to
implement another strategies for the composed tree. We've already
prepared that at http://crrev.com/1106433002.
BUG=275851
TEST=n/a; No behavior changes.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197430
Patch Set 1 #
Total comments: 1
Messages
Total messages: 7 (2 generated)
|
||||||||||||||||||||||||||||