Skip to content

Commit

Permalink
Update some URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
atouchet committed May 4, 2020
1 parent d33a784 commit 5166cc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/script/dom/htmlcanvaselement.rs
Expand Up @@ -379,14 +379,14 @@ impl HTMLCanvasElementMethods for HTMLCanvasElement {

// FIXME: Only handle image/png for now.
let mut png = Vec::new();
// FIXME(nox): https://github.com/PistonDevelopers/image-png/issues/86
// FIXME(nox): https://github.com/PistonDevelopers/image-png/issues/87
// FIXME(nox): https://github.com/image-rs/image-png/issues/86
// FIXME(nox): https://github.com/image-rs/image-png/issues/87
PNGEncoder::new(&mut png)
.encode(&file, self.Width(), self.Height(), ColorType::Rgba8)
.unwrap();
let mut url = "data:image/png;base64,".to_owned();
// FIXME(nox): Should this use base64::URL_SAFE?
// FIXME(nox): https://github.com/alicemaz/rust-base64/pull/56
// FIXME(nox): https://github.com/marshallpierce/rust-base64/pull/56
base64::encode_config_buf(&png, base64::STANDARD, &mut url);
Ok(USVString(url))
}
Expand Down

0 comments on commit 5166cc3

Please sign in to comment.