mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Modify script
to prevent further violations of snake_case
This commit is contained in:
parent
2a594821ba
commit
f7db4b7f80
135 changed files with 205 additions and 54 deletions
|
@ -743,7 +743,7 @@ fn parse_open_feature_boolean(tokenized_features: &IndexMap<String, String>, nam
|
|||
// This is only called from extern functions,
|
||||
// there's no use using the lifetimed handles here.
|
||||
// https://html.spec.whatwg.org/multipage/#accessing-other-browsing-contexts
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe fn GetSubframeWindowProxy(
|
||||
cx: *mut JSContext,
|
||||
proxy: RawHandleObject,
|
||||
|
@ -797,7 +797,7 @@ unsafe fn GetSubframeWindowProxy(
|
|||
None
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe extern "C" fn getOwnPropertyDescriptor(
|
||||
cx: *mut JSContext,
|
||||
proxy: RawHandleObject,
|
||||
|
@ -828,7 +828,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor(
|
|||
true
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe extern "C" fn defineProperty(
|
||||
cx: *mut JSContext,
|
||||
proxy: RawHandleObject,
|
||||
|
@ -1044,7 +1044,7 @@ unsafe extern "C" fn delete_xorigin(
|
|||
throw_security_error(cx)
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe extern "C" fn getOwnPropertyDescriptor_xorigin(
|
||||
cx: *mut JSContext,
|
||||
proxy: RawHandleObject,
|
||||
|
@ -1056,7 +1056,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor_xorigin(
|
|||
found && getOwnPropertyDescriptor(cx, proxy, id, desc)
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe extern "C" fn defineProperty_xorigin(
|
||||
cx: *mut JSContext,
|
||||
_: RawHandleObject,
|
||||
|
@ -1067,7 +1067,7 @@ unsafe extern "C" fn defineProperty_xorigin(
|
|||
throw_security_error(cx)
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(unsafe_code, non_snake_case)]
|
||||
unsafe extern "C" fn preventExtensions_xorigin(
|
||||
cx: *mut JSContext,
|
||||
_: RawHandleObject,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue