mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
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:
parent
03256a2543
commit
8cbe27b2f9
Notes:
github-actions[bot]
2025-07-16 22:44:32 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 8cbe27b2f9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5474
6 changed files with 74 additions and 29 deletions
22
Libraries/LibWeb/DOM/StyleInvalidator.h
Normal file
22
Libraries/LibWeb/DOM/StyleInvalidator.h
Normal 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);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue