mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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
|
@ -109,6 +109,8 @@ pub struct Reflow {
|
|||
pub id: uint,
|
||||
/// The type of query if any to perform during this reflow.
|
||||
pub query_type: ReflowQueryType,
|
||||
/// A clipping rectangle for the page, an enlarged rectangle containing the viewport.
|
||||
pub page_clip_rect: Rect<Au>,
|
||||
}
|
||||
|
||||
/// Encapsulates a channel to the layout task.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue