VTTCue: Simplify computation of direction-aware text position

Add a helper resolveCueAlignment to resolve 'start' and 'end' to the
corresponding "visual" value, and also compute the visual text position
once.

BUG=448000

Review URL: https://codereview.chromium.org/852233002

git-svn-id: svn://svn.chromium.org/blink/trunk@188545 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: 3e21539745db76eb57a95c4bd1da3ee1360f0813
  1. third_party/