servo/components/script/dom/servoparser.rs
Anthony Ramine ea27f9d5ec Introduce ServoParser
This is a common inline parent to ServoHTMLParser and ServoXMLParser.
2016-10-11 14:50:58 +02:00

18 lines
453 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* 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::reflector::Reflector;
#[dom_struct]
pub struct ServoParser {
reflector: Reflector,
}
impl ServoParser {
pub fn new_inherited() -> Self {
ServoParser {
reflector: Reflector::new(),
}
}
}