aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* Factor out a handle_parsing_complete function from ScriptTask::Load.Ms2ger2015-04-271-34/+46
|
* Add script execution support via WebDriverJames Graham2015-04-231-0/+13
|
* Auto merge of #5802 - mmatyas:indentfix, r=jdmbors-servo2015-04-221-1/+1
|\ | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5802) <!-- Reviewable:end -->
| * Fix some irregular indentation.Mátyás Mustoha2015-04-221-1/+1
| |
* | Refactored image cache task - details below.Glenn Watson2015-04-231-39/+47
|/ | | | | | | | | | | | | | | | | | | | * Simpler image cache API for clients to use. * Significantly fewer threads. * One thread for image cache task (multiplexes commands, decoder threads and async resource requests). * 4 threads for decoder worker tasks. * Removed ReflowEvent hacks in script and layout tasks. * Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe. * Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow. * Add reflow batching for when multiple images load quickly. * Reduces the number of paints loading wikipedia from ~95 to ~35. * Reasonably simple to add proper prefetch support in a follow up PR. * Async loaded images always construct Image fragments now, instead of generic. * Image fragments support the image not being present. * Simpler implementation of synchronous image loading for reftests. * Removed image holder. * image.onload support. * image NaturalWidth and NaturalHeight support. * Updated WPT expectations.
* Store a Runtime object in ScriptTask.Ms2ger2015-04-221-17/+13
|
* Make ScriptTask::js_context immutable.Ms2ger2015-04-201-11/+4
| | | | | Since we drop the ScriptTask almost immediately after clearing the field, there's little reason to do it manually.
* Support focus management and keyboard events for iframes.Glenn Watson2015-04-201-25/+38
|
* Make mouse_over_targets a RootedVecBogdan Cuza2015-04-181-3/+5
|
* Documentation.Josh Matthews2015-04-161-0/+3
|
* Implement sync XHR by creating and spinning on-demand event loops.Josh Matthews2015-04-161-0/+26
|
* Start switching net/ to use abstractions over channels to allow introducing ↵Josh Matthews2015-04-161-3/+2
| | | | non-channel communication in the future.
* Make Metadata use ContentTypeBogdan Cuza2015-04-141-5/+4
|
* Update some URLs.Ms2ger2015-04-141-1/+1
| | | | | The HTML spec's division into pages is not stable, so it is safer to use the URL without a specific page (which will redirect).
* Using unwrap() as suggested in review.Adenilson Cavalcanti2015-04-131-2/+2
|
* Squashing a few compiler warnings.Adenilson Cavalcanti2015-04-131-1/+1
|
* Firefox timeline integration #4957Guro Bokum2015-04-131-0/+72
|
* Use a simple Temporary value in TreeIteratorAnthony Ramine2015-04-131-14/+10
|
* Use Page::window_for_script_deallocation in ScriptMemoryFailsafejosiahdaniels2015-04-121-2/+2
| | | | Also: Rename window_for_script_dealloation to window_for_script_deallocation
* Move Runtime to rust-mozjs.Ms2ger2015-04-101-56/+2
|
* Add rt and cx methods to Runtime.Ms2ger2015-04-101-4/+14
|
* Create a Runtime struct to manage JSRuntime and JSContext.Ms2ger2015-04-101-25/+44
| | | | | I intend to move this struct into rust-mozjs, but I kept it here for easier iteration for now.
* Resume tracing our collections of roots.Ms2ger2015-04-101-3/+4
| | | | | The second JS_SetExtraGCRootsTracer call clobbered the first, so trace_collections was no longer being called.
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-4/+4
| | | | Fixes #4476
* Introduce a MouseButton enum.Ms2ger2015-04-031-2/+2
|
* script: Stop destroying all flows on every mouse-over event.Patrick Walton2015-04-011-3/+1
|
* broadcasting storage changes eventssnf2015-03-311-1/+1
|
* auto merge of #5428 : pcwalton/servo/squash-mouse-move, r=jdmbors-servo2015-03-301-2/+17
|\ | | | | | | | | | | Otherwise they queue up if the event handler isn't 60FPS. r? @jdm
| * script: Squash mouse-move events just like resizes.Patrick Walton2015-03-271-2/+17
| | | | | | | | Otherwise they queue up if the event handler isn't 60FPS.
* | auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdmbors-servo2015-03-291-2/+2
|\ \ | | | | | | | | | Closes #5417
| * | Use box syntax instead of Box::new()Brandon DeRosier2015-03-291-2/+2
| |/ | | | | | | Closes #5417
* | Remove some unnecessary uses of `as_slice`Corey Farwell2015-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | For the majority of these cases, `as_slice` can be removed due to `Deref`. In particular, `Deref` for: * `String` -> `str` * `Atom` -> `str` The latter of those two requires, a bump of the locked `string-cache` library
* | Implement RootedVec<T>Mukilan Thiyagarajan2015-03-291-1/+5
| |
* | Use u32 for reflow ids.Ms2ger2015-03-281-1/+1
|/
* Notify devtools about new worker globalsThiago Pontes2015-03-271-6/+10
|
* auto merge of #5359 : aweinstock314/servo/moz-events, r=jdmbors-servo2015-03-251-11/+8
|\ | | | | | | | | | | Addresses #5352. This is based on https://github.com/glennw/servo/tree/moz-events
| * Replace (String, Option<String>) with MozBrowserEvent in uses of ↵Avi Weinstock2015-03-251-11/+8
| | | | | | | | MozBrowserEventMsg.
* | implementing MainThreadRunnable in ScriptTasksnf2015-03-251-0/+8
|/
* Ensures that iframe navigation updates the parent iframe element subpage id.Glenn Watson2015-03-241-0/+23
| | | | This fixes the case of clicking a link in an iframe, going back, then clicking the link again.
* Fix double-panic when the script task panics.Josh Matthews2015-03-231-3/+4
|
* Fix warnings in script.Ms2ger2015-03-231-1/+0
|
* auto merge of #5281 : glennw/servo/mozbrowser, r=jdmbors-servo2015-03-221-29/+69
|\
| * Experimental implementation of (a small subset of) mozbrowser APIs.Glenn Watson2015-03-231-29/+69
| |
* | Stop abusing format! macro when construct a StringCorey Farwell2015-03-221-1/+1
| | | | | | | | | | In these cases for `format!`, we're just constructing a String of the single argument with no special format.
* | Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-1/+1
| |
* | script: Stop rebuilding every flow in the document when an imagePatrick Walton2015-03-201-1/+5
|/ | | | finishes loading.
* Implement Element.innerHTML setterChris Paris2015-03-181-1/+1
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-1/+1
|
* auto merge of #5219 : doublec/servo/view_source_protocol_and_plain_text, r=jdmbors-servo2015-03-171-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | Implements view-source protocol by having a view-source handler, and modifying the content type to be text/plain if that is used. Implements text/plain handling. This allows view-source content to display as plain text. Example usage: ./mach run http://cd.pn/x.txt ./mach run view-source:http://tinyvid.tv/ This fixes issue #4181. Issue #3649 includes "support text/plain" so this possibly fixes some of that issue as well.
| * Implement displaying of text/plain documentsChris Double2015-03-171-1/+10
| | | | | | | | | | | | This is done by detecting the content type as text/plain and following the requirements from: https://html.spec.whatwg.org/multipage/browsers.html#read-text