mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement WebIDL namespaces
This commit is contained in:
parent
8ba0cf30a1
commit
0b689a8a31
5 changed files with 123 additions and 30 deletions
|
@ -257,7 +257,8 @@ pub unsafe fn create_named_constructors(
|
|||
}
|
||||
}
|
||||
|
||||
unsafe fn create_object(
|
||||
/// Create a new object with a unique type.
|
||||
pub unsafe fn create_object(
|
||||
cx: *mut JSContext,
|
||||
proto: HandleObject,
|
||||
class: &'static JSClass,
|
||||
|
@ -316,7 +317,9 @@ pub unsafe fn is_exposed_in(object: HandleObject, globals: Globals) -> bool {
|
|||
globals.contains(dom_class.global)
|
||||
}
|
||||
|
||||
unsafe fn define_on_global_object(
|
||||
/// Define a property with a given name on the global object. Should be called
|
||||
/// through the resolve hook.
|
||||
pub unsafe fn define_on_global_object(
|
||||
cx: *mut JSContext,
|
||||
global: HandleObject,
|
||||
name: &[u8],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue