LibWeb: Update the <details> layout tree when it is opened/closed

Otherwise, the arrow painted next to the <details> element does not
update.

Using a screenshot test here because apparently the direction of the
arrow has no effect on the layout or paint trees.
This commit is contained in:
Timothy Flynn 2025-05-09 10:35:07 -04:00 committed by Andreas Kling
commit 30e8f3f1ad
Notes: github-actions[bot] 2025-05-09 19:40:29 +00:00
5 changed files with 23 additions and 0 deletions

View file

@ -112,6 +112,7 @@ enum class SetNeedsLayoutReason {
#define ENUMERATE_SET_NEEDS_LAYOUT_TREE_UPDATE_REASONS(X) \
X(ElementSetInnerHTML) \
X(DetailsElementOpenedOrClosed) \
X(HTMLInputElementSrcAttribute) \
X(HTMLObjectElementUpdateLayoutAndChildObjects) \
X(KeyframeEffect) \