layout: Add testing API for counting restyled and rebuilt fragments (#42817)

Now `ServoTestUtils.forceLayout()` will provide the number of fragments
that have been restyled and rebuilt. This will be useful to test that
incremental layout works well.

Testing: Adds a test using this new API

---------

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Luke Warlow <lwarlow@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oriol Brufau
2026-02-25 22:25:32 +01:00
committed by GitHub
parent 756af3bf37
commit d5c82150e0
12 changed files with 247 additions and 27 deletions

View File

@@ -13032,6 +13032,13 @@
]
},
"incremental-layout": {
"basic-fragment-tree-layout.html": [
"f249b241dd97d20295efd923d77a12fac873a911",
[
null,
{}
]
],
"layout-phases-display-list.html": [
"0f08ae12a4610987d304bdd2431ccde0bec192be",
[