Files
ladybird/Libraries/LibWeb/CSS/Invalidation/LanguageInvalidator.h
Andreas Kling bc0059cfd5 LibWeb: Move text directionality invalidation into the helper
CharacterData.cpp still handled the style invalidation fallout from text
mutations under dir=auto ancestors directly. Move that behavior into the
CSS language invalidation helper.

CharacterData continues to own text replacement and layout text updates.
The helper now owns the inherited :dir() restyle and :has(:dir(...))
ancestor scheduling that can follow from text content changes.
2026-04-29 15:47:23 +02:00

23 lines
425 B
C++

/*
* Copyright (c) 2026-present, the Ladybird developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Web::DOM {
class CharacterData;
class Element;
}
namespace Web::CSS::Invalidation {
void invalidate_style_after_language_change(DOM::Element&);
void invalidate_style_after_directionality_change(DOM::Element&);
void invalidate_style_after_text_directionality_change(DOM::CharacterData&);
}