Files
ladybird/Libraries/LibWeb/CSS/Invalidation/PartInvalidator.h
Andreas Kling 1ba3ec6ae7 LibWeb: Move part style invalidation into a helper
Element.cpp still handled the style invalidation fallout from part and
exportparts attribute changes directly. Move that ::part-related policy
into CSS::Invalidation::PartInvalidator.

Element continues to update the DOM token state for part attributes. The
helper now owns the style dirtiness for elements targeted through ::part
and for shadow-tree descendants exposed through exportparts.
2026-04-29 15:47:23 +02:00

21 lines
340 B
C++

/*
* 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_part_attribute_change(DOM::Element&);
void invalidate_style_after_exportparts_attribute_change(DOM::Element&);
}