mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Add spec links
This commit is contained in:
parent
f039827dcd
commit
233a769c67
61 changed files with 284 additions and 87 deletions
|
@ -98,7 +98,7 @@ impl<'a> BlobHelpers for &'a Blob {
|
|||
}
|
||||
|
||||
impl<'a> BlobMethods for &'a Blob {
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#dfn-size
|
||||
// https://dev.w3.org/2006/webapi/FileAPI/#dfn-size
|
||||
fn Size(self) -> u64{
|
||||
match self.bytes {
|
||||
None => 0,
|
||||
|
@ -106,12 +106,12 @@ impl<'a> BlobMethods for &'a Blob {
|
|||
}
|
||||
}
|
||||
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#dfn-type
|
||||
// https://dev.w3.org/2006/webapi/FileAPI/#dfn-type
|
||||
fn Type(self) -> DOMString {
|
||||
self.typeString.clone()
|
||||
}
|
||||
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#slice-method-algo
|
||||
// https://dev.w3.org/2006/webapi/FileAPI/#slice-method-algo
|
||||
fn Slice(self, start: Option<i64>, end: Option<i64>,
|
||||
contentType: Option<DOMString>) -> Root<Blob> {
|
||||
let size: i64 = self.Size().to_i64().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue