Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRestyle hint on an element with text content causes whole documented to be reflowed #11024
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The test case at #10499 (comment) hits a performance problem, in addition to the text layout issue that it is demonstrating.
The issue is:
:hoverselector on the<a>element causesstyle::dom::TElement::note_restyle_hintto dirty the element and its descendants when it's hovered.<a>element.repair_if_possibletries to repair the text node but fails because its construction result contains unscanned text fragments, which we can't repair properly (#7821).compute_layout_damagepropagates this damage up and down the flow tree, causing a bunch of stuff to be reflowed.An ideal fix for this would be a way to repair scanned text fragments.