Don't throttle timers if a page is doing something that might be interesting
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jun 2013 22:24:29 +0000 (22:24 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Jun 2013 22:24:29 +0000 (22:24 +0000)
commite87769512db1c7ebadace7cff7b40c368194cf8a
tree6c0666845ae03ea3c86c65341f3b7f3db1a8e901
parent3e053735c91df01498fcfaa5103d8a484cfc5048
Don't throttle timers if a page is doing something that might be interesting
https://bugs.webkit.org/show_bug.cgi?id=117273

Reviewed by Gavin Barraclough.

Make the decision about whether or not to throttle timers be
determined by the PageThrottler

* page/Page.cpp:
(WebCore::Page::throttleTimers):
(WebCore::Page::unthrottleTimers):
(WebCore::Page::setVisibilityState):
(WebCore::Page::hiddenPageDOMTimerThrottlingStateChanged):
* page/Page.h:
* page/PageThrottler.cpp:
(WebCore::PageThrottler::throttlePage):
(WebCore::PageThrottler::unthrottlePage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/Page.cpp
Source/WebCore/page/Page.h
Source/WebCore/page/PageThrottler.cpp