| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 private: | 146 private: |
| 147 VTTCue(Document&, double startTime, double endTime, const String& text); | 147 VTTCue(Document&, double startTime, double endTime, const String& text); |
| 148 | 148 |
| 149 Document& document() const; | 149 Document& document() const; |
| 150 | 150 |
| 151 VTTCueBox& ensureDisplayTree(); | |
| 152 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); | 151 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); |
| 153 | 152 |
| 154 virtual void cueDidChange() override; | 153 virtual void cueDidChange() override; |
| 155 | 154 |
| 156 void createVTTNodeTree(); | 155 void createVTTNodeTree(); |
| 157 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root); | 156 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root); |
| 158 | 157 |
| 159 bool lineIsAuto() const; | 158 bool lineIsAuto() const; |
| 160 bool textPositionIsAuto() const; | 159 bool textPositionIsAuto() const; |
| 161 | 160 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 189 bool m_snapToLines : 1; | 188 bool m_snapToLines : 1; |
| 190 bool m_displayTreeShouldChange : 1; | 189 bool m_displayTreeShouldChange : 1; |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 // VTTCue is currently the only TextTrackCue subclass. | 192 // VTTCue is currently the only TextTrackCue subclass. |
| 194 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 193 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 195 | 194 |
| 196 } // namespace blink | 195 } // namespace blink |
| 197 | 196 |
| 198 #endif // VTTCue_h | 197 #endif // VTTCue_h |
| OLD | NEW |