|
|
Defer compositor keyframe snapshots until the next style resolve
Previously compositor keyframes were being captured as soon as an animation
was created. In the case of element.animate() there is not enough context
to know the correct parentStyle to use resulting in crashes
when computing "inherit" in corner case scenarios.
By deferring the compositor keyframe snapshotting until we are in a
style resolve we can pass through the correct parentStyle and avoid
the crashes.
Additionally by deferring we are able to avoid forcing a style recalc
during element.animate() of a composited property.
BUG= 593252, 539793, 534122, 587257
Committed: https://crrev.com/3ebd5c3b08a5f861d8268402f3d9d76f5d7e306f
Cr-Commit-Position: refs/heads/master@{#403861}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+130 lines, -386 lines) |
Patch |
 |
A |
third_party/WebKit/LayoutTests/animations/option-opacity-inherit-crash.html
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/animations/universal-selector-opacity-inherit-crash.html
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/animations/universal-selector-opacity-inherit-crash-expected.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/AnimationEffect.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.h
|
View
|
1
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -150 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolationTest.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -107 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/EffectInput.cpp
|
View
|
1
|
6 chunks |
+8 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/ElementAnimations.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/InertEffect.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/InterpolableValue.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/Keyframe.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/StringKeyframe.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/StringKeyframe.cpp
|
View
|
1
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/css/CSSAnimations.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+48 lines, -12 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/core.gypi
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/resolver/StyleResolver.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -7 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 37 (16 generated)
|