зеркало из https://github.com/mozilla/gecko-dev.git
b4d589de64
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. |
||
---|---|---|
.. | ||
analysis | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |