From bec0c96aea47df6cbe13a35fcb70292b3329e7c4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 16 Mar 2022 20:34:48 +0100 Subject: [PATCH] LibWeb: Mark a bunch of CSS border-* properties as not affecting layout border*-width and border-collapse affect layout, but all the color, style and radius ones will only need a repaint if changed. :^) --- Userland/Libraries/LibWeb/CSS/Properties.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index 6817448c85..1e610476d3 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -164,6 +164,7 @@ ] }, "border-bottom-color": { + "affects-layout": false, "initial": "currentcolor", "inherited": false, "valid-types": [ @@ -174,6 +175,7 @@ ] }, "border-bottom-left-radius": { + "affects-layout": false, "initial": "0", "inherited": false, "max-values": 2, @@ -183,6 +185,7 @@ ] }, "border-bottom-right-radius": { + "affects-layout": false, "initial": "0", "inherited": false, "max-values": 2, @@ -192,6 +195,7 @@ ] }, "border-bottom-style": { + "affects-layout": false, "initial": "none", "inherited": false, "valid-identifiers": [ @@ -223,6 +227,7 @@ ] }, "border-color": { + "affects-layout": false, "initial": "currentcolor", "longhands": [ "border-top-color", @@ -247,6 +252,7 @@ ] }, "border-left-color": { + "affects-layout": false, "initial": "currentcolor", "inherited": false, "valid-types": [ @@ -257,6 +263,7 @@ ] }, "border-left-style": { + "affects-layout": false, "initial": "none", "inherited": false, "valid-identifiers": [ @@ -288,6 +295,7 @@ ] }, "border-radius": { + "affects-layout": false, "inherited": false, "initial": "0", "longhands": [ @@ -298,6 +306,7 @@ ] }, "border-right-color": { + "affects-layout": false, "initial": "currentcolor", "inherited": false, "valid-types": [ @@ -308,6 +317,7 @@ ] }, "border-right-style": { + "affects-layout": false, "initial": "none", "inherited": false, "valid-identifiers": [ @@ -346,6 +356,7 @@ ] }, "border-style": { + "affects-layout": false, "initial": "none", "longhands": [ "border-top-style", @@ -368,6 +379,7 @@ ] }, "border-top-color": { + "affects-layout": false, "initial": "currentcolor", "inherited": false, "quirks": [ @@ -375,6 +387,7 @@ ] }, "border-top-left-radius": { + "affects-layout": false, "initial": "0", "inherited": false, "max-values": 2, @@ -384,6 +397,7 @@ ] }, "border-top-right-radius": { + "affects-layout": false, "initial": "0", "inherited": false, "max-values": 2, @@ -393,6 +407,7 @@ ] }, "border-top-style": { + "affects-layout": false, "initial": "none", "inherited": false, "valid-identifiers": [