mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
Move last chunk received logic to ServoParser
This commit is contained in:
parent
e1a1bf46ca
commit
881f7f4de7
4 changed files with 25 additions and 33 deletions
|
@ -9,7 +9,6 @@ use dom::servohtmlparser::ServoHTMLParser;
|
|||
use dom::servoparser::ServoParser;
|
||||
use dom::servoxmlparser::ServoXMLParser;
|
||||
use dom::window::Window;
|
||||
use std::cell::Cell;
|
||||
use std::cell::UnsafeCell;
|
||||
use std::ptr;
|
||||
|
||||
|
@ -159,12 +158,5 @@ impl<'a> ParserRef<'a> {
|
|||
ParserRef::XML(parser) => parser.parse_sync(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn last_chunk_received(&self) -> &Cell<bool> {
|
||||
match *self {
|
||||
ParserRef::HTML(parser) => parser.last_chunk_received(),
|
||||
ParserRef::XML(parser) => parser.last_chunk_received(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue