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

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

Issue 81133002: Fix BiDi paragraph embedding level resolution for VTTCue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase after code movements Created 7 years 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
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 PassRefPtr<VTTCueBox> displayTreeInternal(); 148 PassRefPtr<VTTCueBox> displayTreeInternal();
149 PassRefPtr<TextTrackCueBox> getDisplayTree(const IntSize& videoSize); 149 PassRefPtr<TextTrackCueBox> getDisplayTree(const IntSize& videoSize);
150 150
151 virtual void cueDidChange() OVERRIDE; 151 virtual void cueDidChange() OVERRIDE;
152 152
153 void createVTTNodeTree(); 153 void createVTTNodeTree();
154 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root); 154 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root);
155 155
156 std::pair<double, double> getPositionCoordinates() const; 156 std::pair<double, double> getPositionCoordinates() const;
157 157
158 void determineTextDirection();
159 void calculateDisplayParameters(); 158 void calculateDisplayParameters();
160 159
161 enum CueSetting { 160 enum CueSetting {
162 None, 161 None,
163 Vertical, 162 Vertical,
164 Line, 163 Line,
165 Position, 164 Position,
166 Size, 165 Size,
167 Align, 166 Align,
168 RegionId 167 RegionId
(...skipping 28 matching lines...) Expand all
197 196
198 inline VTTCue* toVTTCue(TextTrackCue* cue) 197 inline VTTCue* toVTTCue(TextTrackCue* cue)
199 { 198 {
200 // VTTCue is currently the only TextTrackCue subclass. 199 // VTTCue is currently the only TextTrackCue subclass.
201 return static_cast<VTTCue*>(cue); 200 return static_cast<VTTCue*>(cue);
202 } 201 }
203 202
204 } // namespace WebCore 203 } // namespace WebCore
205 204
206 #endif 205 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-cue-rendering-rtl-expected.txt ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698