aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/global.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up DOMManipulationTaskSourceKeith Yeung2016-06-021-2/+2
|
* Add file backend support for Blob and relatedZhen Zhang2016-06-011-5/+16
| | | | | | | | Changes include: - Add BlobImpl to Blob, and related caching mechanism - Expose ResourceThreads to document_loader, workerglobalscope, worker, and global - Fix encode_multipart_form_data - Other small fixes to accommodate the above changes
* Clean up the functions to retrieve a global root from JS objectsAnthony Ramine2016-05-271-26/+21
|
* adding interface for custom responsesRahul Sharma2016-05-201-2/+10
|
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-4/+4
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Remove ConstellationChan.Ms2ger2016-05-191-3/+3
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Auto merge of #11239 - jdm:time-profile, r=noxbors-servo2016-05-181-1/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add timeline markers for HTTP requests, JS evaluation, and HTML parsing. Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [ ] `./mach build -d` does not report any errors (didn't try to compile past a rustc upgrade on airplane wifi) - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes fix #11218 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because we don't have testing infrastructure for profiling. 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11239) <!-- Reviewable:end -->
| * Add timeline markers for HTTP requests, JS evaluation, and HTML parsing.Josh Matthews2016-05-181-1/+9
| |
* | Report panics in web worker threads.Ms2ger2016-05-181-1/+9
|/
* Implement user interaction task sourceKeith Yeung2016-05-111-9/+0
|
* Reduce channel cloning.Ms2ger2016-04-291-3/+3
|
* Add API base url method to global objectsKeith Yeung2016-04-111-0/+11
|
* Implement Worker#terminate() (fixes #4427).Joe Wilm2016-04-071-7/+24
| | | | | Adds support for terminating DOM workers. A closing flag was added to WorkerGlobalScope per the spec.
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-1/+2
|
* Add task_source directoryKeith Yeung2016-03-101-3/+16
| | | | Use DOMManipulationTaskSource whenever possible
* Clean up of script timer code.benshu2016-02-201-4/+4
| | | | | | | | | | | The code was split into the following two abstractions. - OneshotTimers can be used to schedule arbitrary oneshot timers, such as XHR-Timeouts. - JsTimers (`setTimeout` and `setInterval`) which use OneshotTimers to schedule individual callbacks. With this change the implementation (of JsTimers in particular) is in much closer alignment with the specification.
* Issue #9561 continued - renamed *_thread_source to *_task_source in ↵Kamil Muszyński2016-02-171-5/+5
| | | | global.rs and related files
* Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to ↵Kamil Muszyński2016-02-141-5/+5
| | | | TaskSource
* script: Remove some unused importsEmilio Cobos Álvarez2016-01-121-2/+1
|
* Remove unused enum GlobalFieldChad Kimes2016-01-101-30/+0
|
* task -> threadrohan.prinja2016-01-101-21/+21
|
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-2/+1
|
* Auto merge of #8862 - fstr:move_workerid, r=Ms2gerbors-servo2015-12-081-2/+2
|\ | | | | | | | | | | | | | | | | | | Moved WorkerId type to devtools_traits Fixes #8846. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862) <!-- Reviewable:end -->
| * Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-071-2/+2
| |
* | Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-2/+38
|/
* Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdmbors-servo2015-11-191-1/+2
|\ | | | | | | | | | | | | | | | | | | Split ConstellationMsg into ScriptMsg and CompositorMsg Fixes #8356. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530) <!-- Reviewable:end -->
| * Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-1/+2
| |
* | Rustfmt some of script.Ms2ger2015-11-181-3/+6
|/
* script: Make timer events e10s-safe.Patrick Walton2015-11-121-2/+1
| | | | Closes #8235.
* Clean up the conversion routinesAnthony Ramine2015-11-111-6/+6
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* XHR timeouts use same abstraction as scripts timers. (fixes #3396)benshu2015-11-111-1/+19
|
* merge from masterrohan.prinja2015-11-031-2/+2
|\
| * Removed JS::root Fixes #8251nxnfufunezn2015-10-311-2/+2
| |
* | rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-2/+1
| |
* | more refactoringrohan.prinja2015-10-301-1/+2
|/
* Implement GlobalRef::reflector as an inherent method.Ms2ger2015-10-231-3/+2
| | | | Reflectable is meant for actual DOM objects, not for references to them.
* Timers are scheduled by a dedicated per-constellation thread.benshu2015-10-211-0/+10
|
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-2/+2
|
* Update script to work with lint changesManish Goregaokar2015-10-161-0/+1
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-7/+4
| | | | This merges import blocks that were reported by tidy as unmerged.
* Implement a global_object_for_reflector method.Ms2ger2015-09-161-0/+5
|
* Remove the outdated no_move annotation from GlobalRoot.Ms2ger2015-09-161-1/+0
|
* Elide most 'b lifetimesManish Goregaokar2015-09-041-1/+1
|
* Remove helper traitsAnthony Ramine2015-08-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* sort all usesJohann Tuffe2015-08-201-3/+3
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-2/+2
|
* Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-1/+3
|
* Take WorkerGlobalScope's worker_id out of its Option.Ms2ger2015-08-031-1/+1
| | | | | Unsurprisingly, every worker has an id, so there is no need to wrap it in an Option.