diff options
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r-- | components/gfx/render_task.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs index 92d9a2de2b0..8ddc5f232b2 100644 --- a/components/gfx/render_task.rs +++ b/components/gfx/render_task.rs @@ -25,13 +25,14 @@ use servo_msg::compositor_msg::{LayerMetadata, RenderListener, RenderingRenderSt use servo_msg::constellation_msg::{ConstellationChan, Failure, FailureMsg, PipelineId}; use servo_msg::constellation_msg::{RendererReadyMsg}; use servo_msg::platform::surface::NativeSurfaceAzureMethods; -use servo_util::geometry; +use servo_util::geometry::{Au, mod}; use servo_util::opts::Opts; use servo_util::smallvec::{SmallVec, SmallVec1}; use servo_util::task::spawn_named_with_send_on_failure; use servo_util::time::{TimeProfilerChan, profile}; use servo_util::time; use std::comm::{Receiver, Sender, channel}; +use std::i32; use sync::Arc; use font_cache_task::FontCacheTask; @@ -356,8 +357,13 @@ impl<C:RenderListener + Send> RenderTask<C> { ctx.clear(); // Draw the display list. - profile(time::RenderingDrawingCategory, None, self.time_profiler_chan.clone(), || { - display_list.draw_into_context(&mut ctx, &matrix); + profile(time::RenderingDrawingCategory, + None, + self.time_profiler_chan.clone(), + || { + let clip_rect = Rect(Point2D(Au(i32::MIN), Au(i32::MIN)), + Size2D(Au(i32::MAX), Au(i32::MAX))); + display_list.draw_into_context(&mut ctx, &matrix, &clip_rect); ctx.draw_target.flush(); }); } |