mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Enforce linking to spec for method implementations via macros
This commit is contained in:
parent
7474b29510
commit
3a1d140ab5
23 changed files with 137 additions and 11 deletions
|
@ -38,11 +38,24 @@ impl XMLHttpRequestEventTargetDerived for EventTarget {
|
|||
}
|
||||
|
||||
impl XMLHttpRequestEventTargetMethods for XMLHttpRequestEventTarget {
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onloadstart
|
||||
event_handler!(loadstart, GetOnloadstart, SetOnloadstart);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onprogress
|
||||
event_handler!(progress, GetOnprogress, SetOnprogress);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onabort
|
||||
event_handler!(abort, GetOnabort, SetOnabort);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onerror
|
||||
event_handler!(error, GetOnerror, SetOnerror);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onload
|
||||
event_handler!(load, GetOnload, SetOnload);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-ontimeout
|
||||
event_handler!(timeout, GetOntimeout, SetOntimeout);
|
||||
|
||||
// https://xhr.spec.whatwg.org/#handler-xhr-onloadend
|
||||
event_handler!(loadend, GetOnloadend, SetOnloadend);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue