Files
ladybird/Libraries/LibWeb/CSS/Invalidation/ElementStateInvalidator.h
Andreas Kling c93dad7600 LibWeb: Move element state style invalidation into a helper
Several HTML element state changes directly selected style invalidation
reasons from their element implementations. Move those mappings into a
new CSS::Invalidation::ElementStateInvalidator helper.

This keeps details, dialog, option, and select code focused on their own
state changes while CSS invalidation owns the style work those changes
require. The existing invalidation breadth is preserved.
2026-04-29 15:47:23 +02:00

23 lines
468 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_modal_state_change(DOM::Element&);
void invalidate_style_after_open_state_change(DOM::Element&);
void invalidate_style_after_option_selected_state_change(DOM::Element&);
void invalidate_style_after_select_open_state_change(DOM::Element&);
}