DescriptionVTTCue: 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188939
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (2 generated)
|