1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

LibWeb: Make ResolvedCSSStyleDeclaration method infallible

Specifically, `style_value_for_property()` and some supporting helper
functions.
This commit is contained in:
Sam Atkins 2023-08-19 15:45:00 +01:00 committed by Andreas Kling
parent eca144a75e
commit 81b9f3ec15
2 changed files with 35 additions and 35 deletions

View file

@ -32,7 +32,7 @@ private:
virtual void visit_edges(Cell::Visitor&) override;
ErrorOr<RefPtr<StyleValue const>> style_value_for_property(Layout::NodeWithStyle const&, PropertyID) const;
RefPtr<StyleValue const> style_value_for_property(Layout::NodeWithStyle const&, PropertyID) const;
JS::NonnullGCPtr<DOM::Element> m_element;
};