diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-01-05 13:55:10 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-01-05 13:55:10 +0100 |
commit | 8d633fec42f8121ead9177db266ab75303773935 (patch) | |
tree | d20f8e171196ec82497e3d50ebd1de46e4763ff0 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 143dfc879e609603839502d61bc064fba96cc80f (diff) | |
download | servo-8d633fec42f8121ead9177db266ab75303773935.tar.gz servo-8d633fec42f8121ead9177db266ab75303773935.zip |
Simplify CallSetup.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 579f84301d3..b1b7f122a88 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -6270,11 +6270,7 @@ class CGCallback(CGClass): args.insert(0, Argument(None, "&self")) argsWithoutThis.insert(0, Argument(None, "&self")) - setupCall = ("let mut s_ec = RootedObject::new_unrooted(ptr::null_mut());\n" - "let s = CallSetup::new(&mut s_ec, self, aExceptionHandling);\n" - "if s.get_context().is_null() {\n" - " return Err(JSFailed);\n" - "}\n") + setupCall = "let s = CallSetup::new(self, aExceptionHandling);\n" bodyWithThis = string.Template( setupCall + |