Files
ladybird/Libraries/LibWeb/CSS/Invalidation/MediaQueryInvalidator.h
Andreas Kling b8c2469566 LibWeb: Move media query style invalidation into a helper
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.
2026-04-29 15:47:23 +02:00

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