LibWeb: Make factory method of DOM::AccessibilityTreeNode fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 21:30:11 +01:00 committed by Linus Groh
commit 1e03aa0ece
Notes: sideshowbarker 2024-07-17 18:46:30 +09:00
4 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ namespace Web::DOM {
class AccessibilityTreeNode final : public JS::Cell {
JS_CELL(AccessibilityTreeNode, JS::Cell)
public:
static JS::NonnullGCPtr<AccessibilityTreeNode> create(Document*, DOM::Node const*);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<AccessibilityTreeNode>> create(Document*, DOM::Node const*);
virtual ~AccessibilityTreeNode() override = default;
JS::GCPtr<DOM::Node> value() const { return m_value; }