1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Andreas Kling 8c88ee1165 LibWeb: Only invalidate stacking context tree for opacity/z-index change
I came across some websites that change an elements CSS "opacity" in
their :hover selectors. That caused us to relayout on hover, which we'd
like to avoid.

With this patch, we now check if a property only affects the stacking
context tree, and if nothing layout-affecting has changed, we only
invalidate the stacking context tree, causing it to be rebuilt on next
paint or hit test.

This makes :hover { opacity: ... } rules much faster. :^)
2022-03-21 13:03:33 +01:00
..
WrapperGenerator LibWeb: Handle nullish this_value when creating idl functions 2022-03-19 17:40:23 +00:00
CMakeLists.txt Meta: Port Generate_CSS_PropertyID_cpp to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
Generate_CSS_MediaFeatureID_cpp.cpp Meta: Generate functions for validating media-query values 2022-03-09 23:06:30 +01:00
Generate_CSS_MediaFeatureID_h.cpp Meta: Generate functions for validating media-query values 2022-03-09 23:06:30 +01:00
Generate_CSS_PropertyID_cpp.cpp LibWeb: Only invalidate stacking context tree for opacity/z-index change 2022-03-21 13:03:33 +01:00
Generate_CSS_PropertyID_h.cpp LibWeb: Only invalidate stacking context tree for opacity/z-index change 2022-03-21 13:03:33 +01:00
Generate_CSS_ValueID_cpp.cpp Meta: Port Generate_CSS_ValueID_cpp to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
Generate_CSS_ValueID_h.cpp Meta: Port Generate_CSS_ValueID_h to LibMain/Core::Stream 2022-03-10 09:49:13 -05:00
GeneratorUtil.h Meta: Generate CSS::MediaFeatureID enum 2022-03-09 23:06:30 +01:00