aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-29 21:09:52 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-29 21:09:52 +0100
commitcfbe4644281b2b2d0fe955a2594badbef2083585 (patch)
treea70177379b653084fc38d83c1cc10df5af10699a /components/script/dom
parentdac0190b6d47fcc58919e13a0b04a72231292538 (diff)
downloadservo-cfbe4644281b2b2d0fe955a2594badbef2083585.tar.gz
servo-cfbe4644281b2b2d0fe955a2594badbef2083585.zip
Rename GetCallableProperty to get_callable_property.
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/callback.rs3
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
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)