aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-4/+5
| | | | | * strict imports formatting * Reformat all imports
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-4/+18
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-1/+0
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* re-structure blob, structured serializationGregory Terzian2019-12-111-17/+17
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-11/+11
|
* Format script componentchansuke2018-09-191-21/+45
|
* Blobs support typed arrays nowChristian Poveda2018-03-211-2/+2
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-4/+4
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-7/+6
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-5/+9
|
* Replace typeString with type_string.Arthur Marble2016-09-171-2/+2
|
* Patches of File APIZhen Zhang2016-07-211-1/+4
|
* Fix Blob type-stringZhen Zhang2016-07-131-3/+3
|
* Refactor FileAPI implementationZhen Zhang2016-07-131-1/+2
|
* Remove DataSlice, fix #12249Zhen Zhang2016-07-051-3/+2
|
* Integration and improvements of File API backendsZhen Zhang2016-07-041-0/+2
| | | | | | 1. More complete origin check in FileManagerThreadMsg 2. Add reference counting logic to file manage store and script API 3. Integrate the support of slicing
* Update Blob::{new, new_inherited} to take StringsAchal Shah2016-06-171-1/+1
|
* Add file backend support for Blob and relatedZhen Zhang2016-06-011-13/+13
| | | | | | | | 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
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Auto merge of #11368 - izgzhen:fix-filemanager-exit, r=asajeffreybors-servo2016-05-241-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix FileManager thread panic and other misc improvements - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] There are tests for these changes Changes: - Add shut down logic for FileManager thread - Add an unit test for filemanager_thread <!-- 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/11368) <!-- Reviewable:end -->
| * Fix FileManager thread panic and other misc improvementsZhen Zhang2016-05-241-2/+0
| | | | | | | | | | - Add shut down logic for FileManager thread - Add an unit test for filemanager_thread
* | Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
|/ | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement file-type functionalities in htmlinputelement and relatedZhen Zhang2016-05-231-1/+15
| | | | | | | | Changes include: - Implement file selection and other DOM behaviours in htmlinputelement - Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads - Improve filemanager_thread, including adding type_string field to SelectedFile - Improve interfaces in FileList/File/Blob to accommodate the above changes
* Implement missing interfaces of File DOM objectZhen Zhang2016-05-111-9/+42
|
* Fixes related to file input and File APIZhen Zhang2016-05-021-5/+6
|
* Remove global field from BlobChad Kimes2016-01-101-4/+3
|
* Changed blob to use DataSlice with Arc in order to limit wasteful copying of ↵David Raifaizen2016-01-061-1/+2
| | | | byte vector
* more refactoringrohan.prinja2015-10-301-1/+1
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-4/+4
|
* Elide most 'a lifetimesManish Goregaokar2015-09-041-1/+1
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-2/+2
|
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-2/+0
| | | | closes #7357
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Add spec linksBogdan Cuza2015-07-281-0/+1
|
* Upgrade to SM 39Michael Wu2015-06-191-4/+4
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Fixes #4164 Make file.rs Constructor and new functions take GlobalRef by valueMatt McCoy2015-01-081-4/+4
|
* Fixes #4164 Make Constructor and new functions take GlobalRef by valueMatt McCoy2015-01-071-1/+1
|
* Bug #1820, add the optional "type" parameter to BlobShing Lyu2015-01-011-1/+2
|
* Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+1
| | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-3/+3
|
* Correctly set the BlobType for File objects.Ms2ger2014-12-151-5/+4
|