aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py5
-rw-r--r--components/script/dom/webidls/BrowserElement.webidl2
2 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 3748917038f..7100a8c6f82 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4918,9 +4918,6 @@ class CGCallback(CGClass):
args.append(Argument("ExceptionHandling", "aExceptionHandling",
"ReportExceptions"))
- args[0] = Argument(args[0].argType, args[0].name, args[0].default)
- method.args[2] = args[0]
-
# And now insert our template argument.
argsWithoutThis = list(args)
args.insert(0, Argument("JSRef<T>", "thisObj"))
@@ -5235,7 +5232,7 @@ class CallbackMethod(CallbackMember):
replacements["argv"] = "argv.as_mut_ptr()"
replacements["argc"] = "argc"
else:
- replacements["argv"] = "nullptr"
+ replacements["argv"] = "ptr::null_mut()"
replacements["argc"] = "0"
return string.Template("${getCallable}"
"let ok = unsafe {\n"
diff --git a/components/script/dom/webidls/BrowserElement.webidl b/components/script/dom/webidls/BrowserElement.webidl
index a0db071972e..f36f3b8a408 100644
--- a/components/script/dom/webidls/BrowserElement.webidl
+++ b/components/script/dom/webidls/BrowserElement.webidl
@@ -4,7 +4,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-//callback BrowserElementNextPaintEventCallback = void ();
+callback BrowserElementNextPaintEventCallback = void ();
//dictionary BrowserElementDownloadOptions {
// DOMString? filename;