aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Sending key events through script task before processing them in the compositor.Nathan E. Egge2014-12-121-0/+4
| | | | Fixes #4163
* ports/cef: Implement accelerated compositing for the CEF port.Patrick Walton2014-12-101-3/+14
|
* Reuse the final_url in ScriptTask::load.Ms2ger2014-12-091-5/+4
| | | | | In both the javascript and non-javascript url cases, final_url is set to the same url as is stored by the Page.
* Pass a borrowed Url to parse_html.Ms2ger2014-12-091-1/+1
| | | | | It does not need to take ownership, and I want to reuse final_url in the caller.
* Rename base_url to final_url in ScriptTask::load.Ms2ger2014-12-091-5/+5
| | | | This seems like a clearer name, as it's used for more than just as a base url.
* Remove the url from the InputUrl variant.Ms2ger2014-12-091-2/+2
| | | | | This url is the pre-redirect url, which is not particularly meaningful, and it is used only in a panic message.
* Move the load response into the HTMLInput enum.Ms2ger2014-12-091-4/+4
| | | | | It is None iff the parser input is an InputString variant, so it makes more sense to pass it in the same enum.
* Combine two conditionals in ScriptTask::load.Ms2ger2014-12-091-40/+31
| | | | | Now that the code lives in the same function, I see no reason for them to remain separate.
* Make parse_html's base_url argument non-optional.Ms2ger2014-12-081-6/+3
| | | | It turns out the case where it woul be None can't happen.
* Move the networking code in parse_html into ScriptTask::load.Ms2ger2014-12-081-2/+86
| | | | | | This doesn't really have anything to do with parsing HTML, and fits in better with the code in ScriptTask::load. In particular, all changes to Page's url now go through ScriptTask methods.
* Pass the load data to parse_html directly, rather than in an Option.Ms2ger2014-12-081-1/+1
|
* Cleanup last_loaded_url/last_url handling in ScriptTask::load.Ms2ger2014-12-081-8/+5
|
* Simplify the content_changed call in ScriptTask::load.Ms2ger2014-12-081-5/+1
|
* Create the root frame before evaluating the javascript URL.Ms2ger2014-12-061-9/+9
| | | | | This prevents a crash when the script in the javascript URL accesses the document attribute.
* Add Comparable trait to js.rs; fixupsManish Goregaokar2014-12-061-1/+1
|
* Switch to NodeFlags (the footprint has not changed)Manish Goregaokar2014-12-051-1/+1
|
* Address review commentsManish Goregaokar2014-12-051-0/+2
|
* Implement implicit form submissionManish Goregaokar2014-12-051-2/+5
|
* Hook up synthetic click activation to script_task and <>.click()Manish Goregaokar2014-12-051-2/+17
|
* Hook up authentic click activation to the script taskManish Goregaokar2014-12-051-4/+7
|
* Implemeneted ModifyAttribute handler to update DOM elements.Shanil Puri2014-12-031-84/+12
|
* Implement Window.sessionStorage: Storage Task, Storage Methods (excluding ↵nkdalmia2014-12-031-0/+6
| | | | Storage event, QuotaExceededError)
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-3/+3
|
* Allow passing arguments to setTimeout/setInterval callbacksMukilan Thiyagarajan2014-11-151-1/+1
|
* Remove unused arguments from LoadComplete and LoadCompleteMsgManish Goregaokar2014-11-141-2/+2
|
* Don't overwrite redirected URL in script_task (fixes #3970)Manish Goregaokar2014-11-141-1/+2
|
* Fix interfaces testKeegan McAllister2014-11-131-7/+14
|
* Add single-line text input with no visible cursor.Josh Matthews2014-11-131-12/+14
|
* Implement document focus context and hook it up to click events.Josh Matthews2014-11-131-7/+13
|
* Dispatch keydown, keyup, and keypress events at appropriate times.Josh Matthews2014-11-131-3/+53
|
* Pass all key events to the current constellation frame.Josh Matthews2014-11-131-2/+6
|
* Rebase and fix up compile errors for rust upgrade.Glenn Watson2014-11-131-2/+2
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-32/+26
|
* Clip display list based on frame viewportMartin Robinson2014-11-111-3/+11
| | | | | | Instead of creating a display list for the entire page, only create one for an area that expands around the viewport. On my machine this makes incremental layout of http://timecube.com 50% faster.
* Bug #3811 - Extracted the script task handlers into methodsShing Lyu2014-11-101-157/+177
|
* Invert control flow, fix resizing, and improve checkerboardingPatrick Walton2014-11-041-22/+25
| | | | | significantly by giving tiles some time to paint before we render unrendered content.
* auto merge of #3732 : mukilan/servo/xhr-issue-3630, r=jdmbors-servo2014-11-041-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issue #3630 A short summary of the changes: * Use atomic generation id to cancel inflight requests * Handles nested calls to abort, open, send inside handlers * Adds XHRReleaseMsg to delay freeing XHR object till all inflight events are processed * Handles both timeout, errors and abort/open in a symmetric fashion i.e All inflight events will be cancelled for timeouts, aborts, errors and on calling open. * Change the ErroredMsg enum to be more symmetric with the returned Error enum I noticed a few possible changes that could make the code for fetch task simpler: * We can remove the additional timer task and let the fetch task manage its own timer (or maybe the resource loader can do this.) * The CORS related steps could also be moved into the resource loader. * Right now upload events are not support. This requires some support from resource loader.
| * Fix race condition in XHR and handle other abort/open scenariosMukilan Thiyagarajan2014-11-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | This fixes issue #3630 A short summary of the changes: * Use generation id to cancel inflight requests * Handles nested calls to abort, open, send inside handlers * Adds XHRReleaseMsg to delay freeing XHR object till all inflight events are processed * Change the ErroredMsg enum to be more symmetric with the returned Error enum
* | Have ContentBox(es)Queries consult the flow treeMartin Robinson2014-11-031-4/+4
|/ | | | | | | | | Instead of looking at the display tree, have ContentBox(es)Query consult the flow tree. This allow optimizing away parts of the display tree later. To do this we need to be more careful about how we send reflow requests, only querying the flow tree when possible. Fixes #3790.
* Switch to synchronous script loadingMatt Brubeck2014-10-291-46/+3
| | | | | | | This removes the old code for asyncronously loading scripts during HTML parsing and then executing them afterward. Fixes #3356.
* Infrastructure for synchronous script loadingMatt Brubeck2014-10-291-5/+0
| | | | | | This implements the parts of the "prepare a script element" algorithm that are required for synchronous scripts. It also adds some infrastructure for future support of the `async` and `defer` attributes.
* Ignore the HTML parser's borrow flag in GC tracingKeegan McAllister2014-10-241-0/+18
| | | | Adds some other dynamic checks in debug builds.
* Dynamically check DOMRefCell access from layout in debug buildsKeegan McAllister2014-10-241-1/+2
|
* Rename untraceable!() to no_jsmanaged_fields!(). References issue #3671Ray Clanan2014-10-231-1/+1
|
* Implement Document.readyState. Prevent iframes from notifying the compositor ↵Josh Matthews2014-10-231-4/+16
| | | | after the initial parse. Fixes #1720. Fixes #3738.
* Use DOMRefCell for ScriptTask.Tetsuharu OHZEKI2014-10-221-7/+7
|
* Use html5ever for HTML parsingKeegan McAllister2014-10-161-12/+4
|
* Issue #3236 - Implement timers (setTimeout/setInterval) for workersMukilan Thiyagarajan2014-10-161-4/+13
|
* Make Event::new take enumerated values instead of booleans (fixes #3643)Tim Taubert2014-10-111-3/+3
|
* Implement extremely basic form submission (fixes #3554)Manish Goregaokar2014-10-111-4/+4
|