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

Issue 104713002: Use the return value to signal success for VTTParser helpers (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

Use the return value to signal success for VTTParser helpers Convert functions on the form: ValueType f(..., bool& success); to the form: bool f(..., ValueType& value); Since the latter form tend to integrate more naturally in a success/failure parsing scheme. Make sure that the output value is not touched unless parsing was successful. Perform some (minor) simplifications due to this change. Also simplify the check for a trailing '%' in parseFloatPercentageValue. BUG=305317 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163248

Patch Set 1 #

Patch Set 2 : Dropped unused constant #

Total comments: 1

Patch Set 3 : Re-add ASSERT in markFutureAndPastNodes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -61 lines) Patch
M Source/core/html/track/vtt/VTTCue.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/html/track/vtt/VTTParser.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/track/vtt/VTTParser.cpp View 1 9 chunks +36 lines, -39 lines 0 comments Download
M Source/core/html/track/vtt/VTTRegion.cpp View 2 chunks +8 lines, -17 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
fs
7 years ago (2013-12-04 16:04:58 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/104713002/diff/20001/Source/core/html/track/vtt/VTTCue.cpp File Source/core/html/track/vtt/VTTCue.cpp (right): https://codereview.chromium.org/104713002/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode679 Source/core/html/track/vtt/VTTCue.cpp:679: VTTParser::collectTimeStamp(timestamp, &position, currentTimestamp); why not ASSERT() around this call?
7 years ago (2013-12-05 09:00:35 UTC) #2
fs
On 2013/12/05 09:00:35, jochen wrote: > https://codereview.chromium.org/104713002/diff/20001/Source/core/html/track/vtt/VTTCue.cpp > File Source/core/html/track/vtt/VTTCue.cpp (right): > > https://codereview.chromium.org/104713002/diff/20001/Source/core/html/track/vtt/VTTCue.cpp#newcode679 > ...
7 years ago (2013-12-05 09:29:14 UTC) #3
jochen (gone - plz use gerrit)
On 2013/12/05 09:29:14, fs wrote: > On 2013/12/05 09:00:35, jochen wrote: > > > https://codereview.chromium.org/104713002/diff/20001/Source/core/html/track/vtt/VTTCue.cpp ...
7 years ago (2013-12-05 09:31:52 UTC) #4
fs
On 2013/12/05 09:31:52, jochen wrote: > On 2013/12/05 09:29:14, fs wrote: > > On 2013/12/05 ...
7 years ago (2013-12-05 09:42:42 UTC) #5
fs
Now w/ ASSERT_UNUSED.
7 years ago (2013-12-05 09:44:32 UTC) #6
jochen (gone - plz use gerrit)
lgtm
7 years ago (2013-12-05 09:50:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/104713002/40001
7 years ago (2013-12-05 09:51:08 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-05 10:51:00 UTC) #9
Message was sent while issue was closed.
Change committed as 163248

Powered by Google App Engine
This is Rietveld 408576698