Introduce 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 Review URL: https://codereview.chromium.org/1303653002 git-svn-id: svn://svn.chromium.org/blink/trunk@200802 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment