aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorNgo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>2024-06-15 13:22:42 +0900
committerGitHub <noreply@github.com>2024-06-15 04:22:42 +0000
commit8eed3b442b214f678b80dbcc7dca07eeaa1e26ff (patch)
treef8a232e86616e8e5fd234e7bbb32bed4ff7077f2 /components/script/dom/bindings/codegen
parent19067366df28c9131dcbc436bc96a27e64e0a194 (diff)
downloadservo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.tar.gz
servo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.zip
Update WebIDL.py (#32495)
* Update WebIDL.py * Update WebIDL.py * Add builtin-array.patch * Fix CodegenRust.py and Configuration.py * Fix missing downcasts * mach fmt * Update check and comment to explain why we need this check * Update Global of DissimilarOriginWindow.webidl
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r--components/script/dom/bindings/codegen/Configuration.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py
index a220df2b73d..81ebe68d8bb 100644
--- a/components/script/dom/bindings/codegen/Configuration.py
+++ b/components/script/dom/bindings/codegen/Configuration.py
@@ -76,7 +76,7 @@ class Configuration:
for key, val in filters.items():
if key == 'webIDLFile':
def getter(x):
- return x.interface.filename()
+ return x.interface.location.filename
elif key == 'hasInterfaceObject':
def getter(x):
return x.interface.hasInterfaceObject()
@@ -108,10 +108,10 @@ class Configuration:
return curr
def getEnums(self, webIDLFile):
- return [e for e in self.enums if e.filename() == webIDLFile]
+ return [e for e in self.enums if e.filename == webIDLFile]
def getTypedefs(self, webIDLFile):
- return [e for e in self.typedefs if e.filename() == webIDLFile]
+ return [e for e in self.typedefs if e.filename == webIDLFile]
@staticmethod
def _filterForFile(items, webIDLFile=""):
@@ -119,7 +119,7 @@ class Configuration:
if not webIDLFile:
return items
- return [x for x in items if x.filename() == webIDLFile]
+ return [x for x in items if x.filename == webIDLFile]
def getDictionaries(self, webIDLFile=""):
return self._filterForFile(self.dictionaries, webIDLFile=webIDLFile)
@@ -471,7 +471,7 @@ def MakeNativeName(name):
def getIdlFileName(object):
- return os.path.basename(object.location.filename()).split('.webidl')[0]
+ return os.path.basename(object.location.filename).split('.webidl')[0]
def getModuleFromObject(object):