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

Issue 2097383002: Added support of calc() for SVGLength (Closed)

Created:
4 years, 5 months ago by Shanmuga Pandi
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-css, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added support of calc() for SVGLength Added Support of calc() for SVGLength and with supporting all combination of length, number and percentage. BUG=558304 Committed: https://crrev.com/e52ba8d44cfb51a514ef337c0d06a3e28d4d288d Cr-Commit-Position: refs/heads/master@{#406502}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Fixed animation issue and added more TCs #

Patch Set 3 : nits #

Total comments: 28

Patch Set 4 : Align with review comments #

Total comments: 1

Patch Set 5 : nits #

Total comments: 2

Patch Set 6 : nits #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -108 lines) Patch
A third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-calc-interpolation.html View 1 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/calc-expression-with-zoom.html View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/calc-expression-with-zoom-expected.html View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp View 1 2 3 5 chunks +12 lines, -91 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCalculationValue.cpp View 1 2 3 5 chunks +22 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp View 4 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLength.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLength.cpp View 1 2 3 4 5 6 4 chunks +26 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthContext.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthContext.cpp View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthList.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp View 1 2 3 4 5 6 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (7 generated)
Shanmuga Pandi
PTAL!!! Thanks :)
4 years, 5 months ago (2016-06-27 13:27:30 UTC) #3
rwlbuis
https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h File third_party/WebKit/Source/core/css/CSSCalculationValue.h (right): https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h#newcode63 third_party/WebKit/Source/core/css/CSSCalculationValue.h:63: CalcLengthNumber, Are you sure you need this one? The ...
4 years, 5 months ago (2016-06-27 18:00:01 UTC) #4
Shanmuga Pandi
https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h File third_party/WebKit/Source/core/css/CSSCalculationValue.h (right): https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h#newcode63 third_party/WebKit/Source/core/css/CSSCalculationValue.h:63: CalcLengthNumber, On 2016/06/27 18:00:01, rwlbuis wrote: > Are you ...
4 years, 5 months ago (2016-06-28 05:15:01 UTC) #5
Shanmuga Pandi
On 2016/06/28 05:15:01, Shanmuga Pandi wrote: > https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h > File third_party/WebKit/Source/core/css/CSSCalculationValue.h (right): > > https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h#newcode63 ...
4 years, 5 months ago (2016-06-28 11:36:48 UTC) #6
Shanmuga Pandi
On 2016/06/28 11:36:48, Shanmuga Pandi wrote: > On 2016/06/28 05:15:01, Shanmuga Pandi wrote: > > ...
4 years, 5 months ago (2016-06-28 11:43:15 UTC) #7
rwlbuis
On 2016/06/28 11:43:15, Shanmuga Pandi wrote: > https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/Source/core/css/CSSCalculationValue.h#newcode63 > > > third_party/WebKit/Source/core/css/CSSCalculationValue.h:63: > CalcLengthNumber, > ...
4 years, 5 months ago (2016-06-28 20:42:15 UTC) #8
Shanmuga Pandi
On 2016/06/28 20:42:15, rwlbuis wrote: > On 2016/06/28 11:43:15, Shanmuga Pandi wrote: > > > ...
4 years, 5 months ago (2016-06-29 06:06:16 UTC) #10
fs
SVGLengthList will also need some work, since it uses SVGLength to do parsing and currently ...
4 years, 5 months ago (2016-06-29 09:28:17 UTC) #11
Timothy Loh
Did someone remove the automatically cc-ed lists? A patch like this should have at least ...
4 years, 5 months ago (2016-06-30 06:50:13 UTC) #12
Shanmuga Pandi
On 2016/06/29 09:28:17, fs wrote: > SVGLengthList will also need some work, since it uses ...
4 years, 5 months ago (2016-06-30 12:22:44 UTC) #13
fs
On 2016/06/30 at 12:22:44, shanmuga.m wrote: > On 2016/06/29 09:28:17, fs wrote: > > SVGLengthList ...
4 years, 5 months ago (2016-06-30 12:44:24 UTC) #14
Shanmuga Pandi
> > Probably also need to audit the uses of SVGLength::typeWithCalcResolved() (and > maybe the ...
4 years, 5 months ago (2016-07-04 09:01:15 UTC) #15
fs
On 2016/07/04 at 09:01:15, shanmuga.m wrote: > > > > Probably also need to audit ...
4 years, 5 months ago (2016-07-04 09:11:03 UTC) #16
fs
On 2016/07/04 at 09:11:03, fs wrote: > On 2016/07/04 at 09:01:15, shanmuga.m wrote: > > ...
4 years, 5 months ago (2016-07-04 09:15:38 UTC) #17
alancutter (OOO until 2018)
Are user units in SVG lengths always equivalent to pixels or can they be scaled ...
4 years, 5 months ago (2016-07-05 05:19:53 UTC) #18
Shanmuga Pandi
On 2016/07/05 05:19:53, alancutter wrote: > Are user units in SVG lengths always equivalent to ...
4 years, 5 months ago (2016-07-05 06:21:19 UTC) #19
Shanmuga Pandi
On 2016/07/04 09:15:38, fs wrote: > On 2016/07/04 at 09:11:03, fs wrote: > > On ...
4 years, 5 months ago (2016-07-05 13:58:48 UTC) #20
fs
On 2016/07/05 at 13:58:48, shanmuga.m wrote: > On 2016/07/04 09:15:38, fs wrote: > > On ...
4 years, 5 months ago (2016-07-05 14:27:34 UTC) #21
alancutter (OOO until 2018)
The suggested animation code seems reasonable though it would be easier to verify as a ...
4 years, 5 months ago (2016-07-06 07:45:46 UTC) #22
Shanmuga Pandi
Please have a look !! Thanks https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html File third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html (right): https://codereview.chromium.org/2097383002/diff/1/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html#newcode8 third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html:8: var rectElement = ...
4 years, 5 months ago (2016-07-15 12:18:22 UTC) #23
fs
https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html File third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html (right): https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html#newcode18 third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html:18: { Move to previous line https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html#newcode64 third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html:64: marker.setAttribute('width', expression); ...
4 years, 5 months ago (2016-07-16 21:13:03 UTC) #24
Shanmuga Pandi
PTAL!! https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html File third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html (right): https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html#newcode18 third_party/WebKit/LayoutTests/svg/dom/SVGLength-calc-in-attr.html:18: { On 2016/07/16 21:13:02, fs (ooo to July ...
4 years, 5 months ago (2016-07-18 13:35:33 UTC) #25
fs
LGTM w/ a minor nit. Let's wait for alancutter to chime in again though. https://codereview.chromium.org/2097383002/diff/40001/third_party/WebKit/Source/core/animation/SVGLengthInterpolationType.cpp ...
4 years, 5 months ago (2016-07-18 13:56:49 UTC) #26
Shanmuga Pandi
https://codereview.chromium.org/2097383002/diff/80001/third_party/WebKit/Source/core/svg/SVGLengthContext.h File third_party/WebKit/Source/core/svg/SVGLengthContext.h (right): https://codereview.chromium.org/2097383002/diff/80001/third_party/WebKit/Source/core/svg/SVGLengthContext.h#newcode80 third_party/WebKit/Source/core/svg/SVGLengthContext.h:80: float resolveValue(const CSSPrimitiveValue*, SVGLengthMode = SVGLengthMode::Other) const; On 2016/07/18 ...
4 years, 5 months ago (2016-07-19 05:33:55 UTC) #27
alancutter (OOO until 2018)
lgtm. I would like to see calc type querying get a refactor, I'm not too ...
4 years, 5 months ago (2016-07-20 03:19:55 UTC) #28
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/2097383002/120001
4 years, 5 months ago (2016-07-20 03:55:37 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-20 05:13:01 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 05:13:07 UTC) #34
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 05:15:04 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e52ba8d44cfb51a514ef337c0d06a3e28d4d288d
Cr-Commit-Position: refs/heads/master@{#406502}

Powered by Google App Engine
This is Rietveld 408576698