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