aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | Implement iframe.contentWindow.Ms2ger2014-05-141-1/+1
| |
* | Instate a pre-wrap hook that outerizes its argument, to satisfy an ↵Ms2ger2014-05-141-3/+4
| | | | | | | | undocumented JSAPI requirement.
* | Store the subpage id in the Page.Ms2ger2014-05-141-3/+8
| |
* | Add a subpage_id field to NewLayoutInfo.Ms2ger2014-05-141-0/+2
| |
* | Rename the pipeline ID fields in NewLayoutInfo.Ms2ger2014-05-141-6/+6
|/ | | | This will make the distinction clearer with the subpage ID field to be added.
* auto merge of #2425 : saneyuki/servo/window_helper, r=jdmbors-servo2014-05-141-1/+1
|\ | | | | | | Fix #2418
| * Move Window helper methods to a WindowHelpers traitTetsuharu OHZEKI2014-05-141-1/+1
| |
* | auto merge of #2420 : Ms2ger/servo/merge-Page-PageTree, r=pcwaltonbors-servo2014-05-131-108/+103
|\ \
| * | Merge Page and PageTree.Ms2ger2014-05-131-108/+103
| |/
* | fixup! Use a match rather than a for loop for last_loaded_url in ↵Ms2ger2014-05-131-1/+2
| | | | | | | | ScriptTask::load.
* | Use a match rather than a for loop for last_loaded_url in ScriptTask::load.Ms2ger2014-05-131-5/+4
|/
* Move the loading of documents in iframes into HTMLIFrameElement.Ms2ger2014-05-121-19/+19
| | | | | | | | | | | | | | | | | | | | Right now, the load is kicked off inside the parser glue. This is unfortunate for several reasons: 1) we'd like to replace the current parser (libhubbub) by our own parser, written in Rust, so code intertwined with the parser will have to be rewritten; 2) it is impossible to support dynamically (i.e. from script) created iframes in this way; 3) the code flow around loading subdocuments is complicated needlessly. This commit adds the constellation channel (on which the message to actually load the document is sent) as a field on the Page, to allow HTMLIFrameElement to access it. In rewriting the code, support for dynamically created iframes is added, and a task failure is avoided when the value of the src attribute can not be parsed.
* auto merge of #2393 : Ms2ger/servo/initialize_js_info, r=jdmbors-servo2014-05-101-13/+12
|\ | | | | | | There is no particular leason to initilaize js_info lazily.
| * Remove ScriptTask::initialize_js_info.Ms2ger2014-05-101-13/+12
| | | | | | | | There is no particular leason to initilaize js_info lazily.
* | auto merge of #2384 : saneyuki/servo/2383, r=Ms2gerbors-servo2014-05-101-4/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | Fix #2383 These changes introduce `FooEvent::new_uninitialized()` constructor. This constructor use to create `FooEvent` without calling `FooEvent::InitFooEvent`. #2383 says integrating `FooEvent::new()` and `InitFooEvent`, but we need to preserve simple `FooEvent::new_uninitialized()` for `document.createEvent()`. @jdm r?
| * Add UIEvent::new_uninitialized().Tetsuharu OHZEKI2014-05-101-4/+3
| |
* | Convert as many of Page's RefCell fields to Cell as possible (fixes #1990).Guro Bokum2014-05-091-28/+24
| |
* | auto merge of #2357 : Manishearth/servo/xhr-syncget, r=ms2gerbors-servo2014-05-091-4/+11
|\ \ | | | | | | | | | | | | | | | | | | This gets a basic synchronous GET request working. I've also tried to implement a portion of the procedures mentioned in the spec. Blocks #2282
| * | Basic synchronous GET with XHRManish Goregaokar2014-05-091-4/+11
| |/
* / Move debug functions to Window IDL.Ms2ger2014-05-091-9/+1
|/ | | | | | | | This is a cleaner way to expose those functions, and makes it possible to remove a significant amount code in rust-mozjs. The assert() function is no longer exposed, as it was unused and not very useful.
* auto merge of #2339 : glennw/servo/js-event-assert, r=jdmbors-servo2014-05-071-20/+17
|\
| * Modify node traversal loop to avoid JS roots assertion. Fixes #2321.Glenn Watson2014-05-071-20/+17
| |
* | auto merge of #2340 : glennw/servo/js-click-assert, r=jdmbors-servo2014-05-071-17/+11
|\ \
| * | Fix JS roots assertion when clicking on an elementGlenn Watson2014-05-071-17/+11
| |/
* | Force a GC when shutting down each layout task. Fixes #2342.Josh Matthews2014-05-061-4/+10
| |
* | Don't clobber the default wrapping callback.Ms2ger2014-05-061-1/+9
| |
* | Enter a compartment when calling timeout handlers.Ms2ger2014-05-051-6/+9
| |
* | Use a single JSContext per JSRuntime.Ms2ger2014-05-051-72/+93
|/ | | | | | | | | | 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.
* 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
| |