aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-border-box-002.htm
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-05-12 19:03:50 +0200
committerGitHub <noreply@github.com>2025-05-12 17:03:50 +0000
commit8808f9a4688cd63ad772f9658d581dc364ece0c8 (patch)
treea860ce1d00307562758286a4a3635499d91c4cca /tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-border-box-002.htm
parent51fa6cdcb674c68984c5636b5e9baf6f408b55c9 (diff)
downloadservo-main.tar.gz
servo-main.zip
layout: Add a repaint-only incremental layout mode (#36978)HEADmain
This change adds the simplest kind of incremental layout. When Servo detects that all style changes only require a repaint, only run stacking context tree and WebRender display list generation. This means that these kind of restyles do not need a re-layout. Instead, the existing box and fragment trees will be used and the styles of damaged nodes will be updated in their box and fragment tree nodes. This requires a new style repair DOM traversal for nodes that have had their style damaged. In addition, careful accounting of all the places where we store style must happen in order ot update those styles. Testing: This is covered by existing WPT tests as it should not change observable behavior. We have created a test case which shows a 50% speedup when run in Servo, even though there still a long way to go to match the speed of other browsers: https://gist.github.com/mrobinson/44ec87d028c0198917a7715a06dd98a0 Co-authored-by: Oriol Brufau <obrufau@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-border-box-002.htm')
0 files changed, 0 insertions, 0 deletions