diff options
author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2019-10-25 15:46:52 +0900 |
---|---|---|
committer | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2019-10-29 21:35:40 +0900 |
commit | 691af0e98b95cb39a836319ecd10a35ce75b8db2 (patch) | |
tree | 8a25c0ae59bbab9b23016a259eabfc945c73b3a6 /components/script/dom/workerlocation.rs | |
parent | 97c01fc4792c6bc0edd2d588470f38a7f02d9661 (diff) | |
download | servo-691af0e98b95cb39a836319ecd10a35ce75b8db2.tar.gz servo-691af0e98b95cb39a836319ecd10a35ce75b8db2.zip |
Support stringifier attributes
Diffstat (limited to 'components/script/dom/workerlocation.rs')
-rw-r--r-- | components/script/dom/workerlocation.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/workerlocation.rs b/components/script/dom/workerlocation.rs index 483cb69c084..d96aea8011c 100644 --- a/components/script/dom/workerlocation.rs +++ b/components/script/dom/workerlocation.rs @@ -6,7 +6,7 @@ use crate::dom::bindings::codegen::Bindings::WorkerLocationBinding; use crate::dom::bindings::codegen::Bindings::WorkerLocationBinding::WorkerLocationMethods; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::DomRoot; -use crate::dom::bindings::str::{DOMString, USVString}; +use crate::dom::bindings::str::USVString; use crate::dom::urlhelper::UrlHelper; use crate::dom::workerglobalscope::WorkerGlobalScope; use dom_struct::dom_struct; @@ -87,9 +87,4 @@ impl WorkerLocationMethods for WorkerLocation { fn Search(&self) -> USVString { UrlHelper::Search(&self.url) } - - // https://html.spec.whatwg.org/multipage/#dom-workerlocation-href - fn Stringifier(&self) -> DOMString { - DOMString::from(self.Href().0) - } } |