mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
74b350fbd2
sendWheelAndPaintNoFlush which calls in waitForWheelEvent() waits for MozAfterPaint and calls a given callback function when the MozAfterPaint is received. The MozAfterPaint is processed after we did a paint process. However, observeStyling counts the number of requestAnimationFrame callbacks and yet there will be no opportunity to process restyles between the MozAfterPaint callback and the next call to requestAnimationFrame. As a result, if we are expecting restyles to happen on every frame, our count will be off by one. To avoid this, we wait until the next requestAnimationFrame callback before calling observeStyling. Note that we *could* try to adjust observeStyling to automatically do this for us but sometimes we want observeStyling to observe restyles in the *current* frame. Since there's no obvious way to detect what we are trying to do it's easier to just let each test decide from which point it wants to count restyles. MozReview-Commit-ID: 1B8EZNozjFj --HG-- extra : rebase_source : 748f874dbb42e06b72b12582762626a31d1e8d75 |
||
---|---|---|
.. | ||
test | ||
Animation.cpp | ||
Animation.h | ||
AnimationComparator.h | ||
AnimationEffectReadOnly.cpp | ||
AnimationEffectReadOnly.h | ||
AnimationEffectTiming.cpp | ||
AnimationEffectTiming.h | ||
AnimationEffectTimingReadOnly.cpp | ||
AnimationEffectTimingReadOnly.h | ||
AnimationPerformanceWarning.cpp | ||
AnimationPerformanceWarning.h | ||
AnimationPropertySegment.h | ||
AnimationTarget.h | ||
AnimationTimeline.cpp | ||
AnimationTimeline.h | ||
AnimationUtils.cpp | ||
AnimationUtils.h | ||
AnimValuesStyleRule.cpp | ||
AnimValuesStyleRule.h | ||
ComputedTiming.h | ||
ComputedTimingFunction.cpp | ||
ComputedTimingFunction.h | ||
CSSPseudoElement.cpp | ||
CSSPseudoElement.h | ||
DocumentTimeline.cpp | ||
DocumentTimeline.h | ||
EffectCompositor.cpp | ||
EffectCompositor.h | ||
EffectSet.cpp | ||
EffectSet.h | ||
Keyframe.h | ||
KeyframeEffect.cpp | ||
KeyframeEffect.h | ||
KeyframeEffectParams.h | ||
KeyframeEffectReadOnly.cpp | ||
KeyframeEffectReadOnly.h | ||
KeyframeUtils.cpp | ||
KeyframeUtils.h | ||
moz.build | ||
PendingAnimationTracker.cpp | ||
PendingAnimationTracker.h | ||
PseudoElementHashEntry.h | ||
TimingParams.cpp | ||
TimingParams.h |