mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
#8539 Config preferences backend restructure
This commit is contained in:
parent
34fda66dfa
commit
8bfd4dc1e2
53 changed files with 1748 additions and 680 deletions
|
@ -42,7 +42,7 @@ use js::jsapi::JSContext;
|
|||
use js::rust::HandleValue;
|
||||
use profile_traits::ipc;
|
||||
use script_layout_interface::{HTMLCanvasData, HTMLCanvasDataSource};
|
||||
use servo_config::prefs::PREFS;
|
||||
use servo_config::pref;
|
||||
use std::cell::Ref;
|
||||
use style::attr::{AttrValue, LengthOrPercentageOrAuto};
|
||||
|
||||
|
@ -232,7 +232,7 @@ impl HTMLCanvasElement {
|
|||
cx: *mut JSContext,
|
||||
options: HandleValue,
|
||||
) -> Option<DomRoot<WebGL2RenderingContext>> {
|
||||
if !PREFS.is_webgl2_enabled() {
|
||||
if !pref!(dom.webgl2.enabled) {
|
||||
return None;
|
||||
}
|
||||
if let Some(ctx) = self.context() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue