mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Node.cpp still contained the CSS policy for full style invalidation and property-based invalidation plans. Move that logic into CSS::Invalidation::NodeInvalidator. Node remains the public DOM entry point for callers that need to invalidate style. The helper now owns the :has() metadata probing, style-scope plan lookup, and subtree/sibling invalidation scheduling.
29 lines
560 B
C++
29 lines
560 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Vector.h>
|
|
#include <LibWeb/CSS/InvalidationSet.h>
|
|
#include <LibWeb/DOM/StyleInvalidationReason.h>
|
|
|
|
namespace Web::DOM {
|
|
|
|
class Node;
|
|
|
|
}
|
|
|
|
namespace Web::CSS::Invalidation {
|
|
|
|
void invalidate_node_style(DOM::Node&, DOM::StyleInvalidationReason);
|
|
void invalidate_node_style_for_properties(
|
|
DOM::Node&,
|
|
DOM::StyleInvalidationReason,
|
|
Vector<CSS::InvalidationSet::Property> const&,
|
|
DOM::StyleInvalidationOptions);
|
|
|
|
}
|