1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

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
parent 2c8a689390
commit 1e03aa0ece
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; }