diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-08 14:02:16 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-11 14:50:58 +0200 |
commit | ea27f9d5ec580a9e743f89e92702df1d25b580ec (patch) | |
tree | 5ec15678ad1ce5cdfb0f581c47e11e99e3b12a39 /components/script/dom/servoparser.rs | |
parent | f43a14ea687166da92bf23bdd61b546a74288d04 (diff) | |
download | servo-ea27f9d5ec580a9e743f89e92702df1d25b580ec.tar.gz servo-ea27f9d5ec580a9e743f89e92702df1d25b580ec.zip |
Introduce ServoParser
This is a common inline parent to ServoHTMLParser and ServoXMLParser.
Diffstat (limited to 'components/script/dom/servoparser.rs')
-rw-r--r-- | components/script/dom/servoparser.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script/dom/servoparser.rs b/components/script/dom/servoparser.rs new file mode 100644 index 00000000000..18cd881f812 --- /dev/null +++ b/components/script/dom/servoparser.rs @@ -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(), + } + } +} |