mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Use the right StyleInvalidationReason for iframe geometry change
This commit is contained in:
committed by
Andreas Kling
parent
f45e24864b
commit
f625ea27d0
@@ -63,7 +63,7 @@ void HTMLIFrameElement::attribute_changed(FlyString const& name, Optional<String
|
|||||||
|
|
||||||
if (name == HTML::AttributeNames::width || name == HTML::AttributeNames::height) {
|
if (name == HTML::AttributeNames::width || name == HTML::AttributeNames::height) {
|
||||||
// FIXME: This should only invalidate the layout, not the style.
|
// FIXME: This should only invalidate the layout, not the style.
|
||||||
invalidate_style(DOM::StyleInvalidationReason::ElementAttributeChange);
|
invalidate_style(DOM::StyleInvalidationReason::HTMLIFrameElementGeometryChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user