servo/components/script
Anthony Ramine 58e1bd0e57 Introduce VirtualMethods::attribute_mutated()
This replaces before_remove_attr(), after_remove_attr() and after_set_attr().
The virtual method takes the mutated attribute and an AttributeMutation value
to disambiguate between "attribute is changed", "attribute is added" and
"attribute is removed".

In the case of "attribute is changed", the mutation value contains a reference
to the old value of the mutated attribute, which is used to unregister outdated
named elements when the "id" attribute is changed on an element.

This greatly simplifies the handling of attributes, which in many cases don't
have any specific behaviour whether they are removed or changed or added. It
also fixes a few bugs where things were put in before_remove_attr() instead of
after_remove_attr() (e.g. when removing an href attribute from a base element).

A few helper functions in Element were also renamed and made private.
2015-09-02 15:45:38 +02:00
..
dom Introduce VirtualMethods::attribute_mutated() 2015-09-02 15:45:38 +02:00
parse Remove AttributeHandlers 2015-08-27 16:59:04 +02:00
build.rs
Cargo.toml servo: Update ipc-channel to pick up bincode support. 2015-08-08 09:43:53 -07:00
clipboard_provider.rs Add set_clipboard_context function and relevant plumbing. Use Option more consistantly (less unwraps) in textinput's selection handling. 2015-07-29 12:19:37 -04:00
cors.rs sort all uses 2015-08-20 20:47:12 +08:00
devtools.rs Remove helper traits 2015-08-27 16:59:02 +02:00
document_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
horribly_inefficient_timers.rs Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
layout_interface.rs sort all uses 2015-08-20 20:47:12 +08:00
lib.rs Fix CharacterDataMethods to count UTF-16 code units, not code points. 2015-08-28 11:58:38 +02:00
makefile.cargo Don't generate pyc files. 2015-06-17 18:43:08 -06:00
mem.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
network_listener.rs Time distribution across script event categories. 2015-08-28 00:52:41 +02:00
page.rs Remove helper traits 2015-08-27 16:59:02 +02:00
script_task.rs Replace many uses of Attr::Value() by Attr::value() 2015-08-30 15:30:01 +02:00
textinput.rs Refactor script::textinput to count UTF-8 bytes rather than code points. 2015-08-28 11:57:40 +02:00
timers.rs sort all uses 2015-08-20 20:47:12 +08:00
webdriver_handlers.rs Remove helper traits 2015-08-27 16:59:02 +02:00