From 5ce571ea26b579110024dec8ad2c027420ec742a Mon Sep 17 00:00:00 2001 From: Justin Dolske Date: Sun, 29 Mar 2009 15:29:21 -0700 Subject: [PATCH] Bug 484935 - videocontrols should use display:none on hidden items to minimize CPU usage. r=enn --- toolkit/content/widgets/videocontrols.css | 11 ----------- toolkit/content/widgets/videocontrols.xml | 15 +++++---------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/toolkit/content/widgets/videocontrols.css b/toolkit/content/widgets/videocontrols.css index c7bbde78d83e..84805f527059 100644 --- a/toolkit/content/widgets/videocontrols.css +++ b/toolkit/content/widgets/videocontrols.css @@ -1,16 +1,5 @@ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); -/* Bug 449358: hide controlbar by default, so we don't show broken controls when script is disabled */ -.controlBar { - visibility: hidden; - opacity: 0.0; -} - .scrubber { -moz-binding: url("chrome://global/content/bindings/videocontrols.xml#suppressChangeEvent"); } - -.statusOverlay { - visibility: hidden; - opacity: 0.0; -} diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml index ffd22a17d68a..2e7daf5f6dc9 100644 --- a/toolkit/content/widgets/videocontrols.xml +++ b/toolkit/content/widgets/videocontrols.xml @@ -52,13 +52,13 @@ - + - +