mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
layout: Don't rebuild display lists at all unless restyling tells us
some object needs to be repainted. Reduces CPU usage when mousing over simple documents. (More complex documents tend to trigger unnecessary reflow bugs and so still have high CPU.) Part of #9999.
This commit is contained in:
parent
5dca005920
commit
acfd8e448c
2 changed files with 40 additions and 32 deletions
|
@ -234,6 +234,6 @@ impl<'a> BuildDisplayList<'a> {
|
|||
|
||||
#[inline]
|
||||
fn should_process(&self) -> bool {
|
||||
self.state.layout_context.shared_context().goal == ReflowGoal::ForDisplay
|
||||
true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue