servo/components/canvas
bors-servo 8aded34bf6
Auto merge of #21914 - Eijebong:canvas-cleanup, r=jdm
Use pixels::get_rect in CanvasData::draw_image

Those functions are the same except that get_rect isn't failible, so we
have to check that the rect we want is actually in the image.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21914)
<!-- Reviewable:end -->
2018-11-01 03:29:06 -04:00
..
webgl_mode Kill WebGLThreadObserver 2018-09-12 23:46:49 +02:00
canvas_data.rs Use pixels::get_rect in CanvasData::draw_image 2018-10-12 19:57:26 +02:00
canvas_paint_thread.rs Exit Canvas paint thread on shutdown 2018-10-29 11:06:06 +01:00
Cargo.toml Properly support gl_PointSize and gl_PointCoord 2018-10-18 20:15:23 +02:00
gl_context.rs Make HTMLCanvasElement::get_size return a Size2D<u32> 2018-10-02 14:21:06 +02:00
lib.rs Merge some byte swap/premultiply functions in their own crate 2018-10-06 01:11:55 +02:00
webgl_thread.rs Properly support gl_PointSize and gl_PointCoord 2018-10-18 20:15:23 +02:00