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

Issue 1239983004: Make CSSCalcValue work with CSSParserTokenRange (Closed)

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

Description

Make CSSCalcValue work with CSSParserTokenRange Make CSSCalcValue work with CSSParserTokenRange by using consumeBlock on the calc() tokens and storing the resulting CSSParserTokenRange in the args parameter, and then passing these args to CSSCalcValue::create. The CSSCalcExpressionNodeParser is adjusted to operate on CSSParserTokens. BUG=499780 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199741

Patch Set 1 #

Patch Set 2 : Fix webkit unit test #

Patch Set 3 : Fix autoclose problem #

Total comments: 17

Patch Set 4 : Address review comments #

Patch Set 5 : Remove calcDepth #

Patch Set 6 : Fix calcFunction deletion #

Total comments: 8

Patch Set 7 : Address review comments and add subtests #

Total comments: 4

Patch Set 8 : Address static eof token problem #

Patch Set 9 : Add more subtests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -110 lines) Patch
M LayoutTests/css3/calc/calc-errors.html View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M LayoutTests/css3/calc/calc-errors-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M Source/core/css/CSSCalculationValue.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 5 6 7 5 chunks +46 lines, -54 lines 0 comments Download
M Source/core/css/parser/CSSParserValues.h View 1 2 3 4 5 6 7 6 chunks +12 lines, -11 lines 0 comments Download
M Source/core/css/parser/CSSParserValues.cpp View 1 2 3 4 5 6 7 8 5 chunks +24 lines, -30 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
rwlbuis
@timloh, PTAL. I don't think this is ready for a real review yet but I ...
5 years, 5 months ago (2015-07-20 02:29:13 UTC) #3
Timothy Loh
Probably it's easier if we just use consumeBlock and whatever and have calc parsing operate ...
5 years, 5 months ago (2015-07-21 07:33:18 UTC) #5
alancutter (OOO until 2018)
https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp#newcode642 Source/core/css/CSSCalculationValue.cpp:642: CSSPrimitiveValue::UnitType type = token.unitType(); This line should stay after ...
5 years, 5 months ago (2015-07-21 07:44:26 UTC) #6
rwlbuis
https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp#newcode642 Source/core/css/CSSCalculationValue.cpp:642: CSSPrimitiveValue::UnitType type = token.unitType(); On 2015/07/21 07:44:26, alancutter wrote: ...
5 years, 5 months ago (2015-07-21 21:29:52 UTC) #7
rwlbuis
https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/CSSCalculationValue.cpp#newcode624 Source/core/css/CSSCalculationValue.cpp:624: char operatorValue(CSSParserTokenRange& tokens) On 2015/07/21 07:33:17, Timothy Loh wrote: ...
5 years, 5 months ago (2015-07-22 02:19:06 UTC) #8
rwlbuis
On 2015/07/21 07:33:18, Timothy Loh wrote: > Probably it's easier if we just use consumeBlock ...
5 years, 5 months ago (2015-07-22 02:25:23 UTC) #9
rwlbuis
https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/parser/CSSParserValues.cpp File Source/core/css/parser/CSSParserValues.cpp (right): https://codereview.chromium.org/1239983004/diff/60001/Source/core/css/parser/CSSParserValues.cpp#newcode265 Source/core/css/parser/CSSParserValues.cpp:265: static void destroy(Vector<CSSParserValue, 4>& values) On 2015/07/22 02:19:06, rwlbuis ...
5 years, 5 months ago (2015-07-22 20:53:02 UTC) #10
Timothy Loh
I wrote the below comments last week, I think I didn't finish reviewing but I'll ...
5 years, 4 months ago (2015-07-28 08:17:41 UTC) #11
rwlbuis
On 2015/07/28 08:17:41, Timothy Loh wrote: > I wrote the below comments last week, I ...
5 years, 4 months ago (2015-07-28 22:48:26 UTC) #12
Timothy Loh
https://codereview.chromium.org/1239983004/diff/140001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/1239983004/diff/140001/Source/core/css/CSSCalculationValue.cpp#newcode702 Source/core/css/CSSCalculationValue.cpp:702: tokens.consumeIncludingWhitespace(); tokens.peek() will return a static eof token if ...
5 years, 4 months ago (2015-07-29 03:52:04 UTC) #13
rwlbuis
PTAL, I also added more subtests for the comment+addition+substraction permutations. https://codereview.chromium.org/1239983004/diff/140001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/1239983004/diff/140001/Source/core/css/CSSCalculationValue.cpp#newcode702 ...
5 years, 4 months ago (2015-07-29 21:33:26 UTC) #17
Timothy Loh
lgtm, but land the rem patch first :)
5 years, 4 months ago (2015-07-30 01:10:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239983004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239983004/240001
5 years, 4 months ago (2015-07-30 14:38:58 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:240001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199741
5 years, 4 months ago (2015-07-30 15:41:03 UTC) #21
dmurph
On 2015/07/30 at 15:41:03, commit-bot wrote: > Committed patchset #9 (id:240001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199741 I will ...
5 years, 4 months ago (2015-07-30 16:52:57 UTC) #22
rwlbuis
On 2015/07/30 16:52:57, dmurph wrote: > On 2015/07/30 at 15:41:03, commit-bot wrote: > > Committed ...
5 years, 4 months ago (2015-07-30 17:35:29 UTC) #23
rwlbuis
5 years, 4 months ago (2015-07-30 20:13:46 UTC) #24
Message was sent while issue was closed.
On 2015/07/30 17:35:29, rwlbuis wrote:
> On 2015/07/30 16:52:57, dmurph wrote:
> > On 2015/07/30 at 15:41:03, commit-bot wrote:
> > > Committed patchset #9 (id:240001) as
> > https://src.chromium.org/viewvc/blink?view=rev&revision=199741
> > 
> > I will probably have to revert this as well
> > https://code.google.com/p/chromium/issues/detail?id=515535
> 
> Yes please, these two go together.

OTOH, I think I am close to a fix :) Let's watch
https://codereview.chromium.org/1181023004/ ....

Powered by Google App Engine
This is Rietveld 408576698