diff options
author | Jack Moffitt <jack@metajack.im> | 2014-08-28 09:34:23 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-09-08 20:21:42 -0600 |
commit | c6ab60dbfc6da7b4f800c9e40893c8b58413960c (patch) | |
tree | d1d74076cf7fa20e4f77ec7cb82cae98b67362cb /components/script/dom/bindings/codegen/parser/external.patch | |
parent | db2f642c32fc5bed445bb6f2e45b0f6f0b4342cf (diff) | |
download | servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.tar.gz servo-c6ab60dbfc6da7b4f800c9e40893c8b58413960c.zip |
Cargoify servo
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/external.patch')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/external.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/external.patch b/components/script/dom/bindings/codegen/parser/external.patch new file mode 100644 index 00000000000..9464511a9d0 --- /dev/null +++ b/components/script/dom/bindings/codegen/parser/external.patch @@ -0,0 +1,49 @@ +--- WebIDL.py ++++ WebIDL.py +@@ -450,44 +450,8 @@ class IDLIdentifierPlaceholder(IDLObjectWithIdentifier): + + class IDLExternalInterface(IDLObjectWithIdentifier): + def __init__(self, location, parentScope, identifier): +- assert isinstance(identifier, IDLUnresolvedIdentifier) +- assert isinstance(parentScope, IDLScope) +- self.parent = None +- IDLObjectWithIdentifier.__init__(self, location, parentScope, identifier) +- IDLObjectWithIdentifier.resolve(self, parentScope) +- +- def finish(self, scope): +- pass +- +- def validate(self): +- pass +- +- def isExternal(self): +- return True +- +- def isInterface(self): +- return True +- +- def isConsequential(self): +- return False +- +- def addExtendedAttributes(self, attrs): +- assert len(attrs) == 0 +- +- def resolve(self, parentScope): +- pass +- +- def getJSImplementation(self): +- return None +- +- def isJSImplemented(self): +- return False +- +- def getNavigatorProperty(self): +- return None +- +- def _getDependentObjects(self): +- return set() ++ raise WebIDLError("Servo does not support external interfaces.", ++ [self.location]) + + class IDLPartialInterface(IDLObject): + def __init__(self, location, name, members, nonPartialInterface): |