mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Make WrapperGenerator generate nullable wrapper types
Previously it was not doing so, and some code relied on this not being the case. In particular, set_caption, set_t_head and set_t_foot in HTMLTableElement relied on this. This commit is not here to fix this, so I added an assertion to make it equivalent to a reference for now.
This commit is contained in:
@@ -22,17 +22,17 @@ public:
|
||||
virtual ~HTMLTableElement() override;
|
||||
|
||||
RefPtr<HTMLTableCaptionElement> caption();
|
||||
void set_caption(HTMLTableCaptionElement&);
|
||||
void set_caption(HTMLTableCaptionElement*);
|
||||
NonnullRefPtr<HTMLTableCaptionElement> create_caption();
|
||||
void delete_caption();
|
||||
|
||||
RefPtr<HTMLTableSectionElement> t_head();
|
||||
DOM::ExceptionOr<void> set_t_head(HTMLTableSectionElement& thead);
|
||||
DOM::ExceptionOr<void> set_t_head(HTMLTableSectionElement* thead);
|
||||
NonnullRefPtr<HTMLTableSectionElement> create_t_head();
|
||||
void delete_t_head();
|
||||
|
||||
RefPtr<HTMLTableSectionElement> t_foot();
|
||||
DOM::ExceptionOr<void> set_t_foot(HTMLTableSectionElement& thead);
|
||||
DOM::ExceptionOr<void> set_t_foot(HTMLTableSectionElement* tfoot);
|
||||
NonnullRefPtr<HTMLTableSectionElement> create_t_foot();
|
||||
void delete_t_foot();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user