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

Unified Diff: Source/core/html/track/VTTCue.cpp

Issue 63173020: Split VTTCue from TextTrackCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/VTTCue.h ('k') | Source/core/html/track/VTTCue.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/VTTCue.cpp
diff --git a/Source/core/css/xhtmlmp.css b/Source/core/html/track/VTTCue.cpp
similarity index 77%
copy from Source/core/css/xhtmlmp.css
copy to Source/core/html/track/VTTCue.cpp
index 11ea1cf1a031cfbf2694983c810bab1f925d99ae..df88050542baafbdc9fd2b252dda44c65a74de70 100644
--- a/Source/core/css/xhtmlmp.css
+++ b/Source/core/html/track/VTTCue.cpp
@@ -27,11 +27,20 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* Default styles for XHTML Mobile Profile documents where they differ from html.css */
+#include "config.h"
+#include "core/html/track/VTTCue.h"
-@viewport {
- width: auto;
- /* Ideally these should be removed. Currently here to avoid test result regressions. */
- min-zoom: 0.25;
- max-zoom: 5;
+namespace WebCore {
+
+VTTCue::VTTCue(Document& document, double startTime, double endTime, const String& text)
+ : TextTrackCue(document, startTime, endTime, text)
+{
+ ScriptWrappable::init(this);
+}
+
+PassRefPtr<VTTCue> VTTCue::create(Document& document, double startTime, double endTime, const String& text)
+{
+ return adoptRef(new VTTCue(document, startTime, endTime, text));
}
+
+} // namespace WebCore
« no previous file with comments | « Source/core/html/track/VTTCue.h ('k') | Source/core/html/track/VTTCue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698