Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: Source/core/html/track/vtt/VTTCue.h

Issue 1022523002: Clean up around text track display state updates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/CueTimeline.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/CueTimeline.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698