aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom
diff options
context:
space:
mode:
authorYoungmin Yoo <youngmin.yoo@samsung.com>2014-02-19 15:52:58 +0900
committerYoungmin Yoo <youngmin.yoo@samsung.com>2014-02-19 17:23:50 +0900
commit7b56e75adb0002a3bd001aa61b55249c938fc60e (patch)
treead070df96a1a874cf7df22d9c8ac34124366d9e7 /src/components/script/dom
parenta12608d2e4d44da49d8f26fc9d111b7dfd01bfd7 (diff)
downloadservo-7b56e75adb0002a3bd001aa61b55249c938fc60e.tar.gz
servo-7b56e75adb0002a3bd001aa61b55249c938fc60e.zip
Support base_url in stylesheet
Diffstat (limited to 'src/components/script/dom')
-rw-r--r--src/components/script/dom/element.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs
index 9ffb17c3254..2eb0553f2f6 100644
--- a/src/components/script/dom/element.rs
+++ b/src/components/script/dom/element.rs
@@ -221,7 +221,9 @@ impl Element {
match local_name.as_slice() {
"style" => {
- self.style_attribute = Some(style::parse_style_attribute(value))
+ let doc = self.node.owner_doc();
+ let base_url = doc.document().url.clone();
+ self.style_attribute = Some(style::parse_style_attribute(value, &base_url))
}
"id" if abstract_self.is_in_doc() => {
// XXX: this dual declaration are workaround to avoid the compile error: