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

Issue 1158603003: CSS Independent Transform Properties (Closed)

Created:
5 years, 6 months ago by soonm
Modified:
5 years, 6 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-rendering, blink-reviews-style_chromium.org, dglazkov+blink, eae+blinkwatch, Eric Willigers, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rjwright, rwlbuis, shans, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CSS Independent Transform Properties Implementation of CSS Transform Properties 1. Translate 2. Rotate 3. Scale Link to Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/-GfE73tlLX8/hv7Qitys6j8J Link to w3c specifications: http://dev.w3.org/csswg/css-transforms-2/ BUG=496550 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197547

Patch Set 1 #

Total comments: 40

Patch Set 2 : Remove unused functions, update code style and tests #

Patch Set 3 : Correct equality operators and remove dependencies on size() in parser #

Total comments: 19

Patch Set 4 : Fix test and parsing with calc #

Patch Set 5 : Remove animation from CL #

Total comments: 18

Patch Set 6 : Remove animation stuff and clarify naming #

Patch Set 7 : Add combined tests with motion-path and transform #

Total comments: 8

Patch Set 8 : Cleanup #

Total comments: 20

Patch Set 9 : #

Patch Set 10 : Rebase master and explicit applyTransform parameters #

Total comments: 15

Patch Set 11 : #

Patch Set 12 : Rebase master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+915 lines, -44 lines) Patch
M LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M LayoutTests/svg/css/getComputedStyle-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-rotate-and-transform-origin.html View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-rotate-and-transform-origin-expected.html View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-transforms-properties-motion-path.html View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-transforms-properties-motion-path-expected.html View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-transforms-properties-transform.html View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/transforms/combine-transforms-properties-transform-expected.html View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/transforms/rotate.html View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/transforms/rotate-expected.html View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/transforms/rotate-parsing.html View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/transforms/scale.html View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/transforms/scale-expected.html View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/transforms/scale-parsing.html View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/transforms/transform-properties-mixed.html View 1 2 3 4 5 6 7 1 chunk +87 lines, -0 lines 0 comments Download
A LayoutTests/transforms/transform-properties-mixed-expected.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +82 lines, -0 lines 0 comments Download
A LayoutTests/transforms/translate.html View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/transforms/translate-expected.html View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/transforms/translate-parsing.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +47 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 8 2 chunks +50 lines, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +72 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +50 lines, -0 lines 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/compositing/CompositingReasonFinder.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +20 lines, -4 lines 0 comments Download
M Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +29 lines, -13 lines 0 comments Download
M Source/core/style/StyleTransformData.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/style/StyleTransformData.cpp View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
M Source/core/svg/SVGGraphicsElement.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/transforms/RotateTransformOperation.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/transforms/ScaleTransformOperation.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/transforms/TranslateTransformOperation.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 57 (15 generated)
soonm
5 years, 6 months ago (2015-06-05 00:13:42 UTC) #2
Timothy Loh
I just skimmed some files at random. Lot's of stuff applies to all properties but ...
5 years, 6 months ago (2015-06-05 00:56:00 UTC) #4
Eric Willigers
https://codereview.chromium.org/1158603003/diff/1/LayoutTests/transforms/2d/transform-2d-properties.html File LayoutTests/transforms/2d/transform-2d-properties.html (right): https://codereview.chromium.org/1158603003/diff/1/LayoutTests/transforms/2d/transform-2d-properties.html#newcode34 LayoutTests/transforms/2d/transform-2d-properties.html:34: //{ 'transform' : 'inherit', 'result' : 'none' }, // ...
5 years, 6 months ago (2015-06-05 01:58:23 UTC) #5
soonm
https://codereview.chromium.org/1158603003/diff/1/Source/core/animation/css/CSSAnimatableValueFactory.cpp File Source/core/animation/css/CSSAnimatableValueFactory.cpp (right): https://codereview.chromium.org/1158603003/diff/1/Source/core/animation/css/CSSAnimatableValueFactory.cpp#newcode528 Source/core/animation/css/CSSAnimatableValueFactory.cpp:528: TransformOperations op; On 2015/06/05 01:58:22, Eric Willigers wrote: > ...
5 years, 6 months ago (2015-06-10 04:09:33 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158603003/20001
5 years, 6 months ago (2015-06-10 04:13:32 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/47012)
5 years, 6 months ago (2015-06-10 04:17:25 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158603003/40001
5 years, 6 months ago (2015-06-10 04:18:54 UTC) #12
Timothy Loh
https://codereview.chromium.org/1158603003/diff/40001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1158603003/diff/40001/Source/core/css/parser/CSSPropertyParser.cpp#newcode1112 Source/core/css/parser/CSSPropertyParser.cpp:1112: if (!validUnit(value, FLength) && !validUnit(value, FPercent)) validUnit(value, FLength | ...
5 years, 6 months ago (2015-06-10 04:22:29 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/65864)
5 years, 6 months ago (2015-06-10 06:04:57 UTC) #15
Eric Willigers
https://codereview.chromium.org/1158603003/diff/40001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js File LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1158603003/diff/40001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js#newcode472 LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js:472: // The following collide with CSS properties or the ...
5 years, 6 months ago (2015-06-11 02:15:20 UTC) #16
soonm
https://codereview.chromium.org/1158603003/diff/40001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js File LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1158603003/diff/40001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js#newcode472 LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js:472: // The following collide with CSS properties or the ...
5 years, 6 months ago (2015-06-11 23:31:04 UTC) #17
dstockwell
https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/ComputedStyle.cpp File Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/ComputedStyle.cpp#newcode937 Source/core/style/ComputedStyle.cpp:937: if (applyTransformProperty == IncludeTransformProperty) { It's confusing that IncludeTransformProperty ...
5 years, 6 months ago (2015-06-12 00:17:59 UTC) #19
soonm
https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/ComputedStyle.cpp File Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/ComputedStyle.cpp#newcode937 Source/core/style/ComputedStyle.cpp:937: if (applyTransformProperty == IncludeTransformProperty) { On 2015/06/12 00:17:58, dstockwell ...
5 years, 6 months ago (2015-06-12 01:54:13 UTC) #20
Timothy Loh
https://codereview.chromium.org/1158603003/diff/80001/Source/platform/transforms/ScaleTransformOperation.h File Source/platform/transforms/ScaleTransformOperation.h (right): https://codereview.chromium.org/1158603003/diff/80001/Source/platform/transforms/ScaleTransformOperation.h#newcode49 Source/platform/transforms/ScaleTransformOperation.h:49: virtual OperationType type() const override { return m_type; } ...
5 years, 6 months ago (2015-06-12 04:48:35 UTC) #21
Timothy Loh
https://codereview.chromium.org/1158603003/diff/80001/Source/core/css/ComputedStyleCSSValueMapping.cpp File Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/1158603003/diff/80001/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode2643 Source/core/css/ComputedStyleCSSValueMapping.cpp:2643: return cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX); +alancutter Do these get fed back ...
5 years, 6 months ago (2015-06-12 05:38:34 UTC) #23
soonm
https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/StyleTransformData.h File Source/core/style/StyleTransformData.h (right): https://codereview.chromium.org/1158603003/diff/80001/Source/core/style/StyleTransformData.h#newcode49 Source/core/style/StyleTransformData.h:49: void setTranslate(PassRefPtr<TranslateTransformOperation>); On 2015/06/12 00:17:58, dstockwell wrote: > Do ...
5 years, 6 months ago (2015-06-12 06:18:49 UTC) #24
alancutter (OOO until 2018)
https://codereview.chromium.org/1158603003/diff/1/Source/core/style/StyleTransformData.cpp File Source/core/style/StyleTransformData.cpp (left): https://codereview.chromium.org/1158603003/diff/1/Source/core/style/StyleTransformData.cpp#oldcode24 Source/core/style/StyleTransformData.cpp:24: These two headers should always be separated from the ...
5 years, 6 months ago (2015-06-12 07:56:32 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158603003/100001
5 years, 6 months ago (2015-06-15 01:51:01 UTC) #27
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 6 months ago (2015-06-15 01:51:07 UTC) #29
soonm
https://codereview.chromium.org/1158603003/diff/1/Source/core/style/StyleTransformData.cpp File Source/core/style/StyleTransformData.cpp (left): https://codereview.chromium.org/1158603003/diff/1/Source/core/style/StyleTransformData.cpp#oldcode24 Source/core/style/StyleTransformData.cpp:24: On 2015/06/12 07:56:31, alancutter wrote: > These two headers ...
5 years, 6 months ago (2015-06-15 05:07:17 UTC) #30
Timothy Loh
random comments https://codereview.chromium.org/1158603003/diff/120001/Source/core/css/resolver/StyleBuilderConverter.cpp File Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/1158603003/diff/120001/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode977 Source/core/css/resolver/StyleBuilderConverter.cpp:977: if (list->length() >= 2 && list->length() <= ...
5 years, 6 months ago (2015-06-15 06:17:34 UTC) #31
Eric Willigers
lgtm after Tim's nits are addressed.
5 years, 6 months ago (2015-06-15 06:45:38 UTC) #32
soonm
https://codereview.chromium.org/1158603003/diff/120001/Source/core/css/resolver/StyleBuilderConverter.cpp File Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/1158603003/diff/120001/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode977 Source/core/css/resolver/StyleBuilderConverter.cpp:977: if (list->length() >= 2 && list->length() <= 3) On ...
5 years, 6 months ago (2015-06-15 06:59:19 UTC) #33
alancutter (OOO until 2018)
https://codereview.chromium.org/1158603003/diff/140001/LayoutTests/transforms/combine-transforms-properties-motion-path.html File LayoutTests/transforms/combine-transforms-properties-motion-path.html (right): https://codereview.chromium.org/1158603003/diff/140001/LayoutTests/transforms/combine-transforms-properties-motion-path.html#newcode10 LayoutTests/transforms/combine-transforms-properties-motion-path.html:10: <!-- Note the order of the scaling operation affects ...
5 years, 6 months ago (2015-06-17 07:38:33 UTC) #34
soonm
https://codereview.chromium.org/1158603003/diff/140001/LayoutTests/transforms/combine-transforms-properties-motion-path.html File LayoutTests/transforms/combine-transforms-properties-motion-path.html (right): https://codereview.chromium.org/1158603003/diff/140001/LayoutTests/transforms/combine-transforms-properties-motion-path.html#newcode10 LayoutTests/transforms/combine-transforms-properties-motion-path.html:10: <!-- Note the order of the scaling operation affects ...
5 years, 6 months ago (2015-06-17 23:56:54 UTC) #35
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/1158603003/diff/180001/Source/core/css/ComputedStyleCSSValueMapping.cpp File Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/1158603003/diff/180001/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode2651 Source/core/css/ComputedStyleCSSValueMapping.cpp:2651: list->append(zoomAdjustedPixelValue(floatValueForLength(style.translate()->y(), box.height().toFloat()), style)); Add tests for ...
5 years, 6 months ago (2015-06-18 13:03:25 UTC) #36
Timothy Loh
https://codereview.chromium.org/1158603003/diff/180001/LayoutTests/transforms/transform-properties-mixed-expected.html File LayoutTests/transforms/transform-properties-mixed-expected.html (right): https://codereview.chromium.org/1158603003/diff/180001/LayoutTests/transforms/transform-properties-mixed-expected.html#newcode40 LayoutTests/transforms/transform-properties-mixed-expected.html:40: transform: translateX(50px) rotate3d(0, 1, 0, 90deg); not a big ...
5 years, 6 months ago (2015-06-19 01:16:45 UTC) #37
soonm
https://codereview.chromium.org/1158603003/diff/180001/LayoutTests/transforms/transform-properties-mixed-expected.html File LayoutTests/transforms/transform-properties-mixed-expected.html (right): https://codereview.chromium.org/1158603003/diff/180001/LayoutTests/transforms/transform-properties-mixed-expected.html#newcode40 LayoutTests/transforms/transform-properties-mixed-expected.html:40: transform: translateX(50px) rotate3d(0, 1, 0, 90deg); On 2015/06/19 01:16:45, ...
5 years, 6 months ago (2015-06-19 04:39:53 UTC) #38
Timothy Loh
lgtm
5 years, 6 months ago (2015-06-19 05:09:57 UTC) #39
soonm
+ Noel for platform owners review
5 years, 6 months ago (2015-06-19 06:16:51 UTC) #41
dstockwell
On 2015/06/19 at 06:16:51, soonm wrote: > + Noel for platform owners review I don't ...
5 years, 6 months ago (2015-06-19 06:20:45 UTC) #42
dstockwell
On 2015/06/19 at 06:20:45, dstockwell wrote: > On 2015/06/19 at 06:16:51, soonm wrote: > > ...
5 years, 6 months ago (2015-06-19 06:21:40 UTC) #43
Timothy Loh
On 2015/06/19 06:20:45, dstockwell wrote: > On 2015/06/19 at 06:16:51, soonm wrote: > > + ...
5 years, 6 months ago (2015-06-19 06:23:26 UTC) #44
Noel Gordon
On 2015/06/19 06:23:26, Timothy Loh wrote: > On 2015/06/19 06:20:45, dstockwell wrote: > > On ...
5 years, 6 months ago (2015-06-19 06:36:41 UTC) #45
dstockwell
On 2015/06/19 at 06:23:26, timloh wrote: > On 2015/06/19 06:20:45, dstockwell wrote: > > On ...
5 years, 6 months ago (2015-06-19 06:45:17 UTC) #46
Noel Gordon
rs-lgtm
5 years, 6 months ago (2015-06-19 06:53:21 UTC) #47
soonm
On 2015/06/19 at 06:36:41, noel wrote: > On 2015/06/19 06:23:26, Timothy Loh wrote: > > ...
5 years, 6 months ago (2015-06-19 06:56:33 UTC) #48
Noel Gordon
On 2015/06/19 06:56:33, soonm wrote: > There's no changes on that problematic pattern in this ...
5 years, 6 months ago (2015-06-19 07:01:14 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158603003/220001
5 years, 6 months ago (2015-06-21 23:50:11 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59975)
5 years, 6 months ago (2015-06-22 01:39:33 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158603003/220001
5 years, 6 months ago (2015-06-22 01:54:28 UTC) #56
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 02:27:57 UTC) #57
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197547

Powered by Google App Engine
This is Rietveld 408576698