mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Andrew Kaster
parent
6c1470994b
commit
903c8860f8
Notes:
github-actions[bot]
2025-01-30 20:56:50 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/903c8860f8b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3373 Reviewed-by: https://github.com/ADKaster ✅
@@ -766,9 +766,9 @@ private:
|
||||
|
||||
GC_DEFINE_ALLOCATOR(SourceElementSelector);
|
||||
|
||||
void HTMLMediaElement::children_changed()
|
||||
void HTMLMediaElement::children_changed(ChildrenChangedMetadata const* metadata)
|
||||
{
|
||||
Base::children_changed();
|
||||
Base::children_changed(metadata);
|
||||
|
||||
if (m_source_element_selector)
|
||||
m_source_element_selector->process_next_candidate().release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
Reference in New Issue
Block a user