mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +00:00
![]() This patch makes it possible to call Node::invalidate_style() and have that node and all of its ancestors recompute their style. We then figure out if the new style is visually different from the old style, and if so do a paint invalidation with set_needs_display(). Note that the "are they visually different" code is very incomplete! Use this to make hover effects a lot more efficient. They no longer cause a full relayout+repaint, but only a style invalidation. Style invalidations are still quite heavy though, and there's a lot of room for improvement there. :^) |
||
---|---|---|
.. | ||
.gitignore | ||
Default.css | ||
Length.h | ||
LengthBox.h | ||
PropertyID.h | ||
Selector.cpp | ||
Selector.h | ||
SelectorEngine.cpp | ||
SelectorEngine.h | ||
Specificity.h | ||
StyleDeclaration.cpp | ||
StyleDeclaration.h | ||
StyleProperties.cpp | ||
StyleProperties.h | ||
StyleResolver.cpp | ||
StyleResolver.h | ||
StyleRule.cpp | ||
StyleRule.h | ||
StyleSheet.cpp | ||
StyleSheet.h | ||
StyleValue.cpp | ||
StyleValue.h |