DescriptionRelocate source code position of VisiblePosition::init()
This patch relocates |VisiblePosition::init()| after |canonicalPosition()| to
avoid having forward function declaration for a preparation of making
|canonicalPosition()| a template function to make |VisiblePostion| to work with
both a position in DOM tree and a position in composed tree, since
|VisiblePostion::init()| calls |canonicalPosition()|, we need to place a
template function |canonicalPosition()| before |init()|.
Because of |canonicalPosition()| is larger than |init()|, moving |init()| after
|canonicalPosition()| yields smaller diff than moving |canonicalPosition()|
before |init()|.
This patch is a follow up patch of http://crrev.com/1191193002
BUG=n/a
TEST=no behavior chagnes
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197448
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|
|||||||||||||||||||