Introduce ServoParser

This is a common inline parent to ServoHTMLParser and ServoXMLParser.
This commit is contained in:
Anthony Ramine 2016-10-08 14:02:16 +02:00
parent f43a14ea68
commit ea27f9d5ec
8 changed files with 43 additions and 11 deletions

View file

@ -7,5 +7,5 @@
// FIXME: find a better way to hide this from content (#3688)
[NoInterfaceObject, Exposed=(Window,Worker)]
interface ServoHTMLParser {
interface ServoHTMLParser : ServoParser {
};

View file

@ -0,0 +1,10 @@
/* 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/. */
// This interface is entirely internal to Servo, and should not be accessible to
// web pages.
[Exposed=(Window,Worker),
Inline]
interface ServoParser {};

View file

@ -6,6 +6,6 @@
// web pages.
[NoInterfaceObject, Exposed=(Window,Worker)]
interface ServoXMLParser {
interface ServoXMLParser : ServoParser {
};