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

Issue 345903005: calc expressions should support time, angle and frequency values. (Closed)

Created:
6 years, 5 months ago by reni
Modified:
6 years, 4 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

calc expressions should support time, angle and frequency values. According to the CSS3 standard calc() expressions can contain time, angle and frequency values. (http://www.w3.org/TR/css3-values/#calc). The patch implements this feature. The patch is partially based on http://trac.webkit.org/changeset/168685 and http://trac.webkit.org/changeset/170544 (Patch by Martin Hodovan, reviewers were: Darin Adler and Simon Fraser) R=mikelawther@chromium.org,alancutter@chromium.org BUG=390566 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179101

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated patch #

Total comments: 5

Patch Set 3 : Addressing Mike's review #

Patch Set 4 : Fix build warrning. #

Total comments: 14

Patch Set 5 : Updated patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -175 lines) Patch
M LayoutTests/css3/calc/calc-errors.html View 1 2 3 4 1 chunk +156 lines, -90 lines 0 comments Download
M LayoutTests/css3/calc/calc-errors-expected.txt View 1 2 3 4 1 chunk +127 lines, -55 lines 0 comments Download
A LayoutTests/css3/calc/calc-with-time-angle-and-frequency-values.html View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/css3/calc/calc-with-time-angle-and-frequency-values-expected.txt View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/css/CSSCalculationValue.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 6 chunks +31 lines, -10 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 2 3 4 1 chunk +1 line, -15 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 4 chunks +21 lines, -2 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/resolver/CSSToStyleMap.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
reni
6 years, 5 months ago (2014-07-01 17:03:23 UTC) #1
alancutter (OOO until 2018)
https://codereview.chromium.org/345903005/diff/1/LayoutTests/css3/calc/calc-errors.html File LayoutTests/css3/calc/calc-errors.html (left): https://codereview.chromium.org/345903005/diff/1/LayoutTests/css3/calc/calc-errors.html#oldcode23 LayoutTests/css3/calc/calc-errors.html:23: <div style="width: 100px; width: calc(5dpi + 5dpi);">dpi + dpi</div> ...
6 years, 5 months ago (2014-07-02 05:56:11 UTC) #2
Timothy Loh
https://codereview.chromium.org/345903005/diff/1/Source/core/css/CSSPrimitiveValue.h File Source/core/css/CSSPrimitiveValue.h (right): https://codereview.chromium.org/345903005/diff/1/Source/core/css/CSSPrimitiveValue.h#newcode289 Source/core/css/CSSPrimitiveValue.h:289: return getValue<T>(); On 2014/07/02 05:56:11, alancutter wrote: > This ...
6 years, 5 months ago (2014-07-02 07:06:13 UTC) #3
alancutter (OOO until 2018)
I don't think the conversion between units happens for calcs with single values. Better add ...
6 years, 5 months ago (2014-07-02 07:41:10 UTC) #4
reni
@timloh, @alancutter: thanks for the reviews! I tried to address all the requests however while ...
6 years, 5 months ago (2014-07-03 17:29:32 UTC) #5
reni
Note: Windows build fail is unrelated to this patch.
6 years, 5 months ago (2014-07-03 17:30:02 UTC) #6
Mike Lawther (Google)
https://codereview.chromium.org/345903005/diff/20001/LayoutTests/css3/calc/calc-errors.html File LayoutTests/css3/calc/calc-errors.html (left): https://codereview.chromium.org/345903005/diff/20001/LayoutTests/css3/calc/calc-errors.html#oldcode29 LayoutTests/css3/calc/calc-errors.html:29: <div style="width: 100px; width: calc(200);">non length</div> It looks like ...
6 years, 5 months ago (2014-07-04 04:36:41 UTC) #7
reni
@Mike: thanks again! Missing expressions and ASSERT_NOT_REACHED are added.
6 years, 5 months ago (2014-07-04 11:04:36 UTC) #8
reni
On 2014/07/04 11:04:36, reni wrote: > @Mike: thanks again! Missing expressions and ASSERT_NOT_REACHED are added. ...
6 years, 5 months ago (2014-07-21 08:58:18 UTC) #9
alancutter (OOO until 2018)
Thanks for the update. https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html File LayoutTests/css3/calc/calc-errors.html (right): https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html#newcode5 LayoutTests/css3/calc/calc-errors.html:5: width: 100px; The inline 'width: ...
6 years, 5 months ago (2014-07-21 14:03:47 UTC) #10
reni
https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html File LayoutTests/css3/calc/calc-errors.html (right): https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html#newcode162 LayoutTests/css3/calc/calc-errors.html:162: checkWrongCombinations(calcsForTime, "animation-delay", "100s"); On 2014/07/21 14:03:46, alancutter wrote: > ...
6 years, 5 months ago (2014-07-21 20:21:33 UTC) #11
alancutter (OOO until 2018)
https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html File LayoutTests/css3/calc/calc-errors.html (right): https://codereview.chromium.org/345903005/diff/60001/LayoutTests/css3/calc/calc-errors.html#newcode162 LayoutTests/css3/calc/calc-errors.html:162: checkWrongCombinations(calcsForTime, "animation-delay", "100s"); On 2014/07/21 20:21:33, reni wrote: > ...
6 years, 5 months ago (2014-07-22 00:16:36 UTC) #12
reni
https://codereview.chromium.org/345903005/diff/60001/Source/core/css/CSSCalculationValue.cpp File Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/345903005/diff/60001/Source/core/css/CSSCalculationValue.cpp#newcode655 Source/core/css/CSSCalculationValue.cpp:655: result->value = CSSCalcPrimitiveValue::create(toCSSPrimitiveValue(value.get()), parserValue->isInt); On 2014/07/21 14:03:47, alancutter wrote: ...
6 years, 5 months ago (2014-07-25 08:44:43 UTC) #13
alancutter (OOO until 2018)
lgtm
6 years, 4 months ago (2014-07-28 14:31:32 UTC) #14
reni
The CQ bit was checked by rhodovan.u-szeged@partner.samsung.com
6 years, 4 months ago (2014-07-28 14:46:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rhodovan.u-szeged@partner.samsung.com/345903005/80001
6 years, 4 months ago (2014-07-28 14:46:56 UTC) #16
reni
On 2014/07/28 14:31:32, alancutter wrote: > lgtm Thank you! However it seems that I need ...
6 years, 4 months ago (2014-07-28 15:04:53 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-07-28 15:36:15 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-28 15:38:41 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/11251)
6 years, 4 months ago (2014-07-28 15:38:42 UTC) #20
Timothy Loh
On 2014/07/28 15:04:53, reni wrote: > On 2014/07/28 14:31:32, alancutter wrote: > > lgtm > ...
6 years, 4 months ago (2014-07-29 02:45:19 UTC) #21
reni
The CQ bit was checked by rhodovan.u-szeged@partner.samsung.com
6 years, 4 months ago (2014-07-29 06:21:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rhodovan.u-szeged@partner.samsung.com/345903005/80001
6 years, 4 months ago (2014-07-29 06:22:06 UTC) #23
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 07:26:45 UTC) #24
Message was sent while issue was closed.
Change committed as 179101

Powered by Google App Engine
This is Rietveld 408576698