aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-791/+0
|
* Introduce ConstantSpec::get_value.Ms2ger2014-08-281-9/+15
| | | | I'll need it for cross-origin wrappers as well.
* Introduce the NativePropertyHooks struct.Ms2ger2014-08-281-1/+13
| | | | This will be required for the cross-origin wrapper work.
* Factor out code to call JS_DeletePropertyById2.Ms2ger2014-08-271-0/+12
| | | | I'll need to write the same code again for cross-origin wrappers.
* Throw a catchable exception from ThrowingConstructor.Ms2ger2014-08-101-2/+3
|
* Upgrade Rust.Jack Moffitt2014-08-081-1/+2
|
* Upgrade Rust.Jack Moffitt2014-08-021-33/+26
|
* Merge pull request #2933 from Ms2ger/initialize_globalJosh Matthews2014-07-271-0/+2
|\ | | | | Assert that we're handed a DOM global in initialize_global.
| * Assert that we're handed a DOM global in initialize_global.Ms2ger2014-07-261-0/+2
| |
* | Merge pull request #2932 from Ms2ger/fixme-347Manish Goregaokar2014-07-261-1/+1
|\ \ | |/ |/| Add pointers to the relevant issue for some bugs; r=jdm
| * Add pointers to the relevant issue for some bugs.Ms2ger2014-07-261-1/+1
| |
* | Add documentation for the DOM.Ms2ger2014-07-261-4/+81
|/
* Support Worker globals in global_object_for_js_object.Ms2ger2014-07-151-2/+7
|
* Introduce abstractions for global scopes.Ms2ger2014-07-151-7/+12
| | | | Part of #2811.
* Simplify the implementation of cx_for_dom_reflector.Ms2ger2014-07-151-6/+2
|
* Rename variables that refer to global objects.Ms2ger2014-07-151-2/+2
| | | | | | | | This clarifies whether those variables will point to a Window object or an arbitrary global object. Note in particular that all IDL Constructors will accept an arbitrary global object.
* Store proxy handlers in a static array rather than a hashtable per window.Ms2ger2014-07-121-4/+1
|
* Return a Temporary from *Binding::Wrap.Ms2ger2014-07-101-2/+2
| | | | | | Returning a JS<T> is GC-unsafe. This commit also includes some cleanup around Node and Document reflection.
* Remove deref_mut from Untraceable/Traceable (fixes #2736)Manish Goregaokar2014-07-011-3/+3
|
* Upgrade to latest Rust.Manish Goregaokar2014-06-271-4/+4
|
* Implement static attributes (fixes #1989).Ms2ger2014-06-221-0/+6
|
* Pass the NativeProperties struct to CreateInterfaceObjects2.Ms2ger2014-06-221-17/+10
| | | | This will simplify adding more kinds of properties, such as static attributes.
* Introduce a NativeProperties struct to store the properties.Ms2ger2014-06-221-0/+7
| | | | This will simplify adding more kinds of properties, such as static attributes.
* Pass the interface object-related arguments to CreateInterfaceObjects2 ↵Ms2ger2014-06-201-13/+17
| | | | | | together in an Option. This clarifies the code and fixes our support of NoInterfaceObject interfaces.
* Stop pretending that CreateInterfaceObjects2 can return the interface object.Ms2ger2014-06-201-19/+11
| | | | | | | | | | | | | | | We do not currently support the case of a non-callback interface that doesn't have an interface prototype object. (This case is not allowed by the WebIDL specification; it was added to Gecko to allow feature-detecting the URL interface. See <https://bugzilla.mozilla.org/show_bug.cgi?id=1026720>.) It follows that, if we call CreateInterfaceObjects2 at all, we will call it with a protoClass argument, so there is no reason to use a nullable pointer type for that argument. Moreover, if we had actually supported that case, the returned interface object would have been stored in the interface prototype object cache, to ill effect.
* Handle JSAPI OOM failures by task failure as soon as possible.Ms2ger2014-06-201-57/+25
| | | | | | | | | We already ensure to fail the task if GetProtoObject returns null, as we don't have a useful way to handle OOM, and we don't wish to thread the failure through to some place where we could handle it in a useful way. Unfortunately, we cannot ensure through the type system that none of those functions returns null, so we use assertions to check it dynamically.
* Remove Reflectable::mut_reflector.Ms2ger2014-06-131-1/+0
|
* Use Cell for Reflector::object.Ms2ger2014-06-131-9/+12
|
* auto merge of #2633 : Ms2ger/servo/derefmut, r=jdmbors-servo2014-06-111-1/+1
|\ | | | | | | Part of #1854.
| * Use internal mutability for Window::browser_context.Ms2ger2014-06-111-1/+1
| |
* | Remove unused InitIds function.Ms2ger2014-06-111-28/+2
|/
* Bonus: Make Reflector::object private.Ms2ger2014-06-061-1/+1
|
* Fix and disable some compile warnings.Ms2ger2014-06-061-0/+1
|
* Store a slice in ConstantSpec, rather than a raw pointer.Ms2ger2014-06-061-3/+3
|
* Remove the pointless terminator from ConstantSpec slices.Ms2ger2014-06-061-13/+6
|
* Pass slices to CreateInterfaceObjects2 rather than raw pointers.Ms2ger2014-06-061-41/+62
|
* Squash a warning about deriving traits on a struct that contains a raw pointer.Ms2ger2014-06-061-0/+1
|
* Upgrade Rust.Jack Moffitt2014-06-051-2/+2
|
* "JS<T>::from_raw" should accept "*T" instead of "*mut T"Tetsuharu OHZEKI2014-05-311-2/+2
|
* Make GetProtoOrIfaceArray return the actual type.Ms2ger2014-05-261-2/+2
|
* Use *mut T for the T* pointers in SpiderMonkey.Ms2ger2014-05-261-81/+81
|
* Update Rust.Ms2ger2014-05-221-4/+4
|
* Use JS_ObjectToOuterObject in wrap callbacks.Ms2ger2014-05-151-27/+4
|
* Instate a pre-wrap hook that outerizes its argument, to satisfy an ↵Ms2ger2014-05-141-0/+19
| | | | undocumented JSAPI requirement.
* Use a single JSContext per JSRuntime.Ms2ger2014-05-051-1/+4
| | | | | | | | | | The long-term plan for SpiderMonkey is to eliminate JSContexts by merging (most of) it into JSRuntime, so to future-proof our code, we should avoid creating multiple JSContexts for the same JSRuntime. However, this implies we'll have to use the same JSContext for objects in different compartments, so we need to enter compartments. This is done by using the with_compartment function.
* Address review comments.Josh Matthews2014-05-031-4/+4
|
* Address review comments.Josh Matthews2014-05-031-0/+3
|
* Remove all root collections.Josh Matthews2014-05-031-5/+3
|
* Root Temporary values for the duration of their lifetime.Josh Matthews2014-05-031-4/+7
|
* s/Unrooted/Temporary/gJosh Matthews2014-05-031-4/+4
|