DescriptionIntroduce LayoutObject::createPositionWithAffinity(int offset)
This patch introduces |LayoutObject::createPositionWithAffinity()| which
takes |int offset| and pass |DOWNSTREAM| to two parameters version to simplify
call sites like like |PositionWithAffinity| constructor which defaults to
|DOWNSTREAM|, for improving code health
This patch is a preparation of introducing enum class |TextAffinity| as
replacement of |EAffinity| for reducing usage of |EAffinity::DOWNSTREAM|.
BUG=522038
TEST=n/a; no behavior changes
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200802
Patch Set 1 : 2015-08-19T12:20:28 #
Messages
Total messages: 6 (2 generated)
|