implement basic infra for ResizeObserver (#31108)

This commit is contained in:
Gregory Terzian 2024-06-18 00:44:07 +08:00 committed by GitHub
parent 3c1c395dfc
commit 3d78d60619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 706 additions and 4 deletions

View file

@ -2110,6 +2110,8 @@ impl Node {
MutationObserver::queue_a_mutation_record(parent, mutation);
}
node.owner_doc().remove_script_and_layout_blocker();
ScriptThread::note_rendering_opportunity(window_from_node(parent).pipeline_id());
}
/// <https://dom.spec.whatwg.org/#concept-node-replace-all>
@ -2233,6 +2235,7 @@ impl Node {
MutationObserver::queue_a_mutation_record(parent, mutation);
}
parent.owner_doc().remove_script_and_layout_blocker();
ScriptThread::note_rendering_opportunity(window_from_node(parent).pipeline_id());
}
/// <https://dom.spec.whatwg.org/#concept-node-clone>