mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Rename WrapCallThisObject to wrap_call_this_object.
This commit is contained in:
parent
cfbe464428
commit
bbf1359024
2 changed files with 4 additions and 4 deletions
|
@ -116,7 +116,7 @@ impl CallbackInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wraps the reflector for `p` into the compartment of `cx`.
|
/// Wraps the reflector for `p` into the compartment of `cx`.
|
||||||
pub fn WrapCallThisObject<T: Reflectable>(cx: *mut JSContext,
|
pub fn wrap_call_this_object<T: Reflectable>(cx: *mut JSContext,
|
||||||
p: JSRef<T>) -> *mut JSObject {
|
p: JSRef<T>) -> *mut JSObject {
|
||||||
let mut obj = p.reflector().get_jsobject();
|
let mut obj = p.reflector().get_jsobject();
|
||||||
assert!(!obj.is_null());
|
assert!(!obj.is_null());
|
||||||
|
|
|
@ -4566,7 +4566,7 @@ class CGBindingRoot(CGThing):
|
||||||
'dom::bindings::trace::JSTraceable',
|
'dom::bindings::trace::JSTraceable',
|
||||||
'dom::bindings::callback::{CallbackContainer,CallbackInterface,CallbackFunction}',
|
'dom::bindings::callback::{CallbackContainer,CallbackInterface,CallbackFunction}',
|
||||||
'dom::bindings::callback::{CallSetup,ExceptionHandling}',
|
'dom::bindings::callback::{CallSetup,ExceptionHandling}',
|
||||||
'dom::bindings::callback::{WrapCallThisObject}',
|
'dom::bindings::callback::wrap_call_this_object',
|
||||||
'dom::bindings::conversions::{FromJSValConvertible, ToJSValConvertible}',
|
'dom::bindings::conversions::{FromJSValConvertible, ToJSValConvertible}',
|
||||||
'dom::bindings::conversions::{unwrap, unwrap_jsmanaged}',
|
'dom::bindings::conversions::{unwrap, unwrap_jsmanaged}',
|
||||||
'dom::bindings::conversions::DOM_OBJECT_SLOT',
|
'dom::bindings::conversions::DOM_OBJECT_SLOT',
|
||||||
|
@ -4748,7 +4748,7 @@ class CGCallback(CGClass):
|
||||||
|
|
||||||
bodyWithThis = string.Template(
|
bodyWithThis = string.Template(
|
||||||
setupCall+
|
setupCall+
|
||||||
"let thisObjJS = WrapCallThisObject(s.GetContext(), thisObj);\n"
|
"let thisObjJS = wrap_call_this_object(s.GetContext(), thisObj);\n"
|
||||||
"if thisObjJS.is_null() {\n"
|
"if thisObjJS.is_null() {\n"
|
||||||
" return Err(FailureUnknown);\n"
|
" return Err(FailureUnknown);\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue