VTTCue: Refactor display parameter handling

Move VTTCue::m_display* into a separate struct (VTTDisplayParameters) and
let VTTCue::calculateDisplayParameters return said struct.
The returned struct is then passed to VTTCueBox for application.
Also drop VTTCue::m_computedLinePosition.
Also move the call to createVTTNodeTree out of calculateDisplayParameters
to allow marking the latter const.
The method VTTCue::getPositionCoordinates is folded into
calculateDisplayParameters.
Additional mark some methods const (calculateComputedLinePosition,
settingName), and drop the 'videoSize' argument from
TextTrackCue::updateDisplay (and callees) since it isn't used ATM.

BUG=301580

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

git-svn-id: svn://svn.chromium.org/blink/trunk@188939 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 741bc8a136ed463a99af182f7e479f34cca353eb
  1. third_party/