aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #8918 - Ms2ger:trace, r=noxbors-servo2015-12-111-16/+10
|\ | | | | | | | | | | | | | | Initialize the slots of global objects before a possible GC. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8918) <!-- Reviewable:end -->
| * Initialize the slots of global objects before a possible GC.Ms2ger2015-12-101-16/+10
| |
* | Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-092-4/+3
|/
* Auto merge of #8827 - jdm:debugmozjscrash, r=Ms2gerbors-servo2015-12-081-22/+9
|\ | | | | | | | | | | | | | | | | | | Avoid a null-dereference using debug mozjs builds. This matches the e… …quivalent code upstream in Gecko. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8827) <!-- Reviewable:end -->
| * Avoid a null-dereference using debug mozjs builds. This matches the ↵Josh Matthews2015-12-071-22/+9
| | | | | | | | equivalent code upstream in Gecko.
* | Auto merge of #8862 - fstr:move_workerid, r=Ms2gerbors-servo2015-12-082-3/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved WorkerId type to devtools_traits Fixes #8846. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862) <!-- Reviewable:end -->
| * | Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-072-3/+4
| |/
* / Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-2/+38
|/
* Implement [Unforgeable]Anthony Ramine2015-12-023-78/+243
| | | | | | | | | | | | | | | | | | | | | | This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. Given the unforgeable holder object has the same prototype as actual instances of the interface, the finalize hook needs to check its slot pointer for nullity before dropping it. The new failing test isn't related to Unforgeable attributes, but to the fact that all Document instances currently have a Location, even if their window isn't in a browsing context.
* Remove unused slot in prototype object (fixes #8588)Anthony Ramine2015-11-302-30/+2
|
* Remove `#[allow(raw_pointer_derive)]` attributesBrandon Fairchild2015-11-273-5/+1
| | | | | | The attributes are unused. Fixes #8699.
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-7/+7
| | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* Remove an unused trait.Ms2ger2015-11-201-42/+0
|
* Auto merge of #8599 - jdm:e10s-redux, r=metajackbors-servo2015-11-201-2/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | compositing: Split Servo up into multiple sandboxed processes. Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch. Rebase of #6884. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8599) <!-- Reviewable:end -->
| * compositing: Split Servo up into multiple sandboxed processes.Patrick Walton2015-11-191-2/+8
| | | | | | | | | | Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch.
* | Auto merge of #8589 - vegayours:8360_reduce_node_unique_id_size, r=eefriedmanbors-servo2015-11-201-1/+2
|\ \ | |/ |/| | | | | | | | | | | Reduce node.unique_id size <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8589) <!-- Reviewable:end -->
| * reduce node.unique_id sizeAleksandr Likhanov2015-11-191-1/+2
| | | | | | | | | | fix sizeof unittest update Cargo.lock
* | Auto merge of #8604 - Ms2ger:unused-import, r=jdmbors-servo2015-11-191-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove unused import. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8604) <!-- Reviewable:end -->
| * | Remove unused import.Ms2ger2015-11-191-1/+0
| | |
* | | Rename a confusing argument.Ms2ger2015-11-191-2/+2
|/ /
* | Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdmbors-servo2015-11-192-2/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | Split ConstellationMsg into ScriptMsg and CompositorMsg Fixes #8356. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530) <!-- Reviewable:end -->
| * Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-162-2/+4
| |
* | Rustfmt some of script.Ms2ger2015-11-1816-271/+398
|/
* Auto merge of #8477 - asajeffrey:opaque-domstring, r=asajeffreybors-servo2015-11-132-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Opaque DOMString This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper). The changes are: * Replacing DOMString(foo) by DOMString::from(foo). * Replacing foo.0 by String::from(foo). * Adding functions clear, push_str and extend for in-place mutation of DOMStrings. * Replacing DOMString by String in other threads (devtools, storage and filereader). * Making DOMString implement !Send. * Removing the pub attribute from the contents of DOMString. This enables experimenting with other string representations in the DOM. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8477) <!-- Reviewable:end -->
| * Code generation uses DOMString::from("...") rather than ↵Alan Jeffrey2015-11-121-1/+1
| | | | | | | | DOMString("...".to_owned()).
| * Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-1/+2
| | | | | | | | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* | Auto merge of #8147 - nox:weakref, r=Ms2gerbors-servo2015-11-136-5/+225
|\ \ | | | | | | | | | | | | | | | | | | | | | Implement weak-referenceable JS-managed objects <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8147) <!-- Reviewable:end -->
| * | Introduce trait WeakReferenceableAnthony Ramine2015-11-126-5/+225
| | | | | | | | | | | | This allows to take weak references of JS-managed DOM objects.
* | | Auto merge of #8492 - jdm:e10s-timer-events, r=jdmbors-servo2015-11-132-10/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | script: Make timer events e10s-safe. Closes #8235. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8492) <!-- Reviewable:end -->
| * | script: Make timer events e10s-safe.Patrick Walton2015-11-122-10/+2
| |/ | | | | | | Closes #8235.
* | Auto merge of #8498 - nox:fix-variadic-and-default-arguments, r=jdmbors-servo2015-11-131-9/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly handle variadic arguments preceded by default values I broke that in #8197. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8498) <!-- Reviewable:end -->
| * | Properly handle variadic arguments preceded by default valuesAnthony Ramine2015-11-121-9/+10
| |/ | | | | | | I broke that in #8197.
* | Use the conversion traits from js.Ms2ger2015-11-123-551/+75
| |
* | Use throw_type_error and throw_range_error from js.Ms2ger2015-11-124-91/+22
|/
* Implement WebIDL sequence return value using `JS_NewArrayObject1`Emilio Cobos Álvarez2015-11-111-22/+13
| | | | | | | | This commits changes the creation of the array to use the length, and sets the elements later. Reference implementation: https://github.com/mozilla/gecko-dev/blob/07ed19e582faf40f5f72567169db62452f6c6dc9/js/xpconnect/public/nsTArrayHelpers.h#L16
* Implement WebIDL sequence return valuesEmilio Cobos Álvarez2015-11-112-3/+40
|
* Support variadic interface arguments (fixes #8159)Anthony Ramine2015-11-113-61/+67
| | | | | We use a RootedVec value in codegen, of which we use the `r()` method to pass `&[&T]` to the interface methods.
* Remove unused parameter in instantiateJSToNativeConversionTemplate()Anthony Ramine2015-11-111-16/+7
|
* Clean up the conversion routinesAnthony Ramine2015-11-115-48/+36
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* XHR timeouts use same abstraction as scripts timers. (fixes #3396)benshu2015-11-111-1/+19
|
* Implement attribute restyle hints.Bobby Holley2015-11-101-0/+2
| | | | Fixes #6942.
* Factor the name-related fields of Attr into a struct and move it to style.Bobby Holley2015-11-091-1/+2
|
* Hoist AttrValue into style.Bobby Holley2015-11-091-0/+2
|
* Auto merge of #8227 - asajeffrey:versioned_dom, r=eefriedmanbors-servo2015-11-101-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Versioned dom This PR adds versioning to the DOM. There are now node.get_version and node.get_descendent_version methods that return a counter that is bumped when the node is dirtied. This is used to implement cache invalidation for caching HTMLCollection state. Caching HTMCollections gets a 1000x speedup in the Dromaeo DOM query tests. Addresses https://github.com/servo/servo/issues/6901, https://github.com/servo/servo/issues/3381 and https://github.com/servo/servo/issues/1916. Replaces PR https://github.com/servo/servo/pull/6927. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8227) <!-- Reviewable:end -->
| * Made QualName traceable by JS.Alan Jeffrey2015-11-061-2/+2
| |
* | Auto merge of #8286 - eefriedman:no-move, r=noxbors-servo2015-11-084-19/+19
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary uses of #[no_move] The patch makes RootCollection a bit safer by making the StackRootTLS hold it in place. RootedVec was doing an extremely delicate dance and just hoping nobody messed it up; switch to a Box to be safe. CodeGenRust seemed to be using no_move for no particularly good reason. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8286) <!-- Reviewable:end -->
| * Clean up some code related to #[no_move].Eli Friedman2015-11-074-19/+19
| | | | | | | | | | | | | | | | The patch makes RootCollection a bit safer by making the StackRootTLS hold it in place. The use of no_move in CodeGenRust was leftover from when roots couldn't be moved.
* | Implement cancellable runnables.Josh Matthews2015-11-061-1/+2
| | | | | | | | Additionally, make image load events cancellable. Resolves #7731.
* | Implement the overrideMimeType method for XMLHttpRequestJitendra Jain2015-11-051-0/+2
| |
* | Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-045-9/+16
| | | | | | | | | | | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.