diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-05-07 21:52:01 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-05-07 21:52:01 -0700 |
commit | f8db70f7d61b90e2ed273b71559b6a5b3b62e5be (patch) | |
tree | cf937b622e4fb74a716aaa8b327224790b4f9496 /webbrowser/components/preferences | |
parent | 15f51c2ef494e2db935178123bb957267275af77 (diff) | |
download | webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.gz webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.lz webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.tar.xz webbrowser-f8db70f7d61b90e2ed273b71559b6a5b3b62e5be.zip |
group hardware accel settings
Diffstat (limited to 'webbrowser/components/preferences')
-rw-r--r-- | webbrowser/components/preferences/advanced.js | 8 | ||||
-rw-r--r-- | webbrowser/components/preferences/advanced.xul | 26 |
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"> |