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

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

Issue 1013393004: Eliminate TextTrackCue::updateDisplayTree() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: coerce m_isPastNode to bool 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/TextTrackCue.h ('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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 void parseSettings(const String&); 104 void parseSettings(const String&);
105 105
106 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML(); 106 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML();
107 107
108 const String& regionId() const { return m_regionId; } 108 const String& regionId() const { return m_regionId; }
109 void setRegionId(const String&); 109 void setRegionId(const String&);
110 110
111 virtual void updateDisplay(HTMLDivElement& container) override; 111 virtual void updateDisplay(HTMLDivElement& container) override;
112 112
113 virtual void updateDisplayTree(double movieTime) override; 113 virtual void updatePastAndFutureNodes(double movieTime) override;
114
114 virtual void removeDisplayTree(RemovalNotification) override; 115 virtual void removeDisplayTree(RemovalNotification) override;
115 116
116 void markFutureAndPastNodes(ContainerNode*, double previousTimestamp, double movieTime);
117
118 float calculateComputedLinePosition() const; 117 float calculateComputedLinePosition() const;
119 118
120 enum WritingDirection { 119 enum WritingDirection {
121 Horizontal = 0, 120 Horizontal = 0,
122 VerticalGrowingLeft, 121 VerticalGrowingLeft,
123 VerticalGrowingRight, 122 VerticalGrowingRight,
124 NumberOfWritingDirections 123 NumberOfWritingDirections
125 }; 124 };
126 WritingDirection getWritingDirection() const { return m_writingDirection; } 125 WritingDirection getWritingDirection() const { return m_writingDirection; }
127 126
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool m_snapToLines : 1; 187 bool m_snapToLines : 1;
189 bool m_displayTreeShouldChange : 1; 188 bool m_displayTreeShouldChange : 1;
190 }; 189 };
191 190
192 // VTTCue is currently the only TextTrackCue subclass. 191 // VTTCue is currently the only TextTrackCue subclass.
193 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 192 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
194 193
195 } // namespace blink 194 } // namespace blink
196 195
197 #endif // VTTCue_h 196 #endif // VTTCue_h
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698