summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleResolver.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-08-16 16:07:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-08-16 23:26:16 +0200
commit0fba71a6550753e13d9561ab80f6885981b4aa70 (patch)
tree52154bcdbd1529c9236ae7bf670f36c652ae1ce3 /Userland/Libraries/LibWeb/CSS/StyleResolver.h
parentea2b02186c11fc3d077673064efb9ad003d9a2fb (diff)
downloadserenity-0fba71a6550753e13d9561ab80f6885981b4aa70.zip
LibWeb: Replace is_inherited_property() with generated code
We already include the inheritance for each property in Properties.json, so made sense to use that instead of a list in StyleResolver. Added `inherited: true` to a couple of properties to match the previous code's behavior. One of those had a FIXME which I've moved to the JSON file, which is hacky, but it works.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleResolver.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleResolver.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleResolver.h b/Userland/Libraries/LibWeb/CSS/StyleResolver.h
index 7fa000c016..f21415706f 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleResolver.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleResolver.h
@@ -41,8 +41,6 @@ public:
CustomPropertyResolutionTuple resolve_custom_property_with_specificity(DOM::Element&, String const&) const;
Optional<StyleProperty> resolve_custom_property(DOM::Element&, String const&) const;
- static bool is_inherited_property(CSS::PropertyID);
-
private:
template<typename Callback>
void for_each_stylesheet(Callback) const;