aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Stop pretending to do anything except eagerly report pending exceptions ↵Josh Matthews2015-01-141-27/+3
| | | | after invoking a callback.
* Add handling for unreported exceptions when invoking callback objects.Josh Matthews2015-01-141-7/+47
|
* Remove RethrowContentExceptions and related infrastructure.Ms2ger2015-01-102-35/+13
| | | | We do not intend to implement the DOM in JS, so this code isn't necessary.
* Make StructuredCloneData an opaque struct.Ms2ger2015-01-101-4/+2
|
* Implement StructuredCloneData::read.Ms2ger2015-01-101-1/+15
|
* Implement StructuredCloneData::write.Ms2ger2015-01-101-0/+28
|
* Create a StructuredCloneData struct to encapsulate the result of a ↵Ms2ger2015-01-101-0/+12
| | | | structured clone.
* auto merge of #4575 : mttr/servo/warnings, r=jdmbors-servo2015-01-083-19/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: * This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary. * This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to). ``` css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default css/matching.rs:72 this_as_query.equiv(other) ^~~~~~~~~~~~ css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> { ```
| * Fix `renamed to slice::from_raw_buf` warningMatthew Rasmus2015-01-081-11/+10
| |
| * Fix `non_upper_case_globals` warningsMatthew Rasmus2015-01-082-8/+8
| |
* | auto merge of #4566 : mattnenterprise/servo/globalref-by-value, r=Ms2gerbors-servo2015-01-081-1/+1
|\ \
| * | Fixes #4164 Make Constructor and new functions take GlobalRef by valueMatt McCoy2015-01-071-1/+1
| | |
* | | auto merge of #4541 : Manishearth/servo/ban-stuff, r=jdmbors-servo2015-01-081-0/+1
|\ \ \ | |_|/ |/| | | | | Didn't do the `Vec<Temporary<T>>` banning since we might want to whitelist something there. I'll work on that next.
| * | Mention MutHeap in DESIGN.mdManish Goregaokar2015-01-041-0/+1
| | |
* | | auto merge of #4069 : guillaumebort/servo/fix/3936, r=jdmbors-servo2015-01-083-4/+28
|\ \ \
| * | | Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)Guillaume Bort2015-01-073-4/+28
| | |/ | |/|
* / | Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-086-67/+103
|/ /
* | Qualify JSGCTraceKind.Ms2ger2015-01-041-2/+2
| |
* | Slice some fixed-size arrays.Ms2ger2015-01-041-1/+1
|/
* Fix obsolete format traits.Ms2ger2015-01-021-2/+2
| | | | They are to be removed from the language in the next rust upgrade.
* auto merge of #4526 : servo/servo/deref-1, r=Manishearthbors-servo2015-01-027-53/+56
|\ | | | | | | This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
| * Construct a new JSRef in Root::r().Ms2ger2015-01-021-1/+4
| |
| * Rename GlobalRoot::root_ref() to GlobalRoot::r() for consistency.Ms2ger2015-01-013-4/+4
| |
| * Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-013-4/+4
| | | | | | | | This changes those calls that were already sound.
| * Rename Root::root_ref() to Root::r().Ms2ger2015-01-013-16/+16
| | | | | | | | | | As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
| * Remove the 'b lifetime from Root.Ms2ger2015-01-014-27/+27
| | | | | | | | | | It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
| * Remove the 'a lifetime from Root.Ms2ger2015-01-014-27/+27
| | | | | | | | | | It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
* | Stop using ptr.is_not_null() in script.Ms2ger2015-01-015-21/+21
|/ | | | | This method is deprecated in rust master; removing its users in advance will make a future rust upgrade smoother.
* use str to_jsval() nowyodalee2015-01-012-9/+2
| | | | | | | | xmlhttprequest.rs, CodegenRust.py replace into_string().to_jsval() to to_jsval() conversions.rs DOMString to_jsval() use as_slice().tojsval() now
* add str ToJSValConvertible for str typeyodalee2014-12-311-1/+14
|
* Codegen style fixBruno de Oliveira Abinader2014-12-301-32/+47
|
* Codegen empty lines fixBruno de Oliveira Abinader2014-12-301-42/+34
|
* Codegen indent fixesBruno de Oliveira Abinader2014-12-301-5/+5
|
* Codegen whitespace fixesBruno de Oliveira Abinader2014-12-301-362/+362
|
* auto merge of #4057 : jdm/servo/refcountdom, r=Ms2gerbors-servo2014-12-294-22/+190
|\ | | | | | | | | | | | | | | This replaces the specialized TrustedXHRAddress and TrustedWorkerAddress code that was used for the same purpose. A non-zero refcount pins the given DOM object's reflector and prevents it from being GCed even when there are no other outstanding references visible to SpiderMonkey. This will enable us to implement asynchronous operations that refer to particular DOM objects (such as "queue a task to fire a simple event named load at the iframe element" from the spec) safely and conveniently, and paves the way for things like asynchronous network responses. Some concerns about the resulting size of XHR progress messages have been expressed, but I believe optimizations to reduce that can be implemented in subsequent PRs. r? @Ms2ger - note in particular the changes to the worker lifetime code. I couldn't figure out how to achieve an identical lifetime to the previous addref/release pairing, and I also was having trouble figuring out why the existing setup was safe. The new implementation now holds the main script task Worker object alive via the TrustedWorkerAddress field in the dedicated worker global scope, which is a significant difference.
| * Force all messages to worker tasks to send a TrustedWorkerAddress along with ↵Josh Matthews2014-12-293-11/+23
| | | | | | | | the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
| * Allow refcounting arbitrary DOM objects in concert with the GC to enable ↵Josh Matthews2014-12-293-20/+176
| | | | | | | | safe, asynchronous/cross-task references to pinned objects.
* | Add support for named deleterBruno de Oliveira Abinader2014-12-291-2/+43
| | | | | | | | Closes #4469.
* | Added readonly flag for CSSStyleDeclarationProgramFOX2014-12-281-1/+2
|/
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-271-1/+4
|\ | | | | | | | | | | Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
| * Add inheritance-checking lintManish Goregaokar2014-12-271-1/+4
| |
* | script: to_string() -> into_string()Manish Goregaokar2014-12-273-4/+4
|/
* auto merge of #4467 : servo/servo/dataset, r=Ms2gerbors-servo2014-12-252-9/+32
|\
| * Implement dummy getOwnPropertyNames and enumerate traps.Ms2ger2014-12-242-3/+16
| |
| * Correct the generated code for NamedSetter calls.Bruno de Oliveira Abinader2014-12-231-1/+8
| |
| * Use the custom defineProperty trap when it exists.Bruno de Oliveira Abinader2014-12-231-2/+5
| |
| * Call the NamedGetter method from the get trap in proxy bindings.Bruno de Oliveira Abinader2014-12-231-3/+3
| |
* | This fixes #4166. throw_dom_exception will take the GlobalRef by value, and ↵Matt McCoy2014-12-242-3/+3
| | | | | | | | all generated code will pass it by value.
* | Replace XHR events for generic ones in ScriptTaskthiagopnts2014-12-231-1/+1
|/ | | | | | fixup! Replace XHR events for generic ones in ScriptTask fixup! Replace XHR events for generic ones in ScriptTask
* Revert PR #4038 for causing WPT failures.Ms2ger2014-12-231-16/+6
|