servo/components/script
bors-servo aae6525f7d Auto merge of #9684 - danlrobertson:i9655, r=KiChjang
Add methods to move ByteStrings underlying bytes

Add methods to move the underlying `Vec<u8>` for `ByteString`.

I saw this as at least two methods. One to "move and replace with and empty Vec<u8> (`bytes`), and one to take ownership of the whole object (`own_bytes`). I typically also don't like adding methods with out unit tests. If you think they're unnecessary, just let me know.

As always, please let me know if you have any comments, critiques, or nits!

Fixes #9655

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9684)
<!-- Reviewable:end -->
2016-02-19 17:21:14 +05:30
..
docs Move the DOM memory management blog post into the tree. 2015-10-29 17:25:00 +01:00
dom Auto merge of #9684 - danlrobertson:i9655, r=KiChjang 2016-02-19 17:21:14 +05:30
parse Store a pointer to the browsing context in the Document. 2016-02-11 13:08:11 +01:00
build.rs
Cargo.toml Refactor style to be completely backend-independent 2016-02-13 16:05:14 +01:00
clipboard_provider.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
cors.rs CORS Preflight Logic Fix 2016-02-16 15:42:07 -07:00
devtools.rs task -> thread 2016-01-10 17:58:13 +09:00
document_loader.rs Improve documentation for new methods. 2016-02-10 09:20:06 -05:00
layout_interface.rs Refactor style to be completely backend-independent 2016-02-13 16:05:14 +01:00
lib.rs Auto merge of #9523 - ruud-v-a:hasher, r=Wafflespeanut 2016-02-05 07:32:13 +05:30
makefile.cargo Fix spurious rebuilds of the script crate 2015-10-08 21:37:56 -07:00
mem.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
network_listener.rs task -> thread 2016-01-10 17:58:13 +09:00
page.rs Auto merge of #8481 - frewsxcv:iterablepage-iter, r=Ms2ger 2015-11-12 18:29:12 +05:30
reporter.rs Report CSS errors to script task for further processing. 2016-02-11 14:48:47 -05:00
script_thread.rs Auto merge of #9603 - Ms2ger:document-bc, r=jdm 2016-02-19 12:49:35 +05:30
textinput.rs Say farewell to in-tree HeapSizeOf 2016-02-04 22:03:32 +01:00
timers.rs Auto merge of #9471 - peterkort:patch-1, r=jdm 2016-02-06 02:51:21 +05:30
unpremultiplytable.rs add un-premultiply table for GetImageData 2015-10-20 04:51:29 -04:00
webdriver_handlers.rs task -> thread 2016-01-10 17:58:13 +09:00