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

Issue 102403002: Make VTTParser::collectDigitsToInt non-copying (Closed)

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

Description

Make VTTParser::collectDigitsToInt non-copying Modify VTTParser::collectDigits to simply count the number of digits and advance the position. Rename it to scanDigits and make it local to the compilation unit. Convert users of collectDigits to use scanDigits instead. For collectDigitsToInt this means that there's no longer a need to copy the digits into a temporary String. Similarly for parseFloatPercentageValue. Also fixes a minor issue in parseFloatPercentageValue where the endpoints (0 and 100) were excluded from the range of valid values rather than included. BUG=305317 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163160

Patch Set 1 #

Total comments: 1

Patch Set 2 : Drop else-branch favouring initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -21 lines) Patch
Source/core/html/track/vtt/VTTParser.h View 1 chunk +0 lines, -1 line 0 comments Download
Source/core/html/track/vtt/VTTParser.cpp View 1 2 chunks +30 lines, -20 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fs
7 years ago (2013-12-04 07:56:35 UTC) #1
Mike West
This is better, thanks for poking at it. One note, otherwise LGTM. https://codereview.chromium.org/102403002/diff/1/Source/core/html/track/vtt/VTTParser.cpp File Source/core/html/track/vtt/VTTParser.cpp ...
7 years ago (2013-12-04 08:17:42 UTC) #2
fs
On 2013/12/04 08:17:42, Mike West wrote: > This is better, thanks for poking at it. ...
7 years ago (2013-12-04 08:51:23 UTC) #3
fs
7 years ago (2013-12-04 08:51:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/102403002/20001
7 years ago (2013-12-04 08:55:46 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-04 10:15:01 UTC) #6
Message was sent while issue was closed.
Change committed as 163160

Powered by Google App Engine
This is Rietveld 408576698