mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Element.cpp still contained the CSS logic for deciding whether an invalidation set references features present on an element. Move that matcher into CSS::Invalidation::InvalidationSetMatcher. The helper uses Element's public API for classes, id, attributes, pseudo-class state, and removed-attribute tracking. This keeps Element focused on DOM state while CSS::Invalidation owns selector feature matching.
26 lines
347 B
C++
26 lines
347 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 {
|
|
|
|
class InvalidationSet;
|
|
|
|
}
|
|
|
|
namespace Web::CSS::Invalidation {
|
|
|
|
bool element_matches_any_invalidation_set_property(DOM::Element const&, InvalidationSet const&);
|
|
|
|
}
|