Files
servo/components/script/dom
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
..
2019-05-19 22:14:28 +02:00
2019-07-06 01:15:24 +09:00
2019-06-02 07:12:26 +02:00
2019-07-05 11:26:37 +02:00
2018-11-19 14:47:12 +01:00
2019-05-10 22:43:43 -04:00
2018-11-19 14:47:12 +01:00
2018-11-19 14:47:12 +01:00
2019-06-09 13:25:01 -04:00
2019-07-06 01:15:24 +09:00
2019-06-25 13:11:32 +02:00
2019-03-26 09:39:07 +02:00
2018-11-19 14:47:12 +01:00
2019-03-10 17:51:35 +01:00
2019-01-23 00:38:44 +08:00
2019-01-23 00:38:44 +08:00
2019-06-22 14:59:09 +02:00
2019-06-22 14:59:09 +02:00
2019-06-22 14:59:09 +02:00
2019-06-22 14:59:09 +02:00
2019-03-10 17:51:35 +01:00
2019-04-19 16:50:38 -07:00
2019-07-01 17:42:46 -07:00
2019-06-09 13:25:01 -04:00
2019-06-26 22:23:07 -06:00
2019-03-10 17:51:35 +01:00
2018-11-19 14:47:12 +01:00
2019-06-22 14:59:09 +02:00
2019-04-19 16:50:38 -07:00
2019-01-29 11:37:00 -08:00
2019-06-22 14:59:09 +02:00
2019-05-08 08:15:01 -07:00
2018-11-27 17:33:13 -08:00
2019-04-26 12:00:26 +02:00
2019-04-30 16:54:52 -07:00
2019-01-04 15:27:23 +01:00
2018-11-19 14:47:12 +01:00
2019-01-04 15:27:23 +01:00
2019-03-10 17:51:35 +01:00
2019-01-10 22:43:29 +08:00
2018-11-19 14:47:12 +01:00
2019-05-26 09:46:48 -07:00
2019-06-09 13:25:01 -04:00
2019-07-04 10:26:48 +02:00
2019-06-22 14:59:09 +02:00
2019-04-04 17:22:08 -07:00
2019-01-03 23:53:50 -08:00
2019-07-02 10:10:58 -07:00
2019-03-26 00:09:15 -07:00
2019-01-03 23:53:50 -08:00