[Webkit-unassigned] [Bug 136402] New: Simplify DOMTimer::adjustMinimumTimerInterval -> updateTimerIntervalIfNecessary
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 29 19:11:49 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=136402
Summary: Simplify DOMTimer::adjustMinimumTimerInterval ->
updateTimerIntervalIfNecessary
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: barraclough at apple.com
When the minimum DOM timer interval changes, the Page updates all DOMTimers accordingly. Updating the fire/repeat internal on TimerBase requires a delta, but in DOMTimer::adjustMinimumTimerInterval we have the new requested interval. In the case of repeating timers we can get the current interval to calculate the delta by calling repeatInterval(), but in the case of one-shot timers neither TimerBase no DOMTimer have store the interval that was actually set for the timer (DOMTimer knows the original, unadjusted timer, but not the actual interval). The way this currently works is that when the minimum interval changes, Page calls adjustMinimumTimerInterval providing the previous minimum. If the timer is one-shot, then adjustMinimumTimerInterval will use this to compute the delta based on what the interval would have been.
We can simplify & unify with the code to throttle interval timers when the nesting threshold is hit, by instead tracking the current timer interval as a member on DOMTimer & using this to compute the delta in all cases.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list