mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibWeb: Invalidate layout-transformed text on DOM text node change
This fixes an issue where programmatically changing the value of an input element wasn't reflected visually.
This commit is contained in:
@@ -41,6 +41,11 @@ static ErrorOr<DeprecatedString> apply_text_transform(DeprecatedString const& st
|
||||
return string;
|
||||
}
|
||||
|
||||
void TextNode::invalidate_text_for_rendering()
|
||||
{
|
||||
m_text_for_rendering = {};
|
||||
}
|
||||
|
||||
DeprecatedString const& TextNode::text_for_rendering() const
|
||||
{
|
||||
if (m_text_for_rendering.is_null())
|
||||
|
||||
Reference in New Issue
Block a user