mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script|layout: Do not force restyle when doing script queries (#37677)
Instead of doing a restyle whenever layout is requested, only do one if script believes that the `Document` has changed in a way that needs a restyle. In addition, track the different reasons this might be the case. This will be used later to provide better debugging output. In layout, when a restyle isn't requested, provide: - an early return if layout is up-to-date enough for the reflow goal. - skipping restyle and reflow if it isn't necessary. Testing: This should not change observable behavior, and thus is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
f9880637e9
commit
3e1cdacd07
8 changed files with 168 additions and 127 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -4722,6 +4722,7 @@ dependencies = [
|
|||
"app_units",
|
||||
"atomic_refcell",
|
||||
"base",
|
||||
"bitflags 2.9.1",
|
||||
"compositing_traits",
|
||||
"constellation_traits",
|
||||
"embedder_traits",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue