OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 VTTCue* getCue() const { return m_cue; } | 60 VTTCue* getCue() const { return m_cue; } |
61 void applyCSSProperties(const VTTDisplayParameters&); | 61 void applyCSSProperties(const VTTDisplayParameters&); |
62 | 62 |
63 virtual void trace(Visitor*) override; | 63 virtual void trace(Visitor*) override; |
64 | 64 |
65 private: | 65 private: |
66 VTTCueBox(Document&, VTTCue*); | 66 VTTCueBox(Document&, VTTCue*); |
67 | 67 |
68 virtual RenderObject* createRenderer(const RenderStyle&) override; | 68 virtual LayoutObject* createRenderer(const RenderStyle&) override; |
69 | 69 |
70 RawPtrWillBeMember<VTTCue> m_cue; | 70 RawPtrWillBeMember<VTTCue> m_cue; |
71 }; | 71 }; |
72 | 72 |
73 class VTTCue final : public TextTrackCue { | 73 class VTTCue final : public TextTrackCue { |
74 DEFINE_WRAPPERTYPEINFO(); | 74 DEFINE_WRAPPERTYPEINFO(); |
75 public: | 75 public: |
76 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) | 76 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) |
77 { | 77 { |
78 return adoptRefWillBeNoop(new VTTCue(document, startTime, endTime, text)
); | 78 return adoptRefWillBeNoop(new VTTCue(document, startTime, endTime, text)
); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool m_displayTreeShouldChange : 1; | 192 bool m_displayTreeShouldChange : 1; |
193 bool m_notifyRegion : 1; | 193 bool m_notifyRegion : 1; |
194 }; | 194 }; |
195 | 195 |
196 // VTTCue is currently the only TextTrackCue subclass. | 196 // VTTCue is currently the only TextTrackCue subclass. |
197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
198 | 198 |
199 } // namespace blink | 199 } // namespace blink |
200 | 200 |
201 #endif // VTTCue_h | 201 #endif // VTTCue_h |
OLD | NEW |