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

Issue 2035793007: Make sure z-index is adjusted after applying pending animations on elements (Closed)

Created:
4 years, 6 months ago by trchen
Modified:
4 years, 4 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Eric Willigers, rjwright, rwlbuis, shans, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure z-index is adjusted after applying pending animations on elements Before this CL a transform animation that has interpolated transform:none on the first frame won't have its z-index adjusted to 0 because new animations on an element are stashed until style finished resolving. If new transform animations are added then we need to adjust z-index accordingly. BUG=616674

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context.html View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/transform-animation-stacking-context-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
trchen
I tried a few other approaches (forcing interpolated transform:none to transform:identity(), splitting computed and used ...
4 years, 6 months ago (2016-06-03 23:05:39 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2035793007/1
4 years, 6 months ago (2016-06-03 23:06:31 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-04 01:28:02 UTC) #7
alancutter (OOO until 2018)
I'm not too pleased about spreading StyleAdjuster code around. Would an approach like this work? ...
4 years, 6 months ago (2016-06-08 09:59:11 UTC) #8
trchen
4 years, 6 months ago (2016-06-08 20:41:13 UTC) #9
On 2016/06/08 09:59:11, alancutter wrote:
> I'm not too pleased about spreading StyleAdjuster code around.
> Would an approach like this work? Make isStackingContext a flag on
ComputedStyle
> and cease adjusting z-index: https://codereview.chromium.org/2047283002
> I don't know enough about layout/paint to make the tests pass or understand
> whether it's feasible.

I think your fix will work. Just worried that there may be code in layout/paint
that invokes hasAutoZIndex when it really means isStackingContext.

Powered by Google App Engine
This is Rietveld 408576698