aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser
diff options
context:
space:
mode:
authorsagudev <16504129+sagudev@users.noreply.github.com>2023-02-19 13:35:58 +0100
committersagudev <16504129+sagudev@users.noreply.github.com>2023-02-19 13:35:58 +0100
commit6f563830d12586439380dedc8f58cf1af6f9b81a (patch)
treeb6ab139da85b163edb4a332983cb9c7eae35e07f /components/script/dom/bindings/codegen/parser
parent8e300ca5bd6ca159992750ca3f5b281123c045f1 (diff)
downloadservo-6f563830d12586439380dedc8f58cf1af6f9b81a.tar.gz
servo-6f563830d12586439380dedc8f58cf1af6f9b81a.zip
Fix WebIDL.py patches
Diffstat (limited to 'components/script/dom/bindings/codegen/parser')
-rw-r--r--components/script/dom/bindings/codegen/parser/abstract.patch14
-rw-r--r--components/script/dom/bindings/codegen/parser/debug.patch18
-rw-r--r--components/script/dom/bindings/codegen/parser/inline.patch14
3 files changed, 20 insertions, 26 deletions
diff --git a/components/script/dom/bindings/codegen/parser/abstract.patch b/components/script/dom/bindings/codegen/parser/abstract.patch
index 180e345b61b..316ed8ce0a1 100644
--- a/components/script/dom/bindings/codegen/parser/abstract.patch
+++ b/components/script/dom/bindings/codegen/parser/abstract.patch
@@ -1,12 +1,10 @@
--- WebIDL.py
+++ WebIDL.py
-@@ -1883,7 +1883,8 @@ class IDLInterface(IDLInterfaceOrNamespace):
- identifier == "LegacyUnenumerableNamedProperties" or
- identifier == "RunConstructorInCallerCompartment" or
- identifier == "WantsEventListenerHooks" or
-- identifier == "Serializable"):
-+ identifier == "Serializable" or
-+ identifier == "Abstract"):
+@@ -1987,6 +1987,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
+ or identifier == "RunConstructorInCallerCompartment"
+ or identifier == "WantsEventListenerHooks"
+ or identifier == "Serializable"
++ or identifier == "Abstract"
+ ):
# Known extended attributes that do not take values
if not attr.noArguments():
- raise WebIDLError("[%s] must take no arguments" % identifier,
diff --git a/components/script/dom/bindings/codegen/parser/debug.patch b/components/script/dom/bindings/codegen/parser/debug.patch
index a4f8739000d..ffab062d801 100644
--- a/components/script/dom/bindings/codegen/parser/debug.patch
+++ b/components/script/dom/bindings/codegen/parser/debug.patch
@@ -1,12 +1,10 @@
--- WebIDL.py
+++ WebIDL.py
-@@ -7382,7 +7382,8 @@ class Parser(Tokenizer):
- self.parser = yacc.yacc(module=self,
- outputdir=outputdir,
- tabmodule='webidlyacc',
-- errorlog=logger
-+ errorlog=logger,
-+ debug=False
- # Pickling the grammar is a speedup in
- # some cases (older Python?) but a
- # significant slowdown in others.
+@@ -8827,6 +8827,7 @@ class Parser(Tokenizer):
+ module=self,
+ outputdir=outputdir,
+ errorlog=logger,
++ debug=False,
+ write_tables=False,
+ # Pickling the grammar is a speedup in
+ # some cases (older Python?) but a
diff --git a/components/script/dom/bindings/codegen/parser/inline.patch b/components/script/dom/bindings/codegen/parser/inline.patch
index 46971ce5067..ad4d0f8f959 100644
--- a/components/script/dom/bindings/codegen/parser/inline.patch
+++ b/components/script/dom/bindings/codegen/parser/inline.patch
@@ -1,12 +1,10 @@
--- WebIDL.py
+++ WebIDL.py
-@@ -1884,7 +1884,8 @@ class IDLInterface(IDLInterfaceOrNamespace):
- identifier == "RunConstructorInCallerCompartment" or
- identifier == "WantsEventListenerHooks" or
- identifier == "Serializable" or
-- identifier == "Abstract"):
-+ identifier == "Abstract" or
-+ identifier == "Inline"):
+@@ -1988,6 +1988,7 @@ class IDLInterface(IDLInterfaceOrNamespace):
+ or identifier == "WantsEventListenerHooks"
+ or identifier == "Serializable"
+ or identifier == "Abstract"
++ or identifier == "Inline"
+ ):
# Known extended attributes that do not take values
if not attr.noArguments():
- raise WebIDLError("[%s] must take no arguments" % identifier,