LibWeb: Use the right StyleInvalidationReason for iframe geometry change

This commit is contained in:
Andreas Kling 2024-12-25 00:53:55 +01:00 committed by Andreas Kling
parent f45e24864b
commit f625ea27d0
Notes: github-actions[bot] 2024-12-25 12:27:43 +00:00

View file

@ -63,7 +63,7 @@ void HTMLIFrameElement::attribute_changed(FlyString const& name, Optional<String
if (name == HTML::AttributeNames::width || name == HTML::AttributeNames::height) {
// FIXME: This should only invalidate the layout, not the style.
invalidate_style(DOM::StyleInvalidationReason::ElementAttributeChange);
invalidate_style(DOM::StyleInvalidationReason::HTMLIFrameElementGeometryChange);
}
}