servo/components
bors-servo aa752e4d45
Auto merge of #23711 - saschanaz:frompoint, r=Manishearth
Implement DOMPoint.fromPoint

<!-- Please describe your changes on the following line: -->

Implements DOMPoint.fromPoint and fixes codegen to use default value when an optional dictionary member got `undefined`.

PS: The codegen change is about:

```webidl
dictionary MyDictionary {
  optional short myMember = 0;
  short anotherMember;
}

[Exposed=Window, Constructor]
interface MyInterface {
  void myMethod(optional MyDictionary myDict);
};
```

```js
// The following two must behave same
new MyInterface().myMethod({ myMember: undefined, anotherMember = 0 });
new MyInterface().myMethod({ anotherMember = 0 });
```

---
<!-- 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 #23710

<!-- Either: -->
- [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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23711)
<!-- Reviewable:end -->
2019-07-05 15:01:31 -04:00
..
allocator
atoms atoms: Add some static atoms in code that is shared with gecko. 2019-05-29 16:14:33 +02:00
background_hang_monitor Fix some new warnings 2019-06-22 14:59:09 +02:00
bluetooth
bluetooth_traits Update regex to 1.1 2019-04-29 22:25:12 +09:00
canvas Introduce WebrenderExternalImageRegistry 2019-07-04 10:26:48 +02:00
canvas_traits Media crate 2019-07-04 10:25:49 +02:00
compositing Auto merge of #23707 - servo:jdm-patch-31, r=paulrouget 2019-07-05 04:13:05 -04:00
config Add media.glvideo preference 2019-07-04 10:25:47 +02:00
config_plugins
constellation Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
debugger Upgrade ws. 2019-06-12 15:01:03 -04:00
deny_public_fields
derive_common Update darling to 0.9 2019-05-23 12:14:56 +02:00
devtools Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00
devtools_traits
dom_struct Can collect webidl paths. 2019-04-20 22:39:22 +02:00
domobject_derive
embedder_traits Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdm 2019-07-03 15:20:15 -04:00
fallible
geometry
gfx Remove default-except-unstable 2019-07-01 15:43:24 +02:00
gfx_traits
hashglobe Upgrade ws. 2019-06-12 15:01:03 -04:00
jstraceable_derive
layout Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
layout_2020 Add ./mach build --with-layout-2020 2019-07-04 18:16:44 +02:00
layout_thread Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
layout_thread_2020 Add ./mach build --with-layout-2020 2019-07-04 18:16:44 +02:00
layout_traits Fix some new warnings 2019-06-22 14:59:09 +02:00
malloc_size_of Fix some new warnings 2019-06-22 14:59:09 +02:00
media Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
metrics
msg Update servo media to include global mute support 2019-07-05 11:01:19 +02:00
net Add PerformanceResourceTiming: domainLookupStart 2019-06-30 00:20:26 +02:00
net_traits Add PerformanceResourceTiming: domainLookupStart 2019-06-30 00:20:26 +02:00
pixels
profile #[global_allocator] is stable 2019-07-01 14:55:01 +02:00
profile_traits fixup! Measure layout queries blocked by ongoing layout 2019-04-17 17:23:17 +02:00
rand Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00
range Remove unused code from a bunch of crates 2019-06-03 04:18:12 +02:00
remutex Remove unused code from a bunch of crates 2019-06-03 04:18:12 +02:00
script Auto merge of #23711 - saschanaz:frompoint, r=Manishearth 2019-07-05 15:01:31 -04:00
script_layout_interface Fix some new warnings 2019-06-22 14:59:09 +02:00
script_plugins Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
script_traits Media crate 2019-07-04 10:25:49 +02:00
selectors Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
servo Auto merge of #23483 - ceyusa:player-context, r=jdm 2019-07-04 23:28:28 -04:00
servo_arc style: Rustfmt recent changes. 2019-06-04 01:03:59 -04:00
size_of_test
std_test_override
style Add ./mach build --with-layout-2020 2019-07-04 18:16:44 +02:00
style_derive Update darling to 0.9 2019-05-23 12:14:56 +02:00
style_traits Fix some new warnings 2019-06-22 14:59:09 +02:00
to_shmem style: Add an owned slice type which cbindgen can understand. 2019-05-10 12:43:02 +02:00
to_shmem_derive Update darling to 0.9 2019-05-23 12:14:56 +02:00
url style: Fix servo build, and appease tidy / fmt. 2019-04-12 12:20:15 +02:00
webdriver_server Auto merge of #23580 - georgeroman:implement_switch_to_window_and_dismiss_alert_wd_commands, r=jdm 2019-06-24 18:37:36 -04:00
webrender_traits Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
webvr Update to latest xrtest api 2019-07-01 17:42:46 -07:00
webvr_traits Update to latest xrtest api 2019-07-01 17:42:46 -07:00