aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Ensure that clicking a link in an iframe gets the existing iframe rect.Glenn Watson2015-03-171-1/+3
| | | | | | | | | | Otherwise, the new iframe may not get a valid window size until the parent frame does another reflow.
* | auto merge of #5244 : mattnenterprise/servo/page_load_thread_name, r=jdmbors-servo2015-03-161-1/+1
|\ \
| * | Fixes #5215 Serializing the thread name for the page load task to make it a ↵Matt McCoy2015-03-161-1/+1
| |/ | | | | | | simple url
* / First part of refactoring constellation to support iframe navigation.Glenn Watson2015-03-171-27/+39
|/ | | | | | | | | The history is now recorded per frame, but needs to be exposed in a followup PR. Also fixes a race condition that occurs loading iframes under heavy CPU load. This ensures that iframes never do a reflow / layout until they have a valid window size set from their parent frame.
* Refactored optional argument "last_modified" for DocumentMartin Schröder2015-03-161-9/+10
| | | | Fixes #4981
* make MouseEvent::new() and UIEvent::new() take enums for the bubbles and ↵Rohan Prinja2015-03-151-3/+3
| | | | cancelable arguments
* Remove unused subpage field from pageGlenn Watson2015-03-111-2/+1
|
* Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via ↵Avi Weinstock2015-03-091-6/+0
| | | | introduction of Worker::WorkerErrorHandler (Closes #5171).
* auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdmbors-servo2015-03-061-9/+9
|\
| * Implements reflow events debugging.Adenilson Cavalcanti2015-03-061-9/+9
| | | | | | | | | | Start servo with -Z relayout-event and you should have reflow events printed to the terminal.
* | ScriptTask::mouse_over_targets is not traced #4985Guro Bokum2015-03-061-3/+29
|/
* Due to changes on Page/Window interfaces, we no longer have useAdenilson Cavalcanti2015-03-041-1/+1
| | | | for flush_layout().
* Remove the newly-created Page from the tree if loading fails.Josh Matthews2015-03-031-0/+45
|
* Separate disposing of layout data from the GCing of the DOM object ↵Josh Matthews2015-03-031-11/+8
| | | | reflectors. Change the order of operations when shutting down the script task to ensure that Window globals aren't used after they've been GCed.
* Documentation and cleanup.Josh Matthews2015-03-031-10/+48
|
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-133/+96
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Split page load into separate network and parsing stages. Delay Page ↵Josh Matthews2015-03-031-173/+249
| | | | creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network.
* Remove unused import from script_task.Ms2ger2015-02-281-1/+0
|
* Move body of ScriptTask::handle_mouse_move_event into a method on #5073Guro Bokum2015-02-281-73/+8
|
* Moved dispatch_key_event method from script_task.rs to document.rs, fixes #4982Keith Yeung2015-02-261-90/+7
|
* If root html element contains "reftest-wait" class, don't mark document as ↵Glenn Watson2015-02-261-2/+9
| | | | | | ready until it's removed. This allows reftests to perform tests for incremental layout and other bugs that require rendering multiple frames.
* Remove ScriptMsg::Navigate (fixes #4948).Dae-seon Moon2015-02-251-13/+1
|
* auto merge of #4960 : ↵bors-servo2015-02-231-0/+24
|\ | | | | | | | | | | pkondzior/servo/add-script-timers-suspend-resume-functionality, r=jdm Adds free/thaw methods to script_task that let you send suspend/resume messages to web content timers. Fixes #4907
| * Add thaw/freeze messages that can suspend/resume webcontent timers #4907Pawel Kondzior2015-02-241-0/+24
| |
* | auto merge of #4959 : glennw/servo/fix-hover, r=jdmbors-servo2015-02-231-79/+64
|\ \ | | | | | | | | | | | | | | | | | | | | | Specifically: - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs. - Send the mousemove event after all the hover states have been set correctly. - Correctly handle removing hover state from elements when mouse is not over any elements. - Correctly detect when a reflow is required (previous code failed in several edge cases).
| * | Fixes a number of issues with setting hover state, and simplifies the code.Glenn Watson2015-02-191-79/+64
| |/ | | | | | | | | | | | | | | Specifically: - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs. - Send the mousemove event after all the hover states have been set correctly. - Correctly handle removing hover state from elements when mouse is not over any elements. - Correctly detect when a reflow is required (previous code failed in several edge cases).