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

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

Issue 851933003: WebVTT: Support 'auto' text position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test nits. 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
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 616783c69d507358cb555763fbe3fc36e4fb5e1e..01846418180b27d1b4858b0ae6cde6ef63692fd5 100644
--- a/Source/core/html/track/vtt/VTTCue.h
+++ b/Source/core/html/track/vtt/VTTCue.h
@@ -80,8 +80,8 @@ public:
void line(DoubleOrAutoKeyword&) const;
void setLine(const DoubleOrAutoKeyword&, ExceptionState&);
- double position() const { return m_textPosition; }
- void setPosition(double, ExceptionState&);
+ void position(DoubleOrAutoKeyword&) const;
+ void setPosition(const DoubleOrAutoKeyword&, ExceptionState&);
double size() const { return m_cueSize; }
void setSize(double, ExceptionState&);
@@ -160,6 +160,8 @@ private:
bool lineIsAuto() const;
void calculateDisplayParameters();
+ float calculateComputedTextPosition() const;
+ bool textPositionIsAuto() const;
enum CueSetting {
None,
« no previous file with comments | « LayoutTests/media/track/track-webvtt-tc021-valign-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