mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Clip display list based on frame viewport
Instead of creating a display list for the entire page, only create one for an area that expands around the viewport. On my machine this makes incremental layout of http://timecube.com 50% faster.
This commit is contained in:
parent
f4471f0602
commit
c7327450ef
11 changed files with 130 additions and 34 deletions
|
@ -625,6 +625,8 @@ impl LayoutTask {
|
|||
LogicalPoint::zero(writing_mode).to_physical(writing_mode,
|
||||
rw_data.screen_size);
|
||||
|
||||
flow::mut_base(layout_root.deref_mut()).clip_rect = data.page_clip_rect;
|
||||
|
||||
let rw_data = rw_data.deref_mut();
|
||||
match rw_data.parallel_traversal {
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue