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:
parent
1735d978ed
commit
99f9667e5d
2 changed files with 81 additions and 219 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue