mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Introduce ServoParser
This is a common inline parent to ServoHTMLParser and ServoXMLParser.
This commit is contained in:
parent
f43a14ea68
commit
ea27f9d5ec
8 changed files with 43 additions and 11 deletions
18
components/script/dom/servoparser.rs
Normal file
18
components/script/dom/servoparser.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* 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(),
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue