diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-29 21:12:00 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-29 21:12:00 +0100 |
commit | bbf13590243866f1ca57a56ebd4be1d9bf04a56f (patch) | |
tree | 4265b06efdd4b69c56d11f25b9406ca875e15e5f | |
parent | cfbe4644281b2b2d0fe955a2594badbef2083585 (diff) | |
download | servo-bbf13590243866f1ca57a56ebd4be1d9bf04a56f.tar.gz servo-bbf13590243866f1ca57a56ebd4be1d9bf04a56f.zip |
Rename WrapCallThisObject to wrap_call_this_object.
-rw-r--r-- | components/script/dom/bindings/callback.rs | 4 | ||||
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index ef3819438cb..7d4cdc56802 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -116,8 +116,8 @@ impl CallbackInterface { } /// Wraps the reflector for `p` into the compartment of `cx`. -pub fn WrapCallThisObject<T: Reflectable>(cx: *mut JSContext, - p: JSRef<T>) -> *mut JSObject { +pub fn wrap_call_this_object<T: Reflectable>(cx: *mut JSContext, + p: JSRef<T>) -> *mut JSObject { let mut obj = p.reflector().get_jsobject(); assert!(!obj.is_null()); diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 2fbda77ad3d..48b147c4ebe 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -4566,7 +4566,7 @@ class CGBindingRoot(CGThing): 'dom::bindings::trace::JSTraceable', 'dom::bindings::callback::{CallbackContainer,CallbackInterface,CallbackFunction}', 'dom::bindings::callback::{CallSetup,ExceptionHandling}', - 'dom::bindings::callback::{WrapCallThisObject}', + 'dom::bindings::callback::wrap_call_this_object', 'dom::bindings::conversions::{FromJSValConvertible, ToJSValConvertible}', 'dom::bindings::conversions::{unwrap, unwrap_jsmanaged}', 'dom::bindings::conversions::DOM_OBJECT_SLOT', @@ -4748,7 +4748,7 @@ class CGCallback(CGClass): bodyWithThis = string.Template( setupCall+ - "let thisObjJS = WrapCallThisObject(s.GetContext(), thisObj);\n" + "let thisObjJS = wrap_call_this_object(s.GetContext(), thisObj);\n" "if thisObjJS.is_null() {\n" " return Err(FailureUnknown);\n" "}\n" |