diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-11-04 17:10:12 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-10 14:38:49 +0100 |
commit | 901a990b1b13ce721af0da4744adf6fdf753dffb (patch) | |
tree | 64464d2e82aa62e1cb9e45717c306e0b675c6018 /Userland/Libraries/LibWeb/CSS | |
parent | 1e53768f1bd13ab9e259ce06488e4115d8e2fb85 (diff) | |
download | serenity-901a990b1b13ce721af0da4744adf6fdf753dffb.zip |
LibWeb: Remove concept of CSS pseudo-properties
We don't need them any more, so they're gone. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index e26547fb66..96c26702f4 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -123,13 +123,8 @@ static bool contains(Edge a, Edge b) return a == b || b == Edge::All; } -static void set_property_expanding_shorthands(StyleProperties& style, CSS::PropertyID property_id, StyleValue const& value, DOM::Document& document, bool is_internally_generated_pseudo_property = false) +static void set_property_expanding_shorthands(StyleProperties& style, CSS::PropertyID property_id, StyleValue const& value, DOM::Document& document) { - if (is_pseudo_property(property_id) && !is_internally_generated_pseudo_property) { - dbgln("Ignoring non-internally-generated pseudo property: {}", string_from_property_id(property_id)); - return; - } - auto assign_edge_values = [&style](PropertyID top_property, PropertyID right_property, PropertyID bottom_property, PropertyID left_property, auto const& values) { if (values.size() == 4) { style.set_property(top_property, values[0]); |