LibWeb: Move embedded content style invalidation into a helper

IFrame geometry changes and object representation changes directly
selected style invalidation reasons from their HTML element classes.
Move those mappings into a new
CSS::Invalidation::EmbeddedContentInvalidator.

The HTML elements continue to own their loading, representation, and
layout-tree side effects. CSS invalidation now owns the style dirtiness
associated with those embedded-content changes.
This commit is contained in:
Andreas Kling
2026-04-29 12:31:50 +02:00
committed by Alexander Kalenik
parent 007dc28d16
commit 09aefc2cd5
Notes: github-actions[bot] 2026-04-29 13:48:29 +00:00
5 changed files with 50 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2026-present, the Ladybird developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Web::DOM {
class Element;
}
namespace Web::CSS::Invalidation {
void invalidate_style_after_embedded_content_geometry_change(DOM::Element&);
void invalidate_style_after_object_representation_change(DOM::Element&);
}