mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Add stringifier method support to CodegenRust.py (fixes #1986)
Add a stringifier to URLUtils (Location). (fixes #4605) wpt metadata updates for #4605
This commit is contained in:
parent
d1c8ed4359
commit
00f863b4fe
6 changed files with 69 additions and 52 deletions
|
@ -47,6 +47,10 @@ impl<'a> LocationMethods for JSRef<'a, Location> {
|
|||
UrlHelper::Href(&self.page.get_url())
|
||||
}
|
||||
|
||||
fn Stringify(self) -> DOMString {
|
||||
self.Href()
|
||||
}
|
||||
|
||||
fn Search(self) -> DOMString {
|
||||
UrlHelper::Search(&self.page.get_url())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue