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

Issue 2371673002: [CSS Typed OM] Implement support for CSSValue -> CSSCalcLength (Closed)

Created:
4 years, 2 months ago by meade_UTC10
Modified:
3 years, 11 months ago
Reviewers:
sashab, rjwright
CC:
alancutter (OOO until 2018), darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement support for CSSValue -> CSSCalcLength The CSSValue must be a CSSPrimitiveValue containing a CSSCalcValue. For example: testElement.style.width = "calc(4 * (5em - 2px))"; testElmenet.styleMap.get('width'); // Returns CSSCalcLength({px: -8, em: 20}) Also removes redundant test typedcssom/inlinestyle/left-top-right-bottom.html (superceded by typedcssom/inlinestyle/properties/bottom.html; will add the others later) BUG=545318 Review-Url: https://codereview.chromium.org/2371673002 Cr-Commit-Position: refs/heads/master@{#443133} Committed: https://chromium.googlesource.com/chromium/src/+/857445ffbc21f9cac8a018128a3a92574fe3d784

Patch Set 1 #

Patch Set 2 : Update test #

Patch Set 3 : Rename CalcDictionary to UnitData, and make an inner class of CSSCalcLength. Use std::unique_ptr to… #

Patch Set 4 : Move fromCSSValue static methods down into the CSSLength subclasses #

Patch Set 5 : reparent branch #

Patch Set 6 : Rebase #

Patch Set 7 : Update ordering after merge #

Patch Set 8 : The big clang format #

Patch Set 9 : sync to head #

Total comments: 4

Patch Set 10 : Sync to head #

Patch Set 11 : Change to NOTREACHED #

Patch Set 12 : Migrate inlinestyle/calcLength.html and inlinestyle/left-top-bottom.html to the property-suite tests #

Patch Set 13 : Merge branch 'update-transform-tests' into lengths #

Patch Set 14 : Tidy up asserts #

Patch Set 15 : Fix test expectation #

Total comments: 4

Patch Set 16 : Add a todo #

Patch Set 17 : Remove unneccessary expectation file \o/ #

Patch Set 18 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -241 lines) Patch
M third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -161 lines 0 comments Download
D third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/bottom.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/bottom-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -33 lines 0 comments Download
D third_party/WebKit/LayoutTests/typedcssom/inlinestyle/width-height-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/CSSCalcLength.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +61 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/cssom/CSSLengthValue.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (44 generated)
meade_UTC10
I haven't updated this or rebased it yet, but PTAL?
4 years, 2 months ago (2016-10-10 03:26:55 UTC) #6
Timothy Loh
(cc-ing alancutter, who is the maintainer of calc)
4 years, 2 months ago (2016-10-10 04:23:50 UTC) #7
alancutter (OOO until 2018)
https://codereview.chromium.org/2371673002/diff/160001/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp File third_party/WebKit/Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/2371673002/diff/160001/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp#newcode259 third_party/WebKit/Source/core/css/CSSCalculationValue.cpp:259: CalcOperator operatorType() const { return CalcAdd; } Can these ...
4 years, 2 months ago (2016-10-13 22:19:05 UTC) #13
meade_UTC10
Renee: PTAL? https://codereview.chromium.org/2371673002/diff/160001/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp File third_party/WebKit/Source/core/css/CSSCalculationValue.cpp (right): https://codereview.chromium.org/2371673002/diff/160001/third_party/WebKit/Source/core/css/CSSCalculationValue.cpp#newcode259 third_party/WebKit/Source/core/css/CSSCalculationValue.cpp:259: CalcOperator operatorType() const { return CalcAdd; } ...
4 years, 1 month ago (2016-11-16 19:28:21 UTC) #15
meade_UTC10
Renee: Friendly ping?
4 years ago (2016-11-28 04:53:48 UTC) #16
rjwright
On 2016/11/28 04:53:48, Eddy (OOO until 19 Dec) wrote: > Renee: Friendly ping? LGTM :)
4 years ago (2016-12-15 05:19:35 UTC) #18
rjwright
4 years ago (2016-12-16 02:05:08 UTC) #19
meade_UTC10
+Sasha for OWNERS. PTAL, thank you!
4 years ago (2016-12-21 04:09:32 UTC) #37
sashab
It feels weird having duplicate implementations for all this stuff in both CSSValue and StyleValue. ...
4 years ago (2016-12-21 04:15:35 UTC) #40
meade_UTC10
On 2016/12/21 04:15:35, sashab wrote: > It feels weird having duplicate implementations for all this ...
4 years ago (2016-12-21 04:46:59 UTC) #41
meade_UTC10
https://codereview.chromium.org/2371673002/diff/280001/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html File third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html (left): https://codereview.chromium.org/2371673002/diff/280001/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html#oldcode1 third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html:1: <!DOCTYPE html> On 2016/12/21 04:15:35, sashab wrote: > Why ...
4 years ago (2016-12-21 04:47:09 UTC) #42
sashab
LGTM I'd like to see class comments on the StyleValue subclasses, maybe you can add ...
4 years ago (2016-12-21 23:30:21 UTC) #45
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/2371673002/320001
3 years, 11 months ago (2017-01-10 03:12:19 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/360638)
3 years, 11 months ago (2017-01-10 06:24:33 UTC) #54
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/2371673002/340001
3 years, 11 months ago (2017-01-12 00:48:29 UTC) #57
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 02:59:25 UTC) #60
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/857445ffbc21f9cac8a018128a3a...

Powered by Google App Engine
This is Rietveld 408576698