aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace most ~"string"s with "string".to_owned().Ms2ger2014-05-041-2/+2
|
* Address review comments.Josh Matthews2014-05-031-11/+9
|
* Address review comments.Josh Matthews2014-05-031-3/+3
|
* Remove all root collections.Josh Matthews2014-05-031-36/+25
|
* Store per-ScriptTask RootCollection in TLS and use that in favour of ↵Josh Matthews2014-05-031-0/+21
| | | | per-frame collections.
* s/Unrooted/Temporary/gJosh Matthews2014-05-031-4/+4
|
* Allow controlling GC zeal via JS_GC_ZEAL environment variable.Josh Matthews2014-05-031-1/+5
|
* Move all methods on T to JSRef<T> or JS<T> as appropriate.Josh Matthews2014-05-031-2/+2
|
* Remove abstract_self.Josh Matthews2014-05-031-10/+5
|
* Move WebIDL methods to traits implemented by JSRef types.Josh Matthews2014-05-031-10/+11
|
* Remove JS::get/get_mut to enforce sound rooting practices.Josh Matthews2014-05-031-5/+7
|
* Implement safe rooting strategy via Unrooted, Root, JSRef, and JS.Josh Matthews2014-05-031-76/+83
|
* Turn on GC all the time. Fix rooting errors during parsing and storing ↵Josh Matthews2014-05-031-81/+94
| | | | timers. Fix borrow errors during tracing.
* Stop passing owned strings to fail!().Ms2ger2014-05-031-1/+1
| | | | The ~"string" expression is being removed in upstream rust.
* Use Vec for the remaining ~[T]s in script.Ms2ger2014-04-281-2/+2
|
* Make get_nodes_under_mouse return Vec.Ms2ger2014-04-281-1/+1
|
* Make PageTree::inner and PageTreeIterator::stack a Vec.Ms2ger2014-04-281-4/+4
|
* Make ScriptTask::mouse_over_targets use Vec.Ms2ger2014-04-281-2/+2
|
* Remove unused support for passing extra arguments for timers.Ms2ger2014-04-281-5/+1
|
* This batch of changes upgrades Servo to work with the Rust upgrade as ofLars Bergstrom2014-04-271-35/+36
| | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries.
* auto merge of #2210 : saneyuki/servo/query, r=jdmbors-servo2014-04-241-32/+56
|\ | | | | | | | | | | - see #356 - To decrease the conversion code, `JS<Node>` -> `Node`, I added API methods to `NodeHelpers`. - I added APIs to `Page` not `Document` because I had thought that their APIs returns the hitted nodes address in the "page".
| * Add Page::get_nodes_under_mouse().Tetsuharu OHZEKI2014-04-241-12/+26
| |
| * Add Page::hit_test().Tetsuharu OHZEKI2014-04-241-13/+26
| |
| * Add NodeHelpers::get_bounding_content_box().Tetsuharu OHZEKI2014-04-241-7/+4
| |
* | auto merge of #2200 : jdm/servo/loadfail, r=mbrubeckbors-servo2014-04-241-1/+1
|\ \ | | | | | | | | | | | | | | | ...k-related reasons. Under the hood, this requires treating the I Tried pipeline as a new load instead of a replacement, since the failure-handling code interacts poorly with the rest of the replacement code when we get a series of staggered failures over time from the various pipeline components.
| * | Make the I Tried star appear when a top-level page load fails for ↵Josh Matthews2014-04-241-1/+1
| |/ | | | | | | | | | | network-related reasons. Under the hood, this requires treating the I Tried pipeline as a new load instead of a replacement, since the failure-handling code interacts poorly with the rest of the replacement code when we get a series of staggered failures over time from the various pipeline components.
* | auto merge of #2203 : mbrubeck/servo/back-crash, r=jdmbors-servo2014-04-231-12/+9
|\ \ | |/ |/| | | | | | | | | | | This fixes two `RefCell<T> is already borrowed` failures when reloading an existing pipeline, both caused by functions trying to modify `Pipeline::url` or `ScriptTask::url` while a reference to a previous borrow is still in scope. Note: After applying this patch, there are some painting issues after navigating back.
| * Make sure RefCell borrows are temporary.Matt Brubeck2014-04-211-12/+9
| | | | | | | | | | | | This fixes two `RefCell<T> is already borrowed` failures when reloading an existing pipeline, both caused by functions trying to modify `Pipeline::url` or `ScriptTask::url` while a reference to a previous borrow is still in scope.
* | auto merge of #2209 : lpy/servo/issue2188, r=Ms2gerbors-servo2014-04-231-1/+1
|\ \ | | | | | | | | | see #2188
| * | Implement Element.localName.(fixes #2188)lpy2014-04-231-1/+1
| |/
* | auto merge of #2111 : jdm/servo/browsercontext, r=Ms2gerbors-servo2014-04-221-11/+17
|\ \ | |/ |/|
| * Remove all traces of WindowProxy. Implement basic browser context concept ↵Josh Matthews2014-04-221-11/+17
| | | | | | | | and outerizing of inner windows.
* | auto merge of #2202 : jdm/servo/scriptleak, r=Ms2gerbors-servo2014-04-211-0/+43
|\ \ | |/ |/| | | ....
| * Ensure JS-owned memory is not leaked if a script task fails. Fixes #2201.Josh Matthews2014-04-211-0/+43
| |
* | Remove JSPageInfo::js_compartment.Ms2ger2014-04-211-26/+12
|/ | | | | | | | | | | | | | A js::rust::Compartment is little more than a glorified pointer to the reflector of a window, so there's no good reason to use it. Instead, this commit passes a JS<Window> directly when it's necessary. This also means that we now have to use JS_DefineFunctions rather than Compartment::define_functions; I believe the former is clearer to the reader than the extra indirection involved in the latter calling through three reopsitories. This commit also simplifies ScriptTask::load to reuse the 'cx' local that is in scope already, rather than refetching it through js_info.
* Add transparent Traceable and Untraceable types to aid proper rooting ↵Josh Matthews2014-04-171-66/+62
| | | | practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.
* Implement Window.set/clearInterval.(fixes #2116)lpy2014-04-181-3/+9
|
* Make find_fragment_node a method of Page.Josh Matthews2014-04-091-20/+19
|
* auto merge of #2057 : Ms2ger/servo/evaluate_script, r=jdmbors-servo2014-04-071-4/+4
|\
| * Handle an exception from cx.evaluate_script more gracefully.Ms2ger2014-04-071-4/+4
| |
* | Remove trailing whitespace.Ms2ger2014-04-071-2/+2
|/
* Upgrade rust.Ms2ger2014-04-041-102/+95
|
* layout: Address review feedback.Patrick Walton2014-04-031-3/+4
|
* servo: Implement stacking contexts and allow multiple layers perPatrick Walton2014-04-031-3/+8
| | | | pipeline. This handles fixed positioning mostly correctly.
* Get rid of match statements in layout queries in script_tasklpy2014-04-021-7/+4
|
* Store Window.active_timers in a HashMapMartin Robinson2014-03-311-3/+5
| | | | | | | A HashMap allows easily looking up a timer and canceling it in Window.ClearTimeout. Fixes #1477.
* Move attributes-related functions onto JS<Element>.Ms2ger2014-03-201-4/+4
|
* Split TCast::to into TCast::to_unchecked and TCast::to.Tetsuharu OHZEKI2014-03-201-3/+3
|
* Rust upgrade for new master rebaseLars Bergstrom2014-03-181-2/+2
|
* Warning police.Josh Matthews2014-03-181-15/+15
|