Refined power management in SunSpider 1.0.2
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Oct 2013 22:40:14 +0000 (22:40 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Oct 2013 22:40:14 +0000 (22:40 +0000)
commitdae3be37fe9e88c9d5b0b2ac0e798be424ff644e
treeedf971eeb189cf13d218585c78367f7ecd4af1f0
parent6e27b31ca45e5e7426946bafea001de04f69c280
Refined power management in SunSpider 1.0.2
https://bugs.webkit.org/show_bug.cgi?id=122525

Reviewed by Gavin Barraclough.

* hosted/sunspider.css:
(#frameparent):
(#countdown):
* resources/TEMPLATE.html: Provide an explicit countdown element in the
parent, instead of hacking it into each child frame.

* resources/driver-TEMPLATE.html: Be more explicit about how we respond
to power management. Just moving setTimeout(0) inside the loop is a
little too subtle, and may not work across browsers.

Also, leave a little extra time after changing the countdown graphic,
to give the browser some time to paint.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/SunSpider/ChangeLog
PerformanceTests/SunSpider/hosted/sunspider.css
PerformanceTests/SunSpider/resources/TEMPLATE.html
PerformanceTests/SunSpider/resources/driver-TEMPLATE.html