mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce VirtualMethods::children_changed()
This virtual method mimics the behaviour of mutation observers and make it more viable than the older child_inserted(), which didn't cover removed nodes and was called as many times as there were inserted nodes. A few other shortcomings where remove_child() was called directly instead of Node::remove() were also fixed while at it.
This commit is contained in:
parent
389a9ff643
commit
7b40cc9fd7
7 changed files with 194 additions and 180 deletions
|
@ -19,6 +19,7 @@
|
|||
#![feature(nonzero)]
|
||||
#![feature(owned_ascii_ext)]
|
||||
#![feature(plugin)]
|
||||
#![feature(ref_slice)]
|
||||
#![feature(rc_unique)]
|
||||
#![feature(slice_chars)]
|
||||
#![feature(str_utf16)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue