mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Light dismiss dialogs on click
This commit is contained in:
Notes:
github-actions[bot]
2025-04-29 01:43:02 +00:00
Author: https://github.com/Gingeh Commit: https://github.com/LadybirdBrowser/ladybird/commit/aa9f556500a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4428 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -801,6 +801,11 @@ public:
|
||||
void set_popover_pointerdown_target(GC::Ptr<HTML::HTMLElement> target) { m_popover_pointerdown_target = target; }
|
||||
GC::Ptr<HTML::HTMLElement> popover_pointerdown_target() { return m_popover_pointerdown_target; }
|
||||
|
||||
Vector<GC::Ref<HTML::HTMLDialogElement>>& open_dialogs_list() { return m_open_dialogs_list; }
|
||||
|
||||
void set_dialog_pointerdown_target(GC::Ptr<HTML::HTMLDialogElement> target) { m_dialog_pointerdown_target = target; }
|
||||
GC::Ptr<HTML::HTMLDialogElement> dialog_pointerdown_target() { return m_dialog_pointerdown_target; }
|
||||
|
||||
size_t transition_generation() const { return m_transition_generation; }
|
||||
|
||||
// Does document represent an embedded svg img
|
||||
@@ -1209,6 +1214,10 @@ private:
|
||||
Vector<GC::Ref<HTML::HTMLElement>> m_showing_hint_popover_list;
|
||||
|
||||
GC::Ptr<HTML::HTMLElement> m_popover_pointerdown_target;
|
||||
|
||||
Vector<GC::Ref<HTML::HTMLDialogElement>> m_open_dialogs_list;
|
||||
GC::Ptr<HTML::HTMLDialogElement> m_dialog_pointerdown_target;
|
||||
|
||||
// https://dom.spec.whatwg.org/#document-allow-declarative-shadow-roots
|
||||
bool m_allow_declarative_shadow_roots { false };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user