aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmllinkelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-01 12:20:52 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-01 20:36:43 +0100
commit1dad710063e601d3560b0cf89c602d16a0a48657 (patch)
tree400c86753feef6e0949cb2fabd5a1ee84f5812f3 /components/script/dom/htmllinkelement.rs
parentc9f26dfd599bd50deac9e120bd54c9dbdfe40ae0 (diff)
downloadservo-1dad710063e601d3560b0cf89c602d16a0a48657.tar.gz
servo-1dad710063e601d3560b0cf89c602d16a0a48657.zip
Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
Diffstat (limited to 'components/script/dom/htmllinkelement.rs')
-rw-r--r--components/script/dom/htmllinkelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs
index 3a78e4a0c02..2e813d5e501 100644
--- a/components/script/dom/htmllinkelement.rs
+++ b/components/script/dom/htmllinkelement.rs
@@ -53,7 +53,7 @@ impl HTMLLinkElement {
fn get_attr(element: JSRef<Element>, name: &Atom) -> Option<String> {
let elem = element.get_attribute(ns!(""), name).root();
- elem.map(|e| e.value().as_slice().into_string())
+ elem.map(|e| e.r().value().as_slice().into_string())
}
fn is_stylesheet(value: &Option<String>) -> bool {
@@ -127,7 +127,7 @@ trait PrivateHTMLLinkElementHelpers {
impl<'a> PrivateHTMLLinkElementHelpers for JSRef<'a, HTMLLinkElement> {
fn handle_stylesheet_url(self, href: &str) {
let window = window_from_node(self).root();
- match UrlParser::new().base_url(&window.page().get_url()).parse(href) {
+ match UrlParser::new().base_url(&window.r().page().get_url()).parse(href) {
Ok(url) => {
let LayoutChan(ref layout_chan) = window.page().layout_chan;
layout_chan.send(Msg::LoadStylesheet(url));