Commit graph

22 commits

Author SHA1 Message Date
Tetsuharu OHZEKI
f78e561746 Use Cell/RefCell for interior mutability of Event. 2014-05-30 03:53:07 +09:00
Josh Matthews
003e5bcd46 Port modern callback handling code from Gecko, and copy related WebIDL parser bits too. 2014-05-27 20:43:52 +02:00
bors-servo
2545647ceb auto merge of #2482 : Ms2ger/servo/rev_iter, r=jdm 2014-05-23 19:22:31 -04:00
Ms2ger
81e652ae3d Replace deprecated rev_iter() by iter().rev(). 2014-05-23 22:30:31 +02:00
Tetsuharu OHZEKI
46d31632e0 Initial spec-incompliant implementation of default click action for anchor elements.
This is cherry-picked from https://github.com/mozilla/servo/pull/1688:

  * Initial spec-incompliant implementation of default click action for anchor elements.
  * Add documentation; gut the new document URL loading method
    and move it all into the new Window method.
  * Add test for default event prevention.

Original developer: Josh Matthews <josh@joshmatthews.net>
2014-05-23 23:30:09 +09:00
Josh Matthews
91278da9dd Address review comments. 2014-05-03 14:18:31 -04:00
Josh Matthews
0f2d0b1dc3 Address review comments. 2014-05-03 14:18:31 -04:00
Josh Matthews
7b3e6d1f21 Remove all root collections. 2014-05-03 14:18:31 -04:00
Josh Matthews
7daa97c7e5 Remove abstract_self. 2014-05-03 14:18:30 -04:00
Josh Matthews
76783b029e Move WebIDL methods to traits implemented by JSRef types. 2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c Implement safe rooting strategy via Unrooted, Root, JSRef, and JS. 2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32 Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing. 2014-05-03 14:18:30 -04:00
Ms2ger
558986c87e Make chain in eventdispatcher.rs use Vec. 2014-04-28 23:06:26 +02:00
Tetsuharu OHZEKI
0fccf5e386 Split TCast::to into TCast::to_unchecked and TCast::to. 2014-03-20 23:41:59 +09:00
Josh Matthews
64c0de9fe7 Warning police. 2014-03-18 09:31:22 -05:00
Tetsuharu OHZEKI
315bf3b42a Use Option::or_else in eventdispatcher::dispatch_event. 2014-03-09 00:16:45 +09:00
Josh Matthews
625325434b Implement JSManaged for DOM objects. 2014-02-24 15:16:42 -05:00
Patrick Walton
199ca33b72 script: Make trees less generic 2013-12-17 13:46:14 -08:00
bors-servo
da4ca51049 auto merge of #1213 : jdm/servo/loadevent, r=kmcallister
It's good enough for now, since we don't track document resources at all. Should be good enough for #841.
2013-11-12 01:01:34 -08:00
Josh Matthews
3b3f891455 Add a spec-incompliant load event. 2013-11-11 16:50:58 +09:00
Josh Matthews
9e99b07723 Remove unneeded clones. 2013-11-07 14:46:18 -05:00
Josh Matthews
88f5c2b133 Add basic event dispatch with bubbling, capturing, and propagation interruption. 2013-11-05 12:58:28 -05:00