aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/gfx/compositor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/servo/gfx/compositor.rs')
-rw-r--r--src/servo/gfx/compositor.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/servo/gfx/compositor.rs b/src/servo/gfx/compositor.rs
index f704132dddf..8e6e3af3513 100644
--- a/src/servo/gfx/compositor.rs
+++ b/src/servo/gfx/compositor.rs
@@ -1,7 +1,7 @@
use azure::azure_hl::{DrawTarget};
use cairo::cairo_hl::ImageSurface;
use dom::event::Event;
-use geom::size::Size2D;
+use geom::rect::Rect;
struct LayerBuffer {
// TODO: We should not be coupled to Cairo this tightly. Instead we should pull the buffer out
@@ -10,7 +10,8 @@ struct LayerBuffer {
draw_target: DrawTarget,
- size: Size2D<uint>,
+ // The rect in the containing RenderLayer that this represents.
+ rect: Rect<uint>,
// NB: stride is in pixels, like OpenGL GL_UNPACK_ROW_LENGTH.
stride: uint