aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-08-28 01:05:07 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-08-30 15:30:01 +0200
commit51418fc348f683e9a3f96747865a0400e26240fe (patch)
tree3776b932324c0d5036d645204a9c171c5bc02142 /components/script/dom/htmlobjectelement.rs
parent105d99084508f72e7ff61a499df5d340e3752f14 (diff)
downloadservo-51418fc348f683e9a3f96747865a0400e26240fe.tar.gz
servo-51418fc348f683e9a3f96747865a0400e26240fe.zip
Replace many uses of Attr::Value() by Attr::value()
The later only borrows the attribute, without copying its value as a string.
Diffstat (limited to 'components/script/dom/htmlobjectelement.rs')
-rw-r--r--components/script/dom/htmlobjectelement.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs
index 5f0520fd763..884087c298d 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -4,7 +4,6 @@
use dom::attr::Attr;
use dom::bindings::cell::DOMRefCell;
-use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods;
use dom::bindings::codegen::Bindings::HTMLObjectElementBinding;
use dom::bindings::codegen::Bindings::HTMLObjectElementBinding::HTMLObjectElementMethods;
use dom::bindings::codegen::InheritTypes::HTMLObjectElementDerived;
@@ -67,8 +66,8 @@ impl<'a> ProcessDataURL for &'a HTMLObjectElement {
let elem = ElementCast::from_ref(*self);
// TODO: support other values
- match (elem.get_attribute(&ns!(""), &atom!("type")).map(|x| x.r().Value()),
- elem.get_attribute(&ns!(""), &atom!("data")).map(|x| x.r().Value())) {
+ match (elem.get_attribute(&ns!(""), &atom!("type")),
+ elem.get_attribute(&ns!(""), &atom!("data"))) {
(None, Some(_uri)) => {
// TODO(gw): Prefetch the image here.
}