mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/HTML: Bring HTMLDialogElement up to spec
I missed when these changes actually happened, but the big differences here are that a few steps got extracted into their own algorithms; and the dialog now only does things when it's attached to a fully-active document, instead of immediately. I've imported a WPT test that exercises this by calling show() on an unattached dialog.
This commit is contained in:
parent
a1fbcfb4c6
commit
58b32814e0
Notes:
github-actions[bot]
2025-12-04 14:48:20 +00:00
Author: https://github.com/AtkinsSJ
Commit: 58b32814e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6990
3 changed files with 155 additions and 79 deletions
|
|
@ -56,8 +56,13 @@ private:
|
|||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
virtual void inserted() override;
|
||||
virtual void attribute_changed(FlyString const& local_name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
|
||||
|
||||
void queue_a_dialog_toggle_event_task(String old_state, String new_state, GC::Ptr<DOM::Element> source);
|
||||
|
||||
void run_dialog_setup_steps();
|
||||
void run_dialog_cleanup_steps();
|
||||
void run_dialog_focusing_steps();
|
||||
|
||||
void set_close_watcher();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue