diff options
Diffstat (limited to 'components/script/dom/urlhelper.rs')
-rw-r--r-- | components/script/dom/urlhelper.rs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/components/script/dom/urlhelper.rs b/components/script/dom/urlhelper.rs index 03a3c3150ae..f2edef16fc7 100644 --- a/components/script/dom/urlhelper.rs +++ b/components/script/dom/urlhelper.rs @@ -10,68 +10,68 @@ use url::quirks; use crate::dom::bindings::str::USVString; #[derive(MallocSizeOf)] -pub struct UrlHelper; +pub(crate) struct UrlHelper; #[allow(non_snake_case)] impl UrlHelper { - pub fn Origin(url: &ServoUrl) -> USVString { + pub(crate) fn Origin(url: &ServoUrl) -> USVString { USVString(quirks::origin(url.as_url()).to_owned()) } - pub fn Href(url: &ServoUrl) -> USVString { + pub(crate) fn Href(url: &ServoUrl) -> USVString { USVString(quirks::href(url.as_url()).to_owned()) } - pub fn Hash(url: &ServoUrl) -> USVString { + pub(crate) fn Hash(url: &ServoUrl) -> USVString { USVString(quirks::hash(url.as_url()).to_owned()) } - pub fn Host(url: &ServoUrl) -> USVString { + pub(crate) fn Host(url: &ServoUrl) -> USVString { USVString(quirks::host(url.as_url()).to_owned()) } - pub fn Port(url: &ServoUrl) -> USVString { + pub(crate) fn Port(url: &ServoUrl) -> USVString { USVString(quirks::port(url.as_url()).to_owned()) } - pub fn Search(url: &ServoUrl) -> USVString { + pub(crate) fn Search(url: &ServoUrl) -> USVString { USVString(quirks::search(url.as_url()).to_owned()) } - pub fn Hostname(url: &ServoUrl) -> USVString { + pub(crate) fn Hostname(url: &ServoUrl) -> USVString { USVString(quirks::hostname(url.as_url()).to_owned()) } - pub fn Password(url: &ServoUrl) -> USVString { + pub(crate) fn Password(url: &ServoUrl) -> USVString { USVString(quirks::password(url.as_url()).to_owned()) } - pub fn Pathname(url: &ServoUrl) -> USVString { + pub(crate) fn Pathname(url: &ServoUrl) -> USVString { USVString(quirks::pathname(url.as_url()).to_owned()) } - pub fn Protocol(url: &ServoUrl) -> USVString { + pub(crate) fn Protocol(url: &ServoUrl) -> USVString { USVString(quirks::protocol(url.as_url()).to_owned()) } - pub fn Username(url: &ServoUrl) -> USVString { + pub(crate) fn Username(url: &ServoUrl) -> USVString { USVString(quirks::username(url.as_url()).to_owned()) } - pub fn SetHash(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetHash(url: &mut ServoUrl, value: USVString) { quirks::set_hash(url.as_mut_url(), &value.0) } - pub fn SetHost(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetHost(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_host(url.as_mut_url(), &value.0); } - pub fn SetPort(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetPort(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_port(url.as_mut_url(), &value.0); } - pub fn SetSearch(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetSearch(url: &mut ServoUrl, value: USVString) { quirks::set_search(url.as_mut_url(), &value.0) } - pub fn SetPathname(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetPathname(url: &mut ServoUrl, value: USVString) { quirks::set_pathname(url.as_mut_url(), &value.0) } - pub fn SetHostname(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetHostname(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_hostname(url.as_mut_url(), &value.0); } - pub fn SetPassword(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetPassword(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_password(url.as_mut_url(), &value.0); } - pub fn SetProtocol(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetProtocol(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_protocol(url.as_mut_url(), &value.0); } - pub fn SetUsername(url: &mut ServoUrl, value: USVString) { + pub(crate) fn SetUsername(url: &mut ServoUrl, value: USVString) { let _ = quirks::set_username(url.as_mut_url(), &value.0); } } |