diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 3 | ||||
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index dd0bf8bf65c..ef3819438cb 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -95,7 +95,8 @@ impl CallbackInterface { /// Returns the property with the given `name`, if it is a callable object, /// or `Err(())` otherwise. If it returns `Err(())`, a JSAPI exception is /// pending. - pub fn GetCallableProperty(&self, cx: *mut JSContext, name: &str) -> Result<JSVal, ()> { + pub fn get_callable_property(&self, cx: *mut JSContext, name: &str) + -> Result<JSVal, ()> { let mut callable = UndefinedValue(); unsafe { let name = CString::from_slice(name.as_bytes()); diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index b723f16dca0..2fbda77ad3d 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -5083,7 +5083,7 @@ class CallbackOperationBase(CallbackMethod): "methodName": self.methodName } getCallableFromProp = string.Template( - 'match self.parent.GetCallableProperty(cx, "${methodName}") {\n' + 'match self.parent.get_callable_property(cx, "${methodName}") {\n' ' Err(_) => return Err(FailureUnknown),\n' ' Ok(callable) => callable,\n' '}').substitute(replacements) |