mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-29 04:30:24 +00:00
25 lines
732 B
C++
25 lines
732 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2026-present, the Ladybird developers
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <LibWeb/CSS/Invalidation/EmbeddedContentInvalidator.h>
|
||
|
|
#include <LibWeb/DOM/Element.h>
|
||
|
|
#include <LibWeb/DOM/StyleInvalidationReason.h>
|
||
|
|
|
||
|
|
namespace Web::CSS::Invalidation {
|
||
|
|
|
||
|
|
void invalidate_style_after_embedded_content_geometry_change(DOM::Element& element)
|
||
|
|
{
|
||
|
|
// FIXME: This should only invalidate the layout, not the style.
|
||
|
|
element.invalidate_style(DOM::StyleInvalidationReason::HTMLIFrameElementGeometryChange);
|
||
|
|
}
|
||
|
|
|
||
|
|
void invalidate_style_after_object_representation_change(DOM::Element& element)
|
||
|
|
{
|
||
|
|
element.invalidate_style(DOM::StyleInvalidationReason::HTMLObjectElementUpdateLayoutAndChildObjects);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|