aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove all traces of Box representation from bindings. Work around file read ↵Josh Matthews2014-03-181-2/+2
| | | | runtime problem.
* Rust upgradesLars Bergstrom2014-03-181-37/+47
|
* Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*.Ms2ger2014-03-091-4/+1
|
* Use FooValue() functions.Ms2ger2014-03-091-2/+2
|
* Stop sticking a Page in the JSContext's private.Ms2ger2014-03-051-17/+1
|
* Pass &JS<Window> to some constructors.Ms2ger2014-03-041-1/+1
|
* Remove next_subpage_id argument from parse_html.(fixes #1801)lpy2014-03-041-2/+1
|
* Fix a dynamic borrow failure with iframesKeegan McAllister2014-03-031-4/+2
|
* De-@mut the script crate.Josh Matthews2014-02-281-173/+296
|
* Implement "resize" DOM Event.Tetsuharu OHZEKI2014-03-011-1/+20
| | | | | * We cannot automate this feature. * So this testcase is a manual test.
* Add url getter to Page and fix users of Page url with it.(fixes #1762)lpy2014-02-281-4/+6
|
* Remove the image loading workaround from the parser.Ms2ger2014-02-251-1/+0
|
* Remove DocumentTypeId.Ms2ger2014-02-241-2/+2
|
* Remove document::DocumentType (fixes #1730).Ms2ger2014-02-241-2/+2
|
* Remove HTMLDocument.Ms2ger2014-02-241-4/+3
|
* Implement JSManaged for DOM objects.Josh Matthews2014-02-241-79/+109
|
* Use eq() and eq_slice() less, and map_default() more.Ms2ger2014-02-161-5/+3
|
* Restore failure handlingKeegan McAllister2014-02-121-3/+8
| | | | | | | We probably leak some threads and resources, e.g. when the script task crashes and doesn't get a chance to send layout data back to layout to be deallocated. Not tested with iframes yet.
* This is implement Hover Event. If over element, currently full reflow. after ↵HyunJune Kim2014-02-101-3/+74
| | | | PR, will make partial reflow.
* compositor can get mouse point from window eventHyunJune Kim2014-02-101-1/+2
|
* Reduce copying on parse_url() call sites.Tetsuharu OHZEKI2014-02-091-1/+1
|
* Rename make_url/current_url to parse_url/base_url, to align with spec ↵Simon Sapin2014-02-011-4/+4
| | | | terminology.
* Add a LoadComplete message so that script informs the constellation,Lars Bergstrom2014-01-301-3/+5
| | | | | | | which can then inform the compositor (and anyone else, later) about the completion of loading a page. This is important for ref tests, which should not emit a PNG until load has completed, even if we perform a composite before then.
* Implement document.URL & document.documentURIBruno de Oliveira Abinader2014-01-301-1/+1
| | | | | | | | Specs: http://dom.spec.whatwg.org/#dom-document-url http://dom.spec.whatwg.org/#dom-document-documenturi This is a sub-task for #1428.
* Move script::dom::namespace into util, in order to use it from style later.Simon Sapin2014-01-251-1/+1
|
* Change `get_attr()` to `get_attr_val_for_layout()`.Jack Moffitt2014-01-221-6/+6
| | | | | | | | The old code was used by both layout and script, but was erroneously borrowing for the layout case (which causes parallelism problems). script now uses only `value_ref()` or `get_attribute()`, and layout now has its own unsafe version that dances around the borrows of `@mut Attr`.
* When `window.close()` is called, we should just ask the compositor to exitLars Bergstrom2014-01-151-6/+7
| | | | | | | | | normally. The old code made the mistake of attempting to shutdown the associated pipelines itself, which caused race conditions with the constellation and compositor, as they expect to be able to drain their message queues before exiting.
* script: Stop trusting pointers to DOM nodes that layout provides.Patrick Walton2014-01-141-22/+22
| | | | | | | Pointers to DOM nodes from layout could go stale if incremental reflow does not correctly destroy dead nodes. Therefore, we ask the JavaScript garbage collector to verify that each DOM node is indeed a valid pointer before calling event handlers on it, and fail otherwise.
* add names for all servo spawned taskszmike2014-01-131-1/+2
| | | | | | | | * add servo_util::task::{spawn_named,spawn_with_named} functions * add name param for spawn_listener and spawn_conversation functions this should resolve #1169
* Upgrade to latest Rust.Jack Moffitt2014-01-121-83/+46
|
* auto merge of #1409 : pcwalton/servo/fix-get-bounding-client-rect, r=jdmbors-servo2014-01-071-20/+15
|\ | | | | | | | | | | This fixes the `getBoundingClientRect()` content test. r? @jdm
| * script: Don't do anything before the window size comes in.Patrick Walton2013-12-131-20/+15
| | | | | | | | This fixes the `getBoundingClientRect()` content test.
* | Pass a Namespace to Element::get_attr.Ms2ger2013-12-231-2/+3
| |
* | layout: Stop exposing raw `Element` types to layout as well.Patrick Walton2013-12-171-1/+0
| | | | | | | | | | This should make layout memory-safe as is, though we will need to do more stuff for incremental reflow and parallelism.
* | script: Eliminate the phantom type in favor of just whitelisting methodsPatrick Walton2013-12-171-4/+3
| | | | | | | | | | | | | | that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
* | script: Make trees less genericPatrick Walton2013-12-171-1/+1
|/
* layout: Stop going to the DOM for iframe sizesPatrick Walton2013-12-131-4/+4
|
* constellation: Stop using futures for frame sizes.Patrick Walton2013-12-131-44/+66
| | | | | | This will allow us to stop going to the DOM in order to handle iframe sizing. Instead we can just store the pipeline and frame IDs of iframes inside the flow tree itself.
* Mark some rust files as non-executable.Ms2ger2013-12-131-0/+0
|
* Allow setting id, class, style without a full reflowKeegan McAllister2013-12-121-3/+0
| | | | | | | | Instead we do selector matching again, then diff the style structs to set the "restyle damage" bits which are used to prune reflow traversals. Also don't force a reflow when timers finish, because individual DOM methods should already take care of that.
* Get rid of reflow_allKeegan McAllister2013-12-121-18/+10
| | | | This refactoring should not alter behavior.
* Fix #1264: support namespaced attribute selectors.Simon Sapin2013-12-101-2/+2
|
* Reflow with full style damage when content changesKeegan McAllister2013-12-091-1/+2
| | | | Fixes #664.
* Implement local bookmark(hashtag) for Acid2. With @joonwonleejune0cho2013-12-011-2/+58
| | | | Support hashtag through link (e.g. <a href="#top">)
* Rewrite flow construction to be incrementalizable and parallelizable.Patrick Walton2013-11-181-42/+77
| | | | | | | | | | | | This replaces flow construction with a strict bottom-up tree traversal, allowing for parallelism. Each step of the traversal creates a flow or a `ConstructionItem`, similar to how Gecko works. {ib} splits are handled by not creating `InlineFlow`s until the containing block is reached. This should be able to be incrementalized by storing the `Flow` from layout to layout, and performing fixups during flow construction and/or wiping containing blocks in a previous pass.
* Make the HTML parser parse into the document rather than an element.Ms2ger2013-11-171-6/+3
| | | | This removes the duplicate html element.
* Remove type_id arguments from Event::new and UIEvent::new.Ms2ger2013-11-141-2/+2
|
* Stop passing DOMStrings via borrowed pointer. (#1201)Tetsuharu OHZEKI2013-11-141-1/+1
|
* Don't pass nullable strings to native DOM methods that want non-nullable ↵Ms2ger2013-11-121-1/+1
| | | | strings. Fixes #1207.
* Add a spec-incompliant load event.Josh Matthews2013-11-111-0/+11
|