2011-02-22 Kenneth Russell <kbr@google.com>
authorkbr@google.com <kbr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2011 18:00:09 +0000 (18:00 +0000)
committerkbr@google.com <kbr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2011 18:00:09 +0000 (18:00 +0000)
commitea226165b7d03672d7ac0f256878af38183b6477
treea7d46cc1e4be8cf523d0425d0a54b2ce6f6d85ba
parentaf5eebe838d05d58ac425d62e6ea4f2ca0fe376c
2011-02-22  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Per-page minimum DOMTimer interval broken for repeating timers
        https://bugs.webkit.org/show_bug.cgi?id=55014

        When the minimum timer interval is adjusted, if the timer is
        repeating, cause its repeat interval to be set to its original
        timeout clamped to the new minimum interval.

        Tests: fast/dom/timer-increase-min-interval-repeating.html
               fast/dom/timer-increase-then-decrease-min-interval-repeating.html

        * page/DOMTimer.cpp:
        (WebCore::DOMTimer::adjustMinimumTimerInterval):
2011-02-23  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Per-page minimum DOMTimer interval broken for repeating timers
        https://bugs.webkit.org/show_bug.cgi?id=55014

        Add tests using setInterval rather than setTimeout.
        timer-increase-then-decrease-min-interval-repeating.html catches
        the bug.

        * fast/dom/timer-increase-min-interval-repeating-expected.txt: Added.
        * fast/dom/timer-increase-min-interval-repeating.html: Added.
        * fast/dom/timer-increase-then-decrease-min-interval-repeating-expected.txt: Added.
        * fast/dom/timer-increase-then-decrease-min-interval-repeating.html: Added.
        * platform/mac-wk2/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/timer-increase-min-interval-repeating-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/timer-increase-min-interval-repeating.html [new file with mode: 0644]
LayoutTests/fast/dom/timer-increase-then-decrease-min-interval-repeating-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/timer-increase-then-decrease-min-interval-repeating.html [new file with mode: 0644]
LayoutTests/platform/mac-wk2/Skipped
Source/WebCore/ChangeLog
Source/WebCore/page/DOMTimer.cpp