servo/components/script/dom/bindings
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
..
codegen Fixing issue with uniontypes not created with primitive types 2016-02-18 11:08:47 +01:00
callback.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
cell.rs task -> thread 2016-01-10 17:58:13 +09:00
conversions.rs Bump js to get fix from servo/rust-mozjs#237 2016-02-12 17:15:09 +01:00
error.rs Say farewell to in-tree HeapSizeOf 2016-02-04 22:03:32 +01:00
global.rs Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files 2016-02-17 21:25:12 +01:00
inheritance.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
interface.rs Fix the hasInstance hook of interface objects 2016-02-15 14:12:53 +01:00
js.rs Implement RootedReference<T> for Option<JS<T>> 2016-02-16 22:40:03 +00:00
mod.rs Remove remaining reference to the long-disappeared JSRef type. 2016-01-18 09:52:23 +01:00
num.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
proxyhandler.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
refcounted.rs task -> thread 2016-01-10 17:58:13 +09:00
reflector.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
str.rs Convert unwrapping of ByteString to self.0 2016-02-18 19:41:03 +00:00
structuredclone.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
trace.rs Compile raw inline event handlers lazily. Resolves #8489. 2016-02-11 15:44:52 +01:00
utils.rs Bump heapsize to 0.3 2016-02-13 11:13:19 +01:00
weakref.rs Say farewell to in-tree HeapSizeOf 2016-02-04 22:03:32 +01:00
xmlname.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00