aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/render_task.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-11-18 15:37:53 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-12-03 14:17:16 -0800
commit1c1c507c03757a3e4b76ca799b866b047d69a7b5 (patch)
tree19ba94ff619ff8cc32a9ffaf9fe73bb0afdaf948 /components/gfx/render_task.rs
parent873ca6cadddc1a40bead1f5dd0128bb16cfaa11b (diff)
downloadservo-1c1c507c03757a3e4b76ca799b866b047d69a7b5.tar.gz
servo-1c1c507c03757a3e4b76ca799b866b047d69a7b5.zip
layout: Implement `opacity` per CSS-COLOR § 3.2.
This adds the infrastructure necessary to support stacking contexts that are not containing blocks for absolutely-positioned elements. Our infrastructure did not support that before. This minor revamp actually ended up simplifying the logic around display list building and stacking-relative position computation for absolutely-positioned flows, which was nice.
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r--components/gfx/render_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs
index 6dc3335faff..6013fc8f936 100644
--- a/components/gfx/render_task.rs
+++ b/components/gfx/render_task.rs
@@ -505,7 +505,7 @@ impl WorkerThread {
{
// Build the render context.
let mut render_context = RenderContext {
- draw_target: &draw_target,
+ draw_target: draw_target.clone(),
font_ctx: &mut self.font_context,
page_rect: tile.page_rect,
screen_rect: tile.screen_rect,