mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
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.
23 lines
425 B
C++
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&);
|
|
|
|
}
|