servo/components
bors-servo 665559556f Auto merge of #12406 - izgzhen:refactor-file, r=Manishearth
Refactor FileAPI implementation

Most are simple refactoring, cleanups and improvements, but still involving two slightly notable changes:

+ In `filemanager`, now we read the file content based on requested `RelativePos` by `seek` and `read_exact` (rather than `read_to_end` then do slicing). This strategy might be again adjusted in future performance tuning but certainly better than nothing.
+ Also, I cached more file meta-info in both sides and left a block of comment on `filemanager`'s file reading mentioning the snapshot-state problem (not solved now though).

r? @Manishearth

<!-- 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

<!-- 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/12406)
<!-- Reviewable:end -->
2016-07-12 22:00:08 -07:00
..
canvas canvas: Deallocate WebRender images on canvas 2016-07-10 19:24:15 -07:00
canvas_traits Move util::vec::byte_swap to canvas_traits 2016-07-04 16:48:15 +02:00
compositing Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
constellation Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
devtools Use get_mut instead of get-remove-set in XHR send() 2016-06-27 21:31:28 -07:00
devtools_traits Use get_mut instead of get-remove-set in XHR send() 2016-06-27 21:31:28 -07:00
gfx Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
gfx_traits Move util::print_tree to gfx_traits 2016-07-04 15:47:06 +02:00
layout Auto merge of #12382 - stshine:anonymous-block, r=SimonSapin 2016-07-11 16:19:52 -07:00
layout_thread Move util::workqueue to style 2016-07-04 21:56:09 +02:00
layout_traits Update Rust to 1.11.0-nightly (ad7fe6521 2016-06-23) 2016-06-27 14:13:44 +02:00
msg net: Add "origin" and "same-origin" referrer policies, replacing "origin-only". 2016-07-08 00:01:24 -07:00
net Auto merge of #12406 - izgzhen:refactor-file, r=Manishearth 2016-07-12 22:00:08 -07:00
net_traits Refactor FileAPI implementation 2016-07-13 12:12:32 +08:00
plugins Improve mach clippy, add plugins to style/util 2016-07-12 19:59:58 +05:30
profile added spaces around - sign 2016-07-07 13:29:58 -07:00
profile_traits Update Rust to 1.11.0-nightly (ad7fe6521 2016-06-23) 2016-06-27 14:13:44 +02:00
range Update Rust to 1.11.0-nightly (ad7fe6521 2016-06-23) 2016-06-27 14:13:44 +02:00
script Auto merge of #12406 - izgzhen:refactor-file, r=Manishearth 2016-07-12 22:00:08 -07:00
script_layout_interface Upgrade rust-selectors. 2016-07-05 18:03:40 -07:00
script_traits Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
servo Improve mach clippy, add plugins to style/util 2016-07-12 19:59:58 +05:30
style Some fixes in style 2016-07-12 20:00:24 +05:30
style_traits Move some unit type definitions to style_traits. 2016-07-11 12:14:27 +02:00
util Improve mach clippy, add plugins to style/util 2016-07-12 19:59:58 +05:30
webdriver_server Move webdriver_msg to script_traits. 2016-07-05 09:02:46 +02:00