mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Support stringifier attributes
This commit is contained in:
parent
97c01fc479
commit
691af0e98b
14 changed files with 11 additions and 73 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue