Explorar el Código

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.
Andreas Kling hace 3 años
padre
commit
261cd1d4c7

+ 3 - 3
Meta/Lagom/Tools/CodeGenerators/LibWeb/Generate_CSS_PropertyID_cpp.cpp

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