From dae3be37fe9e88c9d5b0b2ac0e798be424ff644e Mon Sep 17 00:00:00 2001 From: "ggaren@apple.com" Date: Tue, 8 Oct 2013 22:40:14 +0000 Subject: [PATCH] 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 | 20 +++++++++++++++ PerformanceTests/SunSpider/hosted/sunspider.css | 10 ++++++++ PerformanceTests/SunSpider/resources/TEMPLATE.html | 21 +++++----------- .../SunSpider/resources/driver-TEMPLATE.html | 29 ++++++++++++++++++---- 4 files changed, 60 insertions(+), 20 deletions(-) diff --git a/PerformanceTests/SunSpider/ChangeLog b/PerformanceTests/SunSpider/ChangeLog index d12fc88..4f61b110 100644 --- a/PerformanceTests/SunSpider/ChangeLog +++ b/PerformanceTests/SunSpider/ChangeLog @@ -1,3 +1,23 @@ +2013-10-08 Geoffrey Garen + + 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. + 2013-10-02 Geoffrey Garen Improved painting behavior in SunSpider 1.0.2 diff --git a/PerformanceTests/SunSpider/hosted/sunspider.css b/PerformanceTests/SunSpider/hosted/sunspider.css index c91a103..b423230 100644 --- a/PerformanceTests/SunSpider/hosted/sunspider.css +++ b/PerformanceTests/SunSpider/hosted/sunspider.css @@ -29,3 +29,13 @@ dd { margin-bottom: 1em; margin-top: 0.5em } padding-right: 20px; margin-bottom: -40px; font-size: 3em } + +#frameparent { visibility: hidden; } + +#countdown { margin-top: 20px; + padding-top: 150px; + width: 80%; + height: 350px; + border: 2px solid #360D6B; + font-size: 128px; + text-align: center; } diff --git a/PerformanceTests/SunSpider/resources/TEMPLATE.html b/PerformanceTests/SunSpider/resources/TEMPLATE.html index 2d6420f..ba6a6eb 100644 --- a/PerformanceTests/SunSpider/resources/TEMPLATE.html +++ b/PerformanceTests/SunSpider/resources/TEMPLATE.html @@ -30,27 +30,18 @@ SunSpider @NAME@ - -

+

@NAME@

+
+
-
-
+

warmup

+
-- 1.8.3.1