mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Move Parse impl of SpecifiedUrl into corresponding files.
This commit is contained in:
parent
a99ca543cd
commit
d001fd9a0a
3 changed files with 18 additions and 13 deletions
|
@ -102,6 +102,15 @@ impl SpecifiedUrl {
|
|||
}
|
||||
}
|
||||
|
||||
impl Parse for SpecifiedUrl {
|
||||
fn parse<'i, 't>(context: &ParserContext, input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
|
||||
let url = input.expect_url()?;
|
||||
Self::parse_from_string(url.as_ref().to_owned(), context)
|
||||
}
|
||||
}
|
||||
|
||||
impl Eq for SpecifiedUrl {}
|
||||
|
||||
impl MallocSizeOf for SpecifiedUrl {
|
||||
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
|
||||
// XXX: measure `serialization` once bug 1397971 lands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue