mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
construct: When repairing styles for incremental reflow, only repair
styles of nodes that represent the dirty node. Fixes jumpiness on many pages; e.g. the WPT results pages. For some reason, this would not reproduce with an automated test.
This commit is contained in:
parent
86476804ca
commit
ac5e7ec035
1 changed files with 5 additions and 0 deletions
|
@ -1272,6 +1272,11 @@ impl<'a> FlowConstructor<'a> {
|
||||||
for fragment in inline_fragments_construction_result.fragments
|
for fragment in inline_fragments_construction_result.fragments
|
||||||
.fragments
|
.fragments
|
||||||
.iter_mut() {
|
.iter_mut() {
|
||||||
|
// Only mutate the styles of fragments that represent the dirty node.
|
||||||
|
if fragment.node != node.opaque() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
match fragment.specific {
|
match fragment.specific {
|
||||||
SpecificFragmentInfo::InlineBlock(ref mut inline_block_fragment) => {
|
SpecificFragmentInfo::InlineBlock(ref mut inline_block_fragment) => {
|
||||||
flow::mut_base(&mut *inline_block_fragment.flow_ref).restyle_damage
|
flow::mut_base(&mut *inline_block_fragment.flow_ref).restyle_damage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue