mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
script: Also do so for element owners.
This commit is contained in:
parent
9b06932535
commit
684545b396
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ impl CSSStyleOwner {
|
||||||
|
|
||||||
fn base_url(&self) -> ServoUrl {
|
fn base_url(&self) -> ServoUrl {
|
||||||
match *self {
|
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, _) => {
|
CSSStyleOwner::CSSRule(ref rule, _) => {
|
||||||
rule.parent_stylesheet().style_stylesheet().base_url.clone()
|
rule.parent_stylesheet().style_stylesheet().base_url.clone()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue