|
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
Total comments: 2
|
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
|
Total messages: 20 (0 generated)
|