Files
ladybird/Libraries/LibWeb/CSS/Invalidation/HasMutationInvalidator.h
Andreas Kling 85e33738f5 LibWeb: Move :has() element invalidation into the helper
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.
2026-04-29 15:47:23 +02:00

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&);
}