diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-07-28 19:08:35 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2015-09-24 18:54:53 -0700 |
commit | 5dce5f0c970124610e0a6e4db0f44bdb5ca7cdd8 (patch) | |
tree | fe5a211ae050f2a5aa79e8d606ffcf46d557c792 /components/script/dom/htmlbodyelement.rs | |
parent | 4d1be2f56cd7a37c4c803ba12733fca55b57d4de (diff) | |
download | servo-5dce5f0c970124610e0a6e4db0f44bdb5ca7cdd8.tar.gz servo-5dce5f0c970124610e0a6e4db0f44bdb5ca7cdd8.zip |
script: Stop copying the document URL.
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index 28f77b706e9..a86e1375453 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -133,7 +133,8 @@ impl VirtualMethods for HTMLBodyElement { }, (&atom!(background), _) => { *self.background.borrow_mut() = mutation.new_value(attr).and_then(|value| { - let base = document_from_node(self).url(); + let document = document_from_node(self); + let base = document.url(); UrlParser::new().base_url(&base).parse(&value).ok() }); }, |