| Index: Source/core/html/track/vtt/VTTCue.h
|
| diff --git a/Source/core/html/track/vtt/VTTCue.h b/Source/core/html/track/vtt/VTTCue.h
|
| index a0062d1e15dfc80977195e9c7ac3a085fc0fb429..408e30ebfe64e5cb53b0ffea7f73732782634d13 100644
|
| --- a/Source/core/html/track/vtt/VTTCue.h
|
| +++ b/Source/core/html/track/vtt/VTTCue.h
|
| @@ -47,27 +47,30 @@ struct VTTDisplayParameters {
|
| FloatPoint position;
|
| float size;
|
| CSSValueID direction;
|
| + CSSValueID textAlign;
|
| CSSValueID writingMode;
|
| +
|
| + float snapToLinesPosition;
|
| };
|
|
|
| class VTTCueBox final : public HTMLDivElement {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document, VTTCue* cue)
|
| + static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document)
|
| {
|
| - return adoptRefWillBeNoop(new VTTCueBox(document, cue));
|
| + return adoptRefWillBeNoop(new VTTCueBox(document));
|
| }
|
|
|
| - VTTCue* getCue() const { return m_cue; }
|
| void applyCSSProperties(const VTTDisplayParameters&);
|
|
|
| - DECLARE_VIRTUAL_TRACE();
|
| -
|
| private:
|
| - VTTCueBox(Document&, VTTCue*);
|
| + VTTCueBox(Document&);
|
|
|
| LayoutObject* createLayoutObject(const ComputedStyle&) override;
|
|
|
| - RawPtrWillBeMember<VTTCue> m_cue;
|
| + // The computed line position for snap-to-lines layout, and NaN for
|
| + // non-snap-to-lines layout where no adjustment should take place.
|
| + // This is set in applyCSSProperties and propagated to LayoutVTTCue.
|
| + float m_snapToLinesPosition;
|
| };
|
|
|
| class VTTCue final : public TextTrackCue {
|
| @@ -78,8 +81,6 @@ public:
|
| return adoptRefWillBeNoop(new VTTCue(document, startTime, endTime, text));
|
| }
|
|
|
| - ~VTTCue() override;
|
| -
|
| const String& vertical() const;
|
| void setVertical(const String&);
|
|
|
|
|