DescriptionMove WebVTT snap-to-lines layout code to a helper class
Move the bulk of the cue (post "box generation") layout code to a new
helper SnapToLinesLayouter.
This eliminates transient state from RenderVTTCue, and should make is
easier to cache additional values (like the containing block and it's
bounding box for example.) It could eventually also help breaking the
dependency with the physical VTT cue structure, and make it possible to
move the layout to the cue container.
The code that tries to adjust for margin/border/padding is split out into
a method.
No functional changes intended.
BUG=301580
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189004
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (2 generated)
|