mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
Move pending input logic to ServoParser
This commit is contained in:
parent
27f245e6ae
commit
e1a1bf46ca
4 changed files with 37 additions and 43 deletions
|
@ -2,7 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::cell::DOMRefCell;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{JS, Root};
|
||||
use dom::bindings::refcounted::Trusted;
|
||||
|
@ -147,13 +146,6 @@ impl<'a> ParserRef<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn pending_input(&self) -> &DOMRefCell<Vec<String>> {
|
||||
match *self {
|
||||
ParserRef::HTML(parser) => parser.pending_input(),
|
||||
ParserRef::XML(parser) => parser.pending_input(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_plaintext_state(&self) {
|
||||
match *self {
|
||||
ParserRef::HTML(parser) => parser.set_plaintext_state(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue