Files
archived-verso/third_party/WebIDL/callback-location.patch
Ngo Iok Ui (Wu Yu Wei) a5bdd6a104 feat: flatpak support (#91)
* Add flatpak manifest

Known issues:
- MOZJS_ARCHIVE need to link manually
- Mozangle build failed due to stddef.h missing
- script build failed due to missing WebIDL python module

* Fix mozangle and script build errors

* Update README.md

* Update gitignore

* Add libmozjs archive

* Import more granular servo crates

* Fix running error in flatpak

* Enable surfman features on Windows

* Enable mozangle features instead

* build(flatpak): add verso desktop file

---------

Co-authored-by: Wu Yuwei <Wu Yu Wei>
Co-authored-by: Jason Tsai <jason@pews.dev>
2024-08-01 02:27:39 +00:00

21 lines
1.0 KiB
Diff

--- WebIDL.py
+++ WebIDL.py
@@ -2283,7 +2283,7 @@ class IDLUnresolvedType(IDLType):
return typedefType.complete(scope).withExtendedAttributes(self.extraTypeAttributes)
elif obj.isCallback() and not obj.isInterface():
assert self.name.name == obj.identifier.name
- return IDLCallbackType(self.location, obj)
+ return IDLCallbackType(obj.location, obj)
name = self.name.resolve(scope, None)
return IDLWrapperType(self.location, obj)
@@ -6854,7 +6854,7 @@ class Parser(Tokenizer):
type = IDLTypedefType(self.getLocation(p, 1), obj.innerType,
obj.identifier.name)
elif obj.isCallback() and not obj.isInterface():
- type = IDLCallbackType(self.getLocation(p, 1), obj)
+ type = IDLCallbackType(obj.location, obj)
else:
type = IDLWrapperType(self.getLocation(p, 1), p[1])
p[0] = self.handleNullable(type, p[2])