DescriptionIntroduce SelectionAdjuster to adjust selections between DOM tree version and composed tree version
This patch introduces |SelectionAdjuster| class to consolidate functions
adjusting DOM tree version and composed tree version of selections in
|VisibleSelection| class and |SelectionEditor| in one place to avoid having
six parameters constructor, and rude name function |createWithoutValidation()|
to simplify source code for improving readability.
Note: For ease of reviewing to compare changes, this patch doesn't leave
functions in original place. Following patch moves them to
"SelectionAdjust.{cpp,h}".
This patch is a preparation of introducing |m_hasTrailingWhitespace| into
|VisibleSelection| class, which makes six parameters constructor to seven
parameters constructor without this patch.
BUG=n/a
TEST=n/a; no behavior changes
Committed: https://crrev.com/647b2143c21fade656c085f5a83426e96acbd38a
Cr-Commit-Position: refs/heads/master@{#371697}
Patch Set 1 : 2016-01-26T16:20:29 #Patch Set 2 : 2016-01-26T18:27:24 Update selection type in SelectionEditor #
Messages
Total messages: 19 (8 generated)
|