aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/location.rs
diff options
context:
space:
mode:
authorArthur Marble <arthur@info9.net>2016-09-18 03:41:16 -0500
committerArthur Marble <arthur@info9.net>2016-09-18 03:41:16 -0500
commit883902bd972c9ea91cf6b6be74908e87c517b72e (patch)
tree1c598d19c2770949d3f2fa31b401a0d671212a83 /components/script/dom/location.rs
parentdbec9d845472251b73e444d80a493173f11a0482 (diff)
downloadservo-883902bd972c9ea91cf6b6be74908e87c517b72e.tar.gz
servo-883902bd972c9ea91cf6b6be74908e87c517b72e.zip
Most of the code refactoring needed to be done is done with this commit.
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r--components/script/dom/location.rs32
1 files changed, 16 insertions, 16 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs
index 72361193aa3..0c16c6a5f06 100644
--- a/components/script/dom/location.rs
+++ b/components/script/dom/location.rs
@@ -62,7 +62,7 @@ impl LocationMethods for Location {
// https://html.spec.whatwg.org/multipage/#dom-location-hash
fn Hash(&self) -> USVString {
- UrlHelper::Hash(&self.get_url())
+ UrlHelper::hash(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-hash
@@ -70,37 +70,37 @@ impl LocationMethods for Location {
if value.0.is_empty() {
value = USVString("#".to_owned());
}
- self.set_url_component(value, UrlHelper::SetHash);
+ self.set_url_component(value, UrlHelper::set_hash);
}
// https://html.spec.whatwg.org/multipage/#dom-location-host
fn Host(&self) -> USVString {
- UrlHelper::Host(&self.get_url())
+ UrlHelper::host(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-host
fn SetHost(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetHost);
+ self.set_url_component(value, UrlHelper::set_host);
}
// https://html.spec.whatwg.org/multipage/#dom-location-origin
fn Origin(&self) -> USVString {
- UrlHelper::Origin(&self.get_url())
+ UrlHelper::origin(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-hostname
fn Hostname(&self) -> USVString {
- UrlHelper::Hostname(&self.get_url())
+ UrlHelper::hostname(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-hostname
fn SetHostname(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetHostname);
+ self.set_url_component(value, UrlHelper::set_hostname);
}
// https://html.spec.whatwg.org/multipage/#dom-location-href
fn Href(&self) -> USVString {
- UrlHelper::Href(&self.get_url())
+ UrlHelper::href(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-href
@@ -112,32 +112,32 @@ impl LocationMethods for Location {
// https://html.spec.whatwg.org/multipage/#dom-location-pathname
fn Pathname(&self) -> USVString {
- UrlHelper::Pathname(&self.get_url())
+ UrlHelper::pathname(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-pathname
fn SetPathname(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetPathname);
+ self.set_url_component(value, UrlHelper::set_pathname);
}
// https://html.spec.whatwg.org/multipage/#dom-location-port
fn Port(&self) -> USVString {
- UrlHelper::Port(&self.get_url())
+ UrlHelper::port(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-port
fn SetPort(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetPort);
+ self.set_url_component(value, UrlHelper::set_port);
}
// https://html.spec.whatwg.org/multipage/#dom-location-protocol
fn Protocol(&self) -> USVString {
- UrlHelper::Protocol(&self.get_url())
+ UrlHelper::protocol(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-protocol
fn SetProtocol(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetProtocol);
+ self.set_url_component(value, UrlHelper::set_protocol);
}
// https://html.spec.whatwg.org/multipage/#dom-location-href
@@ -147,11 +147,11 @@ impl LocationMethods for Location {
// https://html.spec.whatwg.org/multipage/#dom-location-search
fn Search(&self) -> USVString {
- UrlHelper::Search(&self.get_url())
+ UrlHelper::search(&self.get_url())
}
// https://html.spec.whatwg.org/multipage/#dom-location-search
fn SetSearch(&self, value: USVString) {
- self.set_url_component(value, UrlHelper::SetSearch);
+ self.set_url_component(value, UrlHelper::set_search);
}
}