mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
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 --> |
||
---|---|---|
.. | ||
codegen | ||
callback.rs | ||
cell.rs | ||
constant.rs | ||
conversions.rs | ||
error.rs | ||
guard.rs | ||
htmlconstructor.rs | ||
inheritance.rs | ||
interface.rs | ||
iterable.rs | ||
mod.rs | ||
mozmap.rs | ||
namespace.rs | ||
num.rs | ||
proxyhandler.rs | ||
refcounted.rs | ||
reflector.rs | ||
root.rs | ||
settings_stack.rs | ||
str.rs | ||
structuredclone.rs | ||
trace.rs | ||
utils.rs | ||
weakref.rs | ||
xmlname.rs |