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

Unified Diff: Source/core/html/track/vtt/VTTCue.h

Issue 850363005: VTTCue: Support 'auto' for line (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows compilation. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/media/track/vtt-cue-exceptions-expected.txt ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTCue.h
diff --git a/Source/core/html/track/vtt/VTTCue.h b/Source/core/html/track/vtt/VTTCue.h
index 4bd268803f0e11839074fbd0b49691384525c235..616783c69d507358cb555763fbe3fc36e4fb5e1e 100644
--- a/Source/core/html/track/vtt/VTTCue.h
+++ b/Source/core/html/track/vtt/VTTCue.h
@@ -36,6 +36,7 @@
namespace blink {
class Document;
+class DoubleOrAutoKeyword;
class ExecutionContext;
class VTTCue;
class VTTScanner;
@@ -76,8 +77,8 @@ public:
bool snapToLines() const { return m_snapToLines; }
void setSnapToLines(bool);
- double line() const { return m_linePosition; }
- void setLine(double, ExceptionState&);
+ void line(DoubleOrAutoKeyword&) const;
+ void setLine(const DoubleOrAutoKeyword&, ExceptionState&);
double position() const { return m_textPosition; }
void setPosition(double, ExceptionState&);
@@ -156,6 +157,7 @@ private:
void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root);
FloatPoint getPositionCoordinates() const;
+ bool lineIsAuto() const;
void calculateDisplayParameters();
« no previous file with comments | « LayoutTests/media/track/vtt-cue-exceptions-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