summaryrefslogtreecommitdiffstats
path: root/webbrowser/components/preferences
diff options
context:
space:
mode:
Diffstat (limited to 'webbrowser/components/preferences')
-rw-r--r--webbrowser/components/preferences/advanced.js8
-rw-r--r--webbrowser/components/preferences/advanced.xul26
2 files changed, 18 insertions, 16 deletions
diff --git a/webbrowser/components/preferences/advanced.js b/webbrowser/components/preferences/advanced.js
index aab58b3..da5f8d1 100644
--- a/webbrowser/components/preferences/advanced.js
+++ b/webbrowser/components/preferences/advanced.js
@@ -51,6 +51,8 @@ var gAdvancedPane = {
this.updateActualCacheSize();
this.updateActualAppCacheSize();
+ this.updateHWADisplay();
+
// Notify observers that the UI is now ready
Services.obs.notifyObservers(window, "advanced-pane-loaded", null);
},
@@ -155,11 +157,7 @@ var gAdvancedPane = {
*/
updateHardwareAcceleration: function()
{
-#ifdef XP_WIN
- var fromPref = document.getElementById("layers.acceleration.disabled");
- var toPref = document.getElementById("gfx.direct2d.disabled");
- toPref.value = fromPref.value;
-#endif
+ this.updateHWADisplay();
},
// DATA CHOICES TAB
diff --git a/webbrowser/components/preferences/advanced.xul b/webbrowser/components/preferences/advanced.xul
index e5f3bb1..4466d63 100644
--- a/webbrowser/components/preferences/advanced.xul
+++ b/webbrowser/components/preferences/advanced.xul
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
@@ -31,11 +28,9 @@
<preference id="general.autoScroll" name="general.autoScroll" type="bool"/>
<preference id="general.smoothScroll" name="general.smoothScroll" type="bool"/>
- <preference id="layers.acceleration.disabled" name="layers.acceleration.disabled" type="bool" inverted="true"
+ <preference id="layers.acceleration.enabled" name="layers.acceleration.enabled" type="bool"
onchange="gAdvancedPane.updateHardwareAcceleration()"/>
-#ifdef XP_WIN
- <preference id="gfx.direct2d.disabled" name="gfx.direct2d.disabled" type="bool" inverted="true"/>
-#endif
+ <preference id="layers.acceleration.force" name="layers.acceleration.force" type="bool"/>
<preference id="layout.spellcheckDefault" name="layout.spellcheckDefault" type="int"/>
#ifdef HAVE_SHELL_SERVICE
@@ -152,10 +147,6 @@
label="&useAutoScroll.label;"
accesskey="&useAutoScroll.accesskey;"
preference="general.autoScroll"/>
- <checkbox id="allowHWAccel"
- label="&allowHWAccel.label;"
- accesskey="&allowHWAccel.accesskey;"
- preference="layers.acceleration.disabled"/>
<checkbox id="checkSpelling"
label="&checkSpelling.label;"
accesskey="&checkSpelling.accesskey;"
@@ -164,6 +155,19 @@
preference="layout.spellcheckDefault"/>
</groupbox>
+ <!-- Hardware Acceleration -->
+ <groupbox id="browsingGroup" align="start">
+ <caption label="&HWAccel.label;"/>
+ <label>&restartRequired.label;</label>
+ <checkbox id="allowHWAccel"
+ label="&allowHWAccel.label;"
+ accesskey="&allowHWAccel.accesskey;"
+ reference="layers.acceleration.enabled"/>
+ <checkbox id="forceHWAccel" class="indent"
+ label="&forceHWAccel.label;"
+ preference="layers.acceleration.force"/>
+ </groupbox>
+
#ifdef HAVE_SHELL_SERVICE
<!-- System Defaults -->
<groupbox id="systemDefaultsGroup" orient="vertical">