mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #8218 - nikkisquared:master, r=eefriedman
I'm working on resolving https://github.com/servo/servo/issues/8213 as per the spec online and feedback in the servo channel. Note that currently I cannot build (and thus test) my code, so this is a bit of a rough first draft. I'd still like feedback on my progress, and I hope that there is another way for my code to be tested. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8218) <!-- Reviewable:end -->
This commit is contained in:
commit
021f441d24
7 changed files with 86 additions and 52 deletions
|
@ -72,6 +72,11 @@ impl Blob {
|
|||
pub fn read_out_buffer(&self, send: Sender<Vec<u8>>) {
|
||||
send.send(self.bytes.clone().unwrap_or(vec![])).unwrap();
|
||||
}
|
||||
|
||||
// simpler to use version of read_out_buffer
|
||||
pub fn clone_bytes(&self) -> Vec<u8> {
|
||||
self.bytes.clone().unwrap_or(vec![])
|
||||
}
|
||||
}
|
||||
|
||||
impl BlobMethods for Blob {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue