mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +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:
parent
d0ab546d7a
commit
b023308f5c
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ void CharacterData::set_data(String data)
|
||||||
if (m_data == data)
|
if (m_data == data)
|
||||||
return;
|
return;
|
||||||
m_data = move(data);
|
m_data = move(data);
|
||||||
|
if (parent())
|
||||||
|
parent()->children_changed();
|
||||||
set_needs_style_update(true);
|
set_needs_style_update(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue