mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Add metadata to children update steps invocation
Currently, this metadata is only provided on the insertion steps, though I believe it would be useful to extend to the other cases as well. This metadata can aid in making optimizations for these steps by providing extra context into the type of change which was made on the child.
This commit is contained in:
parent
6c1470994b
commit
903c8860f8
Notes:
github-actions[bot]
2025-01-30 20:56:50 +00:00
Author: https://github.com/shannonbooth
Commit: 903c8860f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3373
Reviewed-by: https://github.com/ADKaster ✅
27 changed files with 52 additions and 40 deletions
|
@ -126,7 +126,7 @@ WebIDL::ExceptionOr<void> CharacterData::replace_data(size_t offset, size_t coun
|
|||
|
||||
// 12. If node’s parent is non-null, then run the children changed steps for node’s parent.
|
||||
if (parent())
|
||||
parent()->children_changed();
|
||||
parent()->children_changed(nullptr);
|
||||
|
||||
// NOTE: Since the text node's data has changed, we need to invalidate the text for rendering.
|
||||
// This ensures that the new text is reflected in layout, even if we don't end up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue