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

Issue 139343006: Rework float value/percentage scanning for VTTRegion (Closed)

Created:
6 years, 11 months ago by fs
Modified:
6 years, 11 months ago
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Rework float value/percentage scanning for VTTRegion Next step in the transition to VTTScanner for VTTRegion parsing. Add a new method scanFloat(...) to VTTScanner (basing the implementation on VTTParser::parseFloatPercentageValue). Use this new method scanFloat in VTTParser::parseFloatPercentageValue, and change (remove) the end-of-input/value requirement (hoisting it into the callers). Let the above propagate into VTTParser::parseFloatPercentageValuePair, and make it use VTTScanner internally. BUG=305317 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165442

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -36 lines) Patch
M Source/core/html/track/vtt/VTTParser.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/vtt/VTTParser.cpp View 1 chunk +14 lines, -34 lines 0 comments Download
M Source/core/html/track/vtt/VTTRegion.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/track/vtt/VTTScanner.h View 1 chunk +3 lines, -0 lines 2 comments Download
M Source/core/html/track/vtt/VTTScanner.cpp View 1 chunk +29 lines, -0 lines 2 comments Download
M Source/core/html/track/vtt/VTTScannerTest.cpp View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
fs
6 years, 11 months ago (2014-01-20 13:21:12 UTC) #1
jochen (gone - plz use gerrit)
and... I defer to Mike! :)
6 years, 11 months ago (2014-01-20 19:22:26 UTC) #2
Mike West
Two questions, looks fine otherwise. https://codereview.chromium.org/139343006/diff/1/Source/core/html/track/vtt/VTTScanner.cpp File Source/core/html/track/vtt/VTTScanner.cpp (right): https://codereview.chromium.org/139343006/diff/1/Source/core/html/track/vtt/VTTScanner.cpp#newcode156 Source/core/html/track/vtt/VTTScanner.cpp:156: return false; Here you ...
6 years, 11 months ago (2014-01-21 07:59:23 UTC) #3
fs
https://codereview.chromium.org/139343006/diff/1/Source/core/html/track/vtt/VTTScanner.cpp File Source/core/html/track/vtt/VTTScanner.cpp (right): https://codereview.chromium.org/139343006/diff/1/Source/core/html/track/vtt/VTTScanner.cpp#newcode156 Source/core/html/track/vtt/VTTScanner.cpp:156: return false; On 2014/01/21 07:59:24, Mike West wrote: > ...
6 years, 11 months ago (2014-01-21 08:19:57 UTC) #4
Mike West
Sold. LGTM, thanks. On 2014/01/21 08:19:57, fs wrote: > https://codereview.chromium.org/139343006/diff/1/Source/core/html/track/vtt/VTTScanner.cpp > File Source/core/html/track/vtt/VTTScanner.cpp (right): > ...
6 years, 11 months ago (2014-01-21 08:23:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/139343006/1
6 years, 11 months ago (2014-01-21 08:29:29 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-21 08:40:19 UTC) #7
Message was sent while issue was closed.
Change committed as 165442

Powered by Google App Engine
This is Rietveld 408576698