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

Issue 2256593002: CSS: <position> parser consumes only potentially valid tokens (Closed)

Created:
4 years, 4 months ago by Eric Willigers
Modified:
4 years, 4 months ago
Reviewers:
Timothy Loh, shans
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSS: <position> parser consumes only potentially valid tokens When parsing <position>, consumePosition() always attempted to consume four values, even when it was not possible for the next value to legally appear in the current <position>. For example, if the first value is a <percentage> or <length>, the second value (if present) may only be top | center | bottom | <percentage> | <length> and no third or fourth values are possible. If the second value is center, no third or fourth values are possible. left | right may never be followed by left | right. BUG=638055 Committed: https://crrev.com/4c25391a90d84a475e3f4084bfa80cbcb18dc2cb Cr-Commit-Position: refs/heads/master@{#414006}

Patch Set 1 #

Patch Set 2 : retire TODO #

Total comments: 8

Patch Set 3 : references #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/transforms/perspective-origin-parsing.html View 3 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 2 4 chunks +64 lines, -35 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
Eric Willigers
This was motivated by the offset shorthand of the latest Editor's Draft of CSS Motion ...
4 years, 4 months ago (2016-08-17 05:55:29 UTC) #4
Timothy Loh
On 2016/08/17 05:55:29, Eric Willigers wrote: > This was motivated by the offset shorthand of ...
4 years, 4 months ago (2016-08-17 06:03:03 UTC) #5
Eric Willigers
On 2016/08/17 06:03:03, Timothy Loh wrote: > On 2016/08/17 05:55:29, Eric Willigers wrote: > > ...
4 years, 4 months ago (2016-08-22 04:11:22 UTC) #12
Timothy Loh
lgtm https://codereview.chromium.org/2256593002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp (left): https://codereview.chromium.org/2256593002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp#oldcode567 third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp:567: // shorthand works around it, but we should ...
4 years, 4 months ago (2016-08-23 03:51:37 UTC) #13
Eric Willigers
https://codereview.chromium.org/2256593002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp (left): https://codereview.chromium.org/2256593002/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp#oldcode567 third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp:567: // shorthand works around it, but we should just ...
4 years, 4 months ago (2016-08-24 02:03:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2256593002/40001
4 years, 4 months ago (2016-08-24 03:37:14 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-24 07:37:03 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 07:38:08 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4c25391a90d84a475e3f4084bfa80cbcb18dc2cb
Cr-Commit-Position: refs/heads/master@{#414006}

Powered by Google App Engine
This is Rietveld 408576698