aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-09-29 18:30:01 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-09-29 21:40:54 -0700
commitd50114c41d5233bc55ad1b86273995c0fa3f8d62 (patch)
tree1b11383f0fdfab841f3cc77c680226b9bc10aa59 /components/script/dom/htmlobjectelement.rs
parent6429750b339ca45651ac3a45df380f1badd3917c (diff)
downloadservo-d50114c41d5233bc55ad1b86273995c0fa3f8d62.tar.gz
servo-d50114c41d5233bc55ad1b86273995c0fa3f8d62.zip
Use string-cache's Namespace type
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 759f3c37c59..268c4699456 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -20,7 +20,6 @@ use dom::virtualmethods::VirtualMethods;
use servo_net::image_cache_task;
use servo_net::image_cache_task::ImageCacheTask;
-use servo_util::namespace::Null;
use servo_util::str::DOMString;
use string_cache::Atom;
@@ -63,8 +62,8 @@ impl<'a> ProcessDataURL for JSRef<'a, HTMLObjectElement> {
let elem: JSRef<Element> = ElementCast::from_ref(*self);
// TODO: support other values
- match (elem.get_attribute(Null, "type").map(|x| x.root().Value()),
- elem.get_attribute(Null, "data").map(|x| x.root().Value())) {
+ match (elem.get_attribute(ns!(""), "type").map(|x| x.root().Value()),
+ elem.get_attribute(ns!(""), "data").map(|x| x.root().Value())) {
(None, Some(uri)) => {
if is_image_data(uri.as_slice()) {
let data_url = Url::parse(uri.as_slice()).unwrap();