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

Issue 662343002: CSS Tokenizer: Fix edge cases in number parsing (Closed)

Created:
6 years, 2 months ago by Timothy Loh
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

CSS Tokenizer: Fix edge cases in number parsing This patch fixes a couple of small issues in the css-syntax number parsing routine: 1) We shouldn't consume a "." if the next character isn't a digit 2) If any exponent argument is present we should use a 'number' type (in the code we just check if we consumed anything after the integer portion) http://dev.w3.org/csswg/css-syntax/#consume-number BUG=424988 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183979

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -16 lines) Patch
M Source/core/css/parser/CSSTokenizer.cpp View 2 chunks +10 lines, -13 lines 5 comments Download
M Source/core/css/parser/CSSTokenizerTest.cpp View 2 chunks +8 lines, -3 lines 2 comments Download

Messages

Total messages: 9 (3 generated)
Timothy Loh
6 years, 2 months ago (2014-10-20 03:27:13 UTC) #3
Yoav Weiss
LGTM I think I understand the change, but added a couple of questions just in ...
6 years, 2 months ago (2014-10-20 07:06:46 UTC) #4
Timothy Loh
https://codereview.chromium.org/662343002/diff/1/Source/core/css/parser/CSSTokenizer.cpp File Source/core/css/parser/CSSTokenizer.cpp (left): https://codereview.chromium.org/662343002/diff/1/Source/core/css/parser/CSSTokenizer.cpp#oldcode289 Source/core/css/parser/CSSTokenizer.cpp:289: } On 2014/10/20 07:06:45, Yoav Weiss wrote: > So ...
6 years, 2 months ago (2014-10-20 07:18:24 UTC) #5
Yoav Weiss
https://codereview.chromium.org/662343002/diff/1/Source/core/css/parser/CSSTokenizer.cpp File Source/core/css/parser/CSSTokenizer.cpp (left): https://codereview.chromium.org/662343002/diff/1/Source/core/css/parser/CSSTokenizer.cpp#oldcode289 Source/core/css/parser/CSSTokenizer.cpp:289: } On 2014/10/20 07:18:24, Timothy Loh wrote: > On ...
6 years, 2 months ago (2014-10-20 07:26:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/662343002/1
6 years, 2 months ago (2014-10-20 13:00:50 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 13:04:19 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 183979

Powered by Google App Engine
This is Rietveld 408576698