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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 CueAlignment cueAlignment() const { return m_cueAlignment; } | 136 CueAlignment cueAlignment() const { return m_cueAlignment; } |
137 | 137 |
138 virtual ExecutionContext* executionContext() const override; | 138 virtual ExecutionContext* executionContext() const override; |
139 | 139 |
140 #ifndef NDEBUG | 140 #ifndef NDEBUG |
141 virtual String toString() const override; | 141 virtual String toString() const override; |
142 #endif | 142 #endif |
143 | 143 |
144 DECLARE_VIRTUAL_TRACE(); | 144 DECLARE_VIRTUAL_TRACE(); |
145 | 145 |
| 146 // Applies CSS properties retrieved from settings on text tracks elements. |
| 147 void applyUserOverrideCSSProperties(); |
| 148 |
146 private: | 149 private: |
147 VTTCue(Document&, double startTime, double endTime, const String& text); | 150 VTTCue(Document&, double startTime, double endTime, const String& text); |
148 | 151 |
149 Document& document() const; | 152 Document& document() const; |
150 | 153 |
151 VTTCueBox& ensureDisplayTree(); | 154 VTTCueBox& ensureDisplayTree(); |
152 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); | 155 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); |
153 | 156 |
154 virtual void cueDidChange() override; | 157 virtual void cueDidChange() override; |
155 | 158 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 bool m_snapToLines : 1; | 192 bool m_snapToLines : 1; |
190 bool m_displayTreeShouldChange : 1; | 193 bool m_displayTreeShouldChange : 1; |
191 }; | 194 }; |
192 | 195 |
193 // VTTCue is currently the only TextTrackCue subclass. | 196 // VTTCue is currently the only TextTrackCue subclass. |
194 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
195 | 198 |
196 } // namespace blink | 199 } // namespace blink |
197 | 200 |
198 #endif // VTTCue_h | 201 #endif // VTTCue_h |
OLD | NEW |