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

Issue 1588453006: Use a local variable as a character cursor in genericParseNumber (Closed)

Created:
4 years, 11 months ago by fs
Modified:
4 years, 11 months ago
Reviewers:
pdr.
CC:
blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a local variable as a character cursor in genericParseNumber Don't move the 'out' variable |cursor| until a valid number has been parsed (disregarding the leading whitespace). This will allow generating better error messages in some cases (the cursor will not "stop" randomly within the number upon encountering overflows etc.). It also enables "re-parsing" although currently no call-sites require that. Code size virtually unaffected (-7 for LChar, +2 for UChar.) BUG=231612 Committed: https://crrev.com/f16520b843b6214481015adf4a8372d2e47f3dea Cr-Commit-Position: refs/heads/master@{#369391}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M third_party/WebKit/Source/core/svg/SVGParserUtilities.cpp View 1 2 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
fs
CQ not smiling on me today... This is on top of https://codereview.chromium.org/1582813003/, but I'm sure ...
4 years, 11 months ago (2016-01-13 23:37:23 UTC) #2
pdr.
On 2016/01/13 at 23:37:23, fs wrote: > CQ not smiling on me today... This is ...
4 years, 11 months ago (2016-01-13 23:44:10 UTC) #3
pdr.
On 2016/01/13 at 23:44:10, pdr wrote: > On 2016/01/13 at 23:37:23, fs wrote: > > ...
4 years, 11 months ago (2016-01-13 23:47:39 UTC) #4
fs
On 2016/01/13 at 23:47:39, pdr wrote: > On 2016/01/13 at 23:44:10, pdr wrote: > > ...
4 years, 11 months ago (2016-01-14 09:27:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1588453006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1588453006/40001
4 years, 11 months ago (2016-01-14 11:21:39 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-14 11:25:36 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 11:27:13 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f16520b843b6214481015adf4a8372d2e47f3dea
Cr-Commit-Position: refs/heads/master@{#369391}

Powered by Google App Engine
This is Rietveld 408576698