1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:08:10 +00:00

LibWeb: Simplify ComputedCSSStyleDeclaration property lookup

Factor out the per-property StyleValue generation to a separate function
so we don't have to repeat ourselves so much in property(). :^)
This commit is contained in:
Andreas Kling 2021-09-18 13:14:40 +02:00
parent 1735d978ed
commit 99f9667e5d
2 changed files with 81 additions and 219 deletions

View file

@ -27,6 +27,8 @@ public:
private:
explicit ComputedCSSStyleDeclaration(DOM::Element&);
RefPtr<StyleValue> style_value_for_property(Layout::NodeWithStyle const&, PropertyID) const;
NonnullRefPtr<DOM::Element> m_element;
};