mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
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.
21 lines
340 B
C++
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&);
|
|
|
|
}
|