mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2fe00ba5c9
This patch moves event queuing out of EnsureStyleRuleFor into a separate method. This is a preparatory step towards making GetPositionInIteration into a more generic method for calculating the current time fraction. In order to achieve this, GetPositionInIteration needs to be able to calculate the correct time portion for times outside the range [0, 1] even when it is not passed a ElementAnimation object. Specifically, it needs the fill mode of the animation to be passed in. (Rather than using FillForwards/FillBackwards this patch just compares the NS_STYLE_ANIMATION_FILL_MODE_* values directly but FillForwards/FillBackwards are restored in a subsequent patch when they are added to the struct used to lump the timing parameters together.) There are a number of places where positionInIteration is used to determine if the current sample occurs in the active phase or after. This is sub-optimal but is fixed in a subsequent patch in this series. The actual work of removing event queuing from GetPositionInIteration is deferred to a subsequent patch in order to keep the changes as small as possible. This patch simply makes separate calls to GetPositionInIteration for interpolating and for event queuing. |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
doc | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
skia | ||
src | ||
tests | ||
thebes | ||
ycbcr | ||
moz.build |