servo/components/script
bors-servo e2d980a071
Auto merge of #26480 - CYBAI:missing-on, r=jdm
Prefix `on` for function name of inline events

While checking what needs to be done for the spec-update, I've noticed the logic of checking `is window-reflecting element (e.g. body and frameset)` is already handled by the `is` casting function.

However, we still failed to pass the tests because we're missing `on` prefix for inline functions.

I'm not sure if this patch is good enough (or maybe at least I need to add a comment for why adding `on` prefix?).

Besides, I checked [how Gecko handles](https://searchfox.org/mozilla-central/rev/8bc4e35c9bb47c1fe3131e6155d9f482e1efef9a/dom/events/EventListenerManager.cpp#1012-1022) and looks like they also just pass the atom directly.
But, the [generated atom](https://searchfox.org/mozilla-central/source/__GENERATED__/xpcom/ds/nsGkAtomList.h#775) is prefixed with `on` which is correct to just pass it into the `CompileFunction`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26479
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-06-04 16:45:22 -04:00
..
docs Update doc links and code snippet for trace implementation 2020-05-03 19:03:33 +05:30
dom Auto merge of #26480 - CYBAI:missing-on, r=jdm 2020-06-04 16:45:22 -04:00
task_source remove unnecessary thread in filereader, add stream TODO 2019-12-10 14:55:22 +08:00
animation_timeline.rs Move most animation processing to script 2020-05-12 10:22:14 +02:00
animations.rs Add support for remaining animation and transition events 2020-05-26 20:34:58 +02:00
body.rs partially integrate streaming request bodies with http re-direct 2020-06-04 11:38:38 +08:00
build.rs Update error message. 2020-05-04 11:52:49 -04:00
canvas_state.rs Refactor ImageCache::find_image_or_metadata API. 2020-04-17 11:58:18 -04:00
Cargo.toml Implement GPURenderPipeline 2020-05-30 11:38:32 +05:30
clipboard_provider.rs
devtools.rs Report real caller information for console APIs to devtools. 2020-04-28 21:32:41 -04:00
document_loader.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
euclidext.rs Update euclid 2020-04-07 08:51:08 -07:00
fetch.rs integrate readablestream with fetch and blob 2020-06-04 11:38:35 +08:00
image_listener.rs Refactor ImageCache::find_image_or_metadata API. 2020-04-17 11:58:18 -04:00
init.rs allow for a service worker manager per origin 2020-04-05 22:43:40 +08:00
layout_image.rs
lib.rs serviceworker: make job queue unique per origin 2020-05-21 13:21:21 +08:00
mem.rs
microtask.rs Propagate user interacting flag to timers and promises 2020-03-26 08:36:57 +01:00
network_listener.rs #24468 Performance::queue_entries return the index of the added performance entry 2019-12-13 13:41:47 -05:00
realms.rs rename compartment to realm 2020-01-24 20:52:36 +05:30
script_module.rs require entered realm, use aes, to append native promise handler 2020-06-04 11:38:37 +08:00
script_runtime.rs integrate readablestream with fetch and blob 2020-06-04 11:38:35 +08:00
script_thread.rs reading unminified scripts from disk 2020-06-02 21:23:45 +02:00
serviceworker_manager.rs add a control chan to workers, use to signal shutdown 2020-06-03 12:32:47 +08:00
stylesheet_loader.rs Properly set the url on the Response object when the response is an opaqueredirect 2020-05-06 20:08:26 +02:00
stylesheet_set.rs
task.rs partially integrate streaming request bodies with http re-direct 2020-06-04 11:38:38 +08:00
task_manager.rs impl timer-task-source, dedicated time-out mechanism for service-worker 2019-11-19 14:32:21 +08:00
task_queue.rs
test.rs Modify script to prevent further violations of snake_case 2020-01-18 14:22:15 +05:30
textinput.rs Form constraints validation 2020-04-02 10:16:46 +02:00
timers.rs Propagate user interacting flag to timers and promises 2020-03-26 08:36:57 +01:00
unpremultiplytable.rs
webdriver_handlers.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00