mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Element exposed a small method that encoded how :has()-affected elements are marked dirty. Move that policy into CSS::Invalidation alongside the rest of the :has() mutation invalidation helpers. This keeps Element focused on DOM state while preserving the existing subject and non-subject :has() invalidation behavior.
25 lines
469 B
C++
25 lines
469 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/StyleInvalidationReason.h>
|
|
|
|
namespace Web::DOM {
|
|
|
|
class Element;
|
|
class Node;
|
|
|
|
}
|
|
|
|
namespace Web::CSS::Invalidation {
|
|
|
|
void invalidate_element_if_affected_by_has(DOM::Element&);
|
|
void schedule_has_invalidation_for_node(DOM::Node&, DOM::StyleInvalidationReason);
|
|
void schedule_has_invalidation_for_same_parent_move(DOM::Node&);
|
|
|
|
}
|