Skip to content

Commit

Permalink
script: Also do so for element owners.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jan 28, 2017
1 parent 9b06932 commit 684545b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/cssstyledeclaration.rs
Expand Up @@ -127,7 +127,7 @@ impl CSSStyleOwner {

fn base_url(&self) -> ServoUrl {
match *self {
CSSStyleOwner::Element(ref el) => window_from_node(&**el).get_url(),
CSSStyleOwner::Element(ref el) => window_from_node(&**el).Document().base_url(),
CSSStyleOwner::CSSRule(ref rule, _) => {
rule.parent_stylesheet().style_stylesheet().base_url.clone()
}
Expand Down

0 comments on commit 684545b

Please sign in to comment.