mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
CustomStateSet directly selected the style invalidation reason used when its JS-visible set is modified. Move that mapping into CSS::Invalidation::CustomElementInvalidator. This keeps the custom-state container focused on its set contents while CSS invalidation owns the style work required by :state() selectors.
21 lines
341 B
C++
21 lines
341 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_custom_element_state_change(DOM::Element&);
|
|
void invalidate_style_after_custom_state_set_change(DOM::Element&);
|
|
|
|
}
|