LibWeb: Mark CSS properties as not affecting stacking context by default

We were mistakenly treating all CSS properties as if changing them
requires a rebuild of the stacking context tree.
This commit is contained in:
Andreas Kling 2022-03-25 00:59:42 +01:00
commit 261cd1d4c7
Notes: sideshowbarker 2024-07-17 16:46:48 +09:00

View file

@ -163,11 +163,11 @@ bool property_affects_stacking_context(PropertyID property_id)
properties.for_each_member([&](auto& name, auto& value) {
VERIFY(value.is_object());
bool affects_layout = true;
bool affects_stacking_context = false;
if (value.as_object().has("affects-stacking-context"))
affects_layout = value.as_object().get("affects-stacking-context").to_bool();
affects_stacking_context = value.as_object().get("affects-stacking-context").to_bool();
if (affects_layout) {
if (affects_stacking_context) {
auto member_generator = generator.fork();
member_generator.set("name:titlecase", title_casify(name));
member_generator.append(R"~~~(