mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Document.cpp still knew how style changes on a slot propagate to assigned light-DOM nodes. Move that flat-tree inheritance invalidation into CSS::Invalidation::SlotInvalidator. The style update walk continues to decide when an element's style changed. The helper now owns the ::slotted() consequence of dirtying assigned slottables for a changed slot.
17 lines
351 B
C++
17 lines
351 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/Slottable.h>
|
|
|
|
namespace Web::CSS::Invalidation {
|
|
|
|
void invalidate_style_after_slottable_assignment_change(DOM::Slottable const&);
|
|
void invalidate_assigned_slottables_after_slot_style_change(DOM::Element&);
|
|
|
|
}
|