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