mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibWeb: Add missing StyleInvalidationReason for HTMLDialogElement
We were accidentally using NodeRemove instead of a unique reason.
This commit is contained in:
parent
83b1ead1e7
commit
ec2b568919
Notes:
github-actions[bot]
2025-08-20 07:16:50 +00:00
Author: https://github.com/awesomekling
Commit: ec2b568919
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5917
Reviewed-by: https://github.com/gmta ✅
2 changed files with 2 additions and 1 deletions
|
@ -63,6 +63,7 @@ enum class ShouldComputeRole {
|
|||
X(EditingInsertion) \
|
||||
X(ElementAttributeChange) \
|
||||
X(ElementSetShadowRoot) \
|
||||
X(HTMLDialogElementSetIsModal) \
|
||||
X(HTMLHyperlinkElementHrefChange) \
|
||||
X(HTMLIFrameElementGeometryChange) \
|
||||
X(HTMLInputElementSetChecked) \
|
||||
|
|
|
@ -467,7 +467,7 @@ void HTMLDialogElement::set_is_modal(bool is_modal)
|
|||
if (m_is_modal == is_modal)
|
||||
return;
|
||||
m_is_modal = is_modal;
|
||||
invalidate_style(DOM::StyleInvalidationReason::NodeRemove);
|
||||
invalidate_style(DOM::StyleInvalidationReason::HTMLDialogElementSetIsModal);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element:is-valid-invoker-command-steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue