aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-07-02 13:51:17 -0400
committerCorey Farwell <coreyf@rwell.org>2016-07-02 16:43:39 -0400
commit22928f50ace78091bcb434c61e731663dbf3e625 (patch)
treee94536bc35887e3f4a7c9e5dd5f7dc2d271b415f /components/script/dom/htmliframeelement.rs
parent307844a8c17aedc369388baf4d98b0f82c3b695b (diff)
downloadservo-22928f50ace78091bcb434c61e731663dbf3e625.tar.gz
servo-22928f50ace78091bcb434c61e731663dbf3e625.zip
Refactor `util::prefs` operations to be methods on static struct.
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 2c71488c5dc..f1f3c0e29de 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -48,7 +48,7 @@ use string_cache::Atom;
use style::attr::{AttrValue, LengthOrPercentageOrAuto};
use style::context::ReflowGoal;
use url::Url;
-use util::prefs::mozbrowser_enabled;
+use util::prefs::PREFS;
use util::servo_version;
bitflags! {
@@ -145,7 +145,7 @@ impl HTMLIFrameElement {
.send(ConstellationMsg::ScriptLoadedURLInIFrame(load_info))
.unwrap();
- if mozbrowser_enabled() {
+ if PREFS.is_mozbrowser_enabled() {
// https://developer.mozilla.org/en-US/docs/Web/Events/mozbrowserloadstart
self.dispatch_mozbrowser_event(MozBrowserEvent::LoadStart);
}
@@ -164,7 +164,7 @@ impl HTMLIFrameElement {
// TODO(gw): Support mozbrowser event types that have detail which is not a string.
// See https://developer.mozilla.org/en-US/docs/Web/API/Using_the_Browser_API
// for a list of mozbrowser events.
- assert!(mozbrowser_enabled());
+ assert!(PREFS.is_mozbrowser_enabled());
if self.Mozbrowser() {
let window = window_from_node(self);