mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Document.cpp still handled CSS fallout from stylesheet media query match changes directly. Move active stylesheet evaluation, rule-cache invalidation, shadow-root fallout, and slot propagation into the CSS invalidation helper. Document continues to decide when media queries should be evaluated. The helper now owns the style invalidation consequences when stylesheet media queries change match state.
20 lines
266 B
C++
20 lines
266 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Web::DOM {
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
namespace Web::CSS::Invalidation {
|
|
|
|
void evaluate_media_rules_and_invalidate_style(DOM::Document&);
|
|
|
|
}
|