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

Issue 211233003: CSS Transforms: Implement perspective (Closed)

Created:
6 years, 9 months ago by dstockwell
Modified:
6 years, 8 months ago
Reviewers:
eseidel
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, rune+blink, dglazkov+blink, dstockwell, Timothy Loh, apavlov+blink_chromium.org, darktears, Steve Block, dino_apple.com, Eric Willigers, esprehn, abarth-chromium, ojan, Julien - ping for review
Visibility:
Public.

Description

CSS Transforms: Implement perspective Implements perspective as defined in CSS Transforms[1]. Behavior is similar to -webkit-perspective, but numbers without units are not valid. In both variants we accept zero although Gecko and spec require a positive value. The animation system is modified to avoid running animations and transitions on both the prefixed and unprefixed variants at the same time. Internally, animations are mapped to the unprefixed variant. As animations operate directly on the RenderStyle storage the result of specifying an animation/transition on either property is the same. Transitions now track the specified transition-property such that the end event may reference it. (eg. transition: -webkit-perspective; will fire an end event with propertyName == '-webkit-perspective'). As transitions operate on changes to values within a RenderStyle, 'transition: all;' only ever starts transitions on the unprefixed variants. Note, this property is guarded by the CSSTransformsUnprefixed runtime feature (enabled only for testing). [1] http://www.w3.org/TR/css3-transforms/ BUG=154772 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170326 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170517

Patch Set 1 #

Patch Set 2 : Rebase and update interpolation tests. #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Rebase. #

Patch Set 5 : Disable compositing assert hit by new tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -41 lines) Patch
M LayoutTests/animations/interpolation/perspective-interpolation.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/animations/interpolation/perspective-interpolation-expected.txt View 1 1 chunk +14 lines, -14 lines 0 comments Download
A + LayoutTests/animations/interpolation/webkit-perspective-interpolation.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/animations/interpolation/webkit-perspective-interpolation-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/transforms/perspective-parsing.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/transforms/perspective-parsing-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/transitions/unprefixed-perspective.html View 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/transitions/unprefixed-perspective-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/css/CSSAnimations.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/animation/css/CSSAnimations.cpp View 1 2 3 8 chunks +23 lines, -9 lines 0 comments Download
M Source/core/animation/css/CSSPropertyEquality.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 3 chunks +2 lines, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 2 chunks +12 lines, -11 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dstockwell
6 years, 9 months ago (2014-03-26 08:55:58 UTC) #1
eseidel
lgtm https://codereview.chromium.org/211233003/diff/30001/Source/core/animation/css/CSSAnimations.cpp File Source/core/animation/css/CSSAnimations.cpp (right): https://codereview.chromium.org/211233003/diff/30001/Source/core/animation/css/CSSAnimations.cpp#newcode77 Source/core/animation/css/CSSAnimations.cpp:77: switch (property) { Why the switch? I guess ...
6 years, 9 months ago (2014-03-27 23:13:21 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/211233003/30001
6 years, 9 months ago (2014-03-27 23:13:25 UTC) #3
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 23:13:34 UTC) #4
commit-bot: I haz the power
Failed to apply patch for Source/core/css/CSSComputedStyleDeclaration.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-27 23:13:35 UTC) #5
dstockwell
https://codereview.chromium.org/211233003/diff/30001/Source/core/animation/css/CSSAnimations.cpp File Source/core/animation/css/CSSAnimations.cpp (right): https://codereview.chromium.org/211233003/diff/30001/Source/core/animation/css/CSSAnimations.cpp#newcode77 Source/core/animation/css/CSSAnimations.cpp:77: switch (property) { On 2014/03/27 23:13:22, eseidel wrote: > ...
6 years, 9 months ago (2014-03-27 23:21:08 UTC) #6
dstockwell
The CQ bit was checked by dstockwell@chromium.org
6 years, 9 months ago (2014-03-28 12:24:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/211233003/90001
6 years, 9 months ago (2014-03-28 12:24:48 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 12:25:11 UTC) #9
commit-bot: I haz the power
Failed to apply patch for Source/core/animation/css/CSSAnimations.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-28 12:25:11 UTC) #10
dstockwell
The CQ bit was checked by dstockwell@chromium.org
6 years, 9 months ago (2014-03-28 12:39:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/211233003/110001
6 years, 9 months ago (2014-03-28 12:39:35 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 13:17:05 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-28 13:17:06 UTC) #14
dstockwell
The CQ bit was checked by dstockwell@chromium.org
6 years, 9 months ago (2014-03-28 13:21:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/211233003/110001
6 years, 9 months ago (2014-03-28 13:22:05 UTC) #16
commit-bot: I haz the power
Change committed as 170326
6 years, 9 months ago (2014-03-28 13:53:29 UTC) #17
dstockwell
The CQ bit was checked by dstockwell@chromium.org
6 years, 8 months ago (2014-04-01 05:18:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/211233003/130001
6 years, 8 months ago (2014-04-01 05:18:28 UTC) #19
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 06:26:58 UTC) #20
Message was sent while issue was closed.
Change committed as 170517

Powered by Google App Engine
This is Rietveld 408576698