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:
Patrick Walton 2016-03-15 16:13:46 -07:00
parent 5dca005920
commit acfd8e448c
2 changed files with 40 additions and 32 deletions

View file

@ -234,6 +234,6 @@ impl<'a> BuildDisplayList<'a> {
#[inline]
fn should_process(&self) -> bool {
self.state.layout_context.shared_context().goal == ReflowGoal::ForDisplay
true
}
}