aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move WindowSizeType to script_traits.Ms2ger2016-10-221-3/+2
|
* Move LoadData to script_traits.Ms2ger2016-10-211-2/+2
|
* Auto merge of #13848 - mrobinson:remove-layers, r=glennwbors-servo2016-10-211-5/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove concept of Layers from Servo <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13848) <!-- Reviewable:end -->
| * Remove concept of Layers from ServoMartin Robinson2016-10-211-5/+1
| | | | | | | | | | | | | | | | Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code.
* | Stop ticking animations on non-dirty nodes during traversal.Bobby Holley2016-10-201-0/+3
|/
* Remove old rendering backend.Glenn Watson2016-10-181-2/+0
| | | | | | | | | | | | | | This removes paint threads, rust-layers dependency, and changes optional webrender types to be required. The use_webrender option has been removed, however I've left the "-w" command line option in place so that wpt runner can continue to pass that. Once it's removed from there we can also remove the -w option. Once this stage is complete, it should be fine to change the display list building code to generate webrender display lists directly and avoid the conversion step.
* Auto merge of #13741 - servo:fetch-doc-unused, r=Manishearthbors-servo2016-10-131-1/+0
|\ | | | | | | | | | | | | | | Remove some unused support for the legacy network stack in script. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13741) <!-- Reviewable:end -->
| * Remove DocumentLoader::pipeline.Ms2ger2016-10-131-1/+0
| |
* | Setting a devtools timeline marker may fail, due to pipeline lookup failure.Alan Jeffrey2016-10-121-10/+10
|/
* Auto merge of #13056 - KiChjang:transition-event, r=mbrubeckbors-servo2016-10-121-0/+38
|\ | | | | | | | | | | | | | | | | | | | | Implement transition event and infrastructure Fixes #10245. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13056) <!-- Reviewable:end -->
| * Emit TransitionEnd events in the layout thread and process it in the script ↵Keith Yeung2016-10-111-0/+38
| | | | | | | | thread
* | Remove intrinsic Root::r()Anthony Ramine2016-10-111-15/+14
|/
* Merge script::parse and script::dom::servoparserAnthony Ramine2016-10-111-4/+3
|
* Unify ServoHTMLParser and ServoXMLParser in ServoParserAnthony Ramine2016-10-111-4/+5
|
* Move ParserContext to script::parseAnthony Ramine2016-10-111-2/+1
|
* Send touch events to root pipeline, and allow forwarding to iframes.Glenn Watson2016-10-081-6/+9
| | | | | | | | | Instead of letting the compositor try to find the correct scroll layer for a touch event, switch touch events to work the same way that mouse events do. Touch events are now dispatched to the root pipeline, and then forwarded to child iframes as required.
* Make the closure in flush_promise_jobs return a Root<GlobalScope>Anthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::enqueue_promise_jobAnthony Ramine2016-10-061-3/+3
|
* Make PromiseJobQueue::enqueue take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::flush_promise_jobsAnthony Ramine2016-10-061-2/+2
|
* Make TaskSource::queue take a &GlobalScopeAnthony Ramine2016-10-061-2/+3
|
* Make RunnableWrapper store an Option<Arc<AtomicBool>>Anthony Ramine2016-10-061-3/+5
| | | | | This makes WorkerGlobalScope::get_runnable_wrapper not panic anymore when the worker is a ServiceWorkerGlobalScope.
* Move timers to GlobalScopeAnthony Ramine2016-10-061-4/+4
|
* Make devtools::handle_evaluate_js take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Move JS evaluation functions to GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Make create_scope_things take a &GlobalScopeAnthony Ramine2016-10-061-3/+2
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-2/+2
|
* Introduce GlobalScope::live_devtools_updatesAnthony Ramine2016-10-061-3/+3
|
* Removed the session history from BrowsingContext.Alan Jeffrey2016-10-051-9/+2
|
* Replace ScriptHelpers by GlobalRef methodsAnthony Ramine2016-10-031-2/+3
|
* Support promises in workers.Josh Matthews2016-09-221-56/+23
|
* Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵Mátyás Mustoha2016-09-221-3/+67
| | | | | | batches. Implement native Promise APIs. Add SpiderMonkey hooks for enqueuing promise jobs. Start porting various native Promise APIs.
* Replace current session entry for reloadsConnor Brewster2016-09-191-9/+13
|
* Auto merge of #12910 - creativcoder:swsender, r=jdmbors-servo2016-09-151-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement postMessage for ServiceWorkers <!-- Please describe your changes on the following line: --> Fixes #12773 r? @jdm Changes: * Implements `postMessage` on `ServiceWorker` object. * Removes unused channels from sw and their scopes. * Fixes a crash when calling `scope.script_chan()` in sw-scopes event handling. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12773 <!-- Either: --> - [X] There are tests for these changes at `tests/html/service-worker` <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12910) <!-- Reviewable:end -->
| * store senders instead of buffering messagesRahul Sharma2016-09-071-13/+2
| |
| * Make service workers talk to their serviceworkerglobalscopesRahul Sharma2016-09-071-3/+14
| |
* | Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-131-52/+45
| | | | | | | | | | | | | | SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children.
* | Consistently use parent_pipeline_idAneesh Agrawal2016-09-131-30/+30
| | | | | | | | | | Instead of containing_pipeline_id, use parent_pipeline_id because it is more clear that it refers to the immediate parent.
* | Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* | Reorder `use` statementsUK9922016-09-091-14/+14
|/
* Remove mutex from TrustedAlan Jeffrey2016-08-291-3/+1
| | | | | Use weak references rather than message passing to garbage-collect dead references.
* fixed calling unwrap on an Err valueAshwin R2016-08-271-1/+1
|
* Pass real values to the proxy handler setup.Josh Matthews2016-08-251-7/+0
|
* Auto merge of #12954 - GuillaumeGomez:dictionary_error, r=noxbors-servo2016-08-241-2/+5
|\ | | | | | | | | | | | | | | Update rust-mozjs <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12954) <!-- Reviewable:end -->
| * Update rust-mozjs dependencyGuillaume Gomez2016-08-241-2/+5
| |
* | Move thread_state to style.Ms2ger2016-08-221-1/+1
|/
* Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-6/+7
|
* Issue 7720: Add target selector and update when scrolling to fragmentSteve Melia2016-08-031-7/+18
|
* Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwaltonbors-servo2016-07-271-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Improve restyling performance This commit adds hooks to the Servo style traversal to avoid traversing all the DOM for every restyle. Additionally it changes the behavior of the dirty flag to be propagated top down, to prevent extra overhead when an element is dirtied. This commit doesn't aim to change the behavior on Servo just yet, since Servo does extra job when dirtying the node related with DOM revision counters that might be necessary. CC @asajeffrey for the DOM revision counters stuff. When a node is dirty, do all its descendants really need to increment the revision counter, or is this an unintended effect? My intuition is that this is hurting performance quite a lot for servo. r? @bholley <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because no geckolib tests yet. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12563) <!-- Reviewable:end -->
| * script: Fix a few load related bugs.Emilio Cobos Álvarez2016-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | This is what was making me hit the new test failures. So turns out that when the DOMContentLoaded event is fired we fired no messages to the constellation, but we fired the DOMLoad message from the DocumentProgressHandler, effectively after having dispatched the Load message from script thread. This also fixes the possibility of a subframe navigation not blocking the load event of the parent document, for example.