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

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

Issue 864043002: WebVTT: Support fractional percentage values for position/line/size (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar tests. 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 | « Source/core/html/track/vtt/VTTCue.cpp ('k') | Source/core/html/track/vtt/VTTScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTScanner.h
diff --git a/Source/core/html/track/vtt/VTTScanner.h b/Source/core/html/track/vtt/VTTScanner.h
index 7f193149af6ed131900b98e4ab5f5d7728401955..b036dcac381c567e771c881dabbb493d0b02a01c 100644
--- a/Source/core/html/track/vtt/VTTScanner.h
+++ b/Source/core/html/track/vtt/VTTScanner.h
@@ -129,6 +129,9 @@ public:
// Scan a floating point value on one of the forms: \d+\.? \d+\.\d+ \.\d+
bool scanFloat(float& number);
+ // Scan a floating point value (per scanFloat) followed by a '%'.
+ bool scanPercentage(float& percentage);
+
protected:
Position position() const { return m_data.characters8; }
Position end() const { return m_end.characters8; }
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.cpp ('k') | Source/core/html/track/vtt/VTTScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698