LibWeb: Move perform_pending_style_invalidations() in StyleInvalidator

This change introduces StyleInvalidator as a preparation for upcoming
change that will make `perform_pending_style_invalidations()` take care
of pending invalidation sets.
This commit is contained in:
Aliaksandr Kalenik 2025-07-15 18:43:32 +02:00 committed by Andreas Kling
commit 8cbe27b2f9
Notes: github-actions[bot] 2025-07-16 22:44:32 +00:00
6 changed files with 74 additions and 29 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGC/CellAllocator.h>
#include <LibWeb/Forward.h>
namespace Web::DOM {
class StyleInvalidator : public GC::Cell {
GC_CELL(StyleInvalidator, GC::Cell);
GC_DECLARE_ALLOCATOR(StyleInvalidator);
public:
void perform_pending_style_invalidations(Node& node, bool invalidate_entire_subtree);
};
}