Files
ladybird/Libraries/LibWeb/CSS/Invalidation/LinkInvalidator.h
Andreas Kling 84f4140226 LibWeb: Move hyperlink style invalidation into a helper
HTML and SVG link elements both encoded the same pseudo-class list for
hyperlink state changes. Move that CSS policy into LinkInvalidator and
have both call sites delegate to it.

This keeps element-specific code focused on detecting hyperlink state
changes, while the helper owns the affected selector features.
2026-04-29 15:47:23 +02:00

20 lines
268 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_hyperlink_state_change(DOM::Element&);
}