1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibWeb: Notify parent when DOM::CharacterData content changes

This makes <style> elements reparse the CSS when their text child is
programmatically changed.
This commit is contained in:
Andreas Kling 2022-02-25 18:40:07 +01:00
parent d0ab546d7a
commit b023308f5c

View file

@ -24,6 +24,8 @@ void CharacterData::set_data(String data)
if (m_data == data)
return;
m_data = move(data);
if (parent())
parent()->children_changed();
set_needs_style_update(true);
}