diff options
author | Corey Farwell <coreyf@rwell.org> | 2016-07-02 13:51:17 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2016-07-02 16:43:39 -0400 |
commit | 22928f50ace78091bcb434c61e731663dbf3e625 (patch) | |
tree | e94536bc35887e3f4a7c9e5dd5f7dc2d271b415f /components/script/dom/htmlanchorelement.rs | |
parent | 307844a8c17aedc369388baf4d98b0f82c3b695b (diff) | |
download | servo-22928f50ace78091bcb434c61e731663dbf3e625.tar.gz servo-22928f50ace78091bcb434c61e731663dbf3e625.zip |
Refactor `util::prefs` operations to be methods on static struct.
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r-- | components/script/dom/htmlanchorelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs index 161a7d43eaf..713aa0a92cb 100644 --- a/components/script/dom/htmlanchorelement.rs +++ b/components/script/dom/htmlanchorelement.rs @@ -29,7 +29,7 @@ use std::default::Default; use string_cache::Atom; use style::attr::AttrValue; use url::Url; -use util::prefs::mozbrowser_enabled; +use util::prefs::PREFS; #[dom_struct] pub struct HTMLAnchorElement { @@ -575,7 +575,7 @@ fn follow_hyperlink(subject: &Element, hyperlink_suffix: Option<String>) { // Step 8: navigate to the URL. if let Some(target) = target { - if mozbrowser_enabled() && !is_current_browsing_context(target.Value()) { + if PREFS.is_mozbrowser_enabled() && !is_current_browsing_context(target.Value()) { // https://developer.mozilla.org/en-US/docs/Web/Events/mozbrowseropenwindow // TODO: referrer and opener // TODO: should we send the normalized url or the non-normalized href? |