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