gecko-dev/layout/painting
Emilio Cobos Álvarez ec7a1d06ff Bug 1864425 - Remove PendingAnimationTracker. r=birtles
Instead of starting transitions and animations as a result of a paint,
use the refresh driver tick to do this.

This sets the transition-ready time to the current time during the next
refresh driver tick that it was started on (see mSawTickWhilePending).

This is similar to what's described in the bugs comments, and seems to
work nicely in practice.

We could easily change that (current time) by a paint-based time if
needed (when available), which would be more similar to what we were
doing. But I'd rather do the simple thing for now, and land this shortly
after the soft freeze is over so that we have time to watch out for
regressions.

There's one regression on a test that birtles wrote (using an XHR doc
and switching the timeline to a rendered doc's timeline).

We use the timeline's document rather than the target document to
determine whether to trigger animations now. That's one of the cases
where we'd keep vsync perma-running without this patch, and Chrome also
fails that test. Maybe the test should be removed / the spec should be
tweaked to allow this behavior?

This causes some progression in some CSS transitions tests too, and I
added an extra test for the vsync behavior.

Over-all this is much simpler to reason about and I think we should try
to do this.

Differential Revision: https://phabricator.services.mozilla.com/D193583
2023-11-20 09:31:41 +00:00
..
crashtests Bug 1855763 - Automatic fixes to avoid using prefixed transforms in tests. r=layout-reviewers,jfkthame 2023-10-02 12:36:17 +00:00
ActiveLayerTracker.cpp Bug 1598156 - Part 3: Remove RayReferenceData. r=emilio 2023-06-26 23:23:54 +00:00
ActiveLayerTracker.h Bug 1820070 - Part 4: Send offset-position to the compositor. r=emilio 2023-06-06 21:40:52 +00:00
BorderCache.h
BorderConsts.h
DashedCornerFinder.cpp
DashedCornerFinder.h
DisplayItemClip.cpp
DisplayItemClip.h
DisplayItemClipChain.cpp
DisplayItemClipChain.h Bug 1843848. Add some diagnostic asserts related to ASRs. r=mstange 2023-07-21 01:29:47 +00:00
DisplayListClipState.cpp
DisplayListClipState.h
DottedCornerFinder.cpp
DottedCornerFinder.h
HitTestInfo.cpp
HitTestInfo.h
MatrixStack.h
moz.build Bug 1858187 - Remove unused MaskLayerImageCache files r=emilio 2023-10-10 15:34:02 +00:00
nsCSSRendering.cpp Bug 1852323 - Part 2: Fix the mapping of StyleGeometryBox for mask-clip. r=emilio 2023-10-10 22:00:32 +00:00
nsCSSRendering.h Bug 1833733 - Properly detect page sequence background from FindEffectiveBackgroundColor. r=dholbert 2023-05-30 11:25:36 +00:00
nsCSSRenderingBorders.cpp Bug 1853867 - Remove -moz-image-rect(). r=tlouw 2023-09-26 07:15:02 +00:00
nsCSSRenderingBorders.h
nsCSSRenderingGradients.cpp Bug 1852513 - Use more gradient color stops for interpolation r=tlouw,emilio 2023-11-09 21:14:33 +00:00
nsCSSRenderingGradients.h
nsDisplayItemTypes.h
nsDisplayItemTypesList.h Bug 1814398 - SVGImageElement should not derive from SVGGeometryElement r=emilio 2023-04-29 15:13:34 +00:00
nsDisplayList.cpp Bug 1864425 - Remove PendingAnimationTracker. r=birtles 2023-11-20 09:31:41 +00:00
nsDisplayList.h Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
nsDisplayListArenaTypes.h
nsDisplayListInvalidation.cpp
nsDisplayListInvalidation.h
nsImageRenderer.cpp Bug 1861726 - Make StyleImage::GetResolution account for CSS zoom. r=layout-reviewers,jfkthame 2023-11-06 10:24:53 +00:00
nsImageRenderer.h
PaintTracker.cpp
PaintTracker.h
RetainedDisplayListBuilder.cpp Bug 1848714 - Use unsafe methods in hot code paths to access and remove elements from nsTArray when it is guaranteed to be safe, r=emilio 2023-08-15 14:24:19 +00:00
RetainedDisplayListBuilder.h Bug 1764606 - Expand nsDisplaySolidColor's bounds including the dynamic toolbar area. r=botond,tnikkel,geckoview-reviewers,owlish 2023-05-11 21:17:30 +00:00
RetainedDisplayListHelpers.h
TransformClipNode.h
WindowRenderer.cpp Bug 1864425 - Remove PendingAnimationTracker. r=birtles 2023-11-20 09:31:41 +00:00
WindowRenderer.h Bug 1864425 - Remove PendingAnimationTracker. r=birtles 2023-11-20 09:31:41 +00:00