aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Form constraints validationteapotd2020-04-021-0/+22
|
* Introduce LayoutDom::isAnthony Ramine2020-03-311-0/+9
| | | | Just like Castable::is.
* Introduce LayoutDom::to_layout_sliceAnthony Ramine2020-03-311-0/+9
| | | | It generalises <LayoutDom<Element>>::attrs.
* Auto merge of #26054 - shnmorimoto:fix_tojson_unconditionally_serializes, r=jdmbors-servo2020-03-312-11/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix tojson unconditionally serializes <!-- Please describe your changes on the following line: --> --- <!-- 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 #25281 <!-- 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. -->
| * fixed CGCollectJSONAttributesMethodShinichi Morimoto2020-03-311-5/+3
| |
| * fixed is_satisfied conditionShinichi Morimoto2020-03-301-12/+14
| |
| * remove unnecessary conditionShinichi Morimoto2020-03-301-3/+0
| |
| * fixed fmtShinichi Morimoto2020-03-282-3/+7
| |
| * fixed #25281Shinichi Morimoto2020-03-283-3/+13
| |
* | Make LayoutDom<'dom, T> be a mere reference wrapperAnthony Ramine2020-03-301-28/+10
| |
* | Fix LayoutDom::unsafe_getAnthony Ramine2020-03-301-5/+4
| | | | | | | | | | The raw pointer can be used to extend the lifetime of the inner T to beyond 'dom.
* | Give a lifetime parameter to LayoutDomAnthony Ramine2020-03-281-17/+32
| |
* | Move PendingRestyle to the style_layout_interface crateAnthony Ramine2020-03-281-1/+1
|/
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-203-21/+85
|
* Do not do weird scope things in MethodDefinerAnthony Ramine2020-03-141-0/+2
| | | | | Variable `m` comes from a previous list comprehension earlier in the function is not actually properly defined.
* Update the WebIDL parserAnthony Ramine2020-03-1411-195/+524
| | | | | Upstream doesn't allow downloading .tar.gz archives so update.sh was changed to use unzip.
* Don't compare the vtable pointers anymore when unrooting stuffAnthony Ramine2020-03-062-2/+9
|
* Change how we reflect DOM objects in codegenAnthony Ramine2020-03-062-13/+23
| | | | | | | We now go through <Root<MaybeUnreflectedDom<T>>>::reflect_with, to decrease the amount of bad stuff we can end up doing. This avoids a source of vtable pointer instability that could cause issues down the road.
* Update SpiderMonkeyAnthony Ramine2020-03-068-87/+119
|
* Auto merge of #25781 - nox:fixzeal, r=jdmbors-servo2020-03-024-75/+114
|\ | | | | | | Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)
| * Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-174-75/+114
| |
* | Auto merge of #25831 - szeged:wgpu_read_map_async, r=jdmbors-servo2020-02-251-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement mapReadAsync function of GPUBuffer Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`. Added `mapped` internal slot for tracking the ArrayBuffer/Promise. Added more states to the `GPUBufferState` enum. <!-- Please describe your changes on the following line: --> --- <!-- 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 addresses a part of #24706 <!-- 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.--> cc @kvark @jdm @zakorgy <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * | Implement mapReadAsync function of GPUBufferIstvan Miklos2020-02-251-0/+4
| | | | | | | | | | | | | | | | | | Implemented the `mapReadAsync` and fixed the `unmap` functions of `GPUBuffer`. Added `mapped` internal slot for tracking the ArrayBuffer/Promise. Added more states to the `GPUBufferState` enum.
* | | implement broadcastchannelGregory Terzian2020-02-251-2/+4
|/ /
* | refactor: rename XR to XRSystemJavaScript Joe2020-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | chore: fix formatting refactor: change filename and ref to xrsystem refactor: change filename XRSystem.webidl refactor: update crate in navigator refactor: use XRSystem instead of XR in navigator refactor: update Bindings.conf refactor: use XRSystemMethods fix: update assertions for XRSystem fix: update manifest json
* | Auto merge of #25793 - szeged:wgpu_compute_pass_encoder_fns, r=jdmbors-servo2020-02-191-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GPUComputePassEncoder functions Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`. <!-- Please describe your changes on the following line: --> --- <!-- 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 addresses a part of #24706 <!-- 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.--> cc @kvark @jdm @zakorgy <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * | Implement GPUComputePassEncoder functionsIstvan Miklos2020-02-191-3/+3
| |/ | | | | | | Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.
* / Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-164-13/+14
|/
* Auto merge of #25744 - szeged:wgpu_queue, r=jdmbors-servo2020-02-141-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of GPUQueue Added WebIDL bindings for `GPUQueue`. Implemented the `submit` function of `GPUQueue` and `defaultQueue` function of `GPUDevice`. <!-- Please describe your changes on the following line: --> --- <!-- 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 addresses a part of #24706 <!-- Either: --> cc @kvark @jdm @zakorgy <!-- 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. -->
| * Initial implementation of GPUQueueZakor2020-02-131-1/+2
| | | | | | | | | | Added WebIDL bindings for `GPUQueue`. Implemented the `submit` function of `GPUQueue` and `defaultQueue` function of `GPUDevice`.
* | Auto merge of #25223 - pshaughn:xmlerrortype, r=Manishearthbors-servo2020-02-121-8/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed error type on qname, per spec <!-- Please describe your changes on the following line: --> As specified in https://dom.spec.whatwg.org/#validate invalid QNames when creating a namespaced document/element/attribute get an invalid character exception, not a namespace exception. --- <!-- 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 #25110 <!-- 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. -->
| * | Changed error type on qname, per specPatrick Shaughnessy2020-02-121-8/+3
| |/
* | Auto merge of #25494 - pshaughn:leadingzeroes, r=jdmbors-servo2020-02-121-0/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure input value=12:30:01 doesn't turn into 12:30:1 Fixed convert_valid_normalized_local_date_and_time_string to add the mandatory leading 0 before seconds values that needed it, added tests to see that various-length strings with zeroes in them would roundtrip properly. --- <!-- 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 #25493 <!-- 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. -->
| * Make sure input value=12:30:01 doesn't turn into 12:30:1Patrick Shaughnessy2020-02-121-0/+8
| |
* | Initial implementation of GPUCommandEncoderZakor Gyula2020-02-111-2/+6
| | | | | | | | | | | | Added WebIDL bindings for `GPUCommandEncoder`, `GPUCommandBuffer`, `GPUComputePassEncoder`, `GPUProgrammablePassEncoder`. Implemented the `beginComputePass`, `copyBufferToBuffer` and `finish` functions of `GPUCommandEncoder`. Implemented the `createCommandEncoder` function of `GPUDevice`.
* | Initial implementation of GPUComputePipelineIstvan Miklos2020-02-111-2/+3
|/ | | | | Added WebIDL bindings for `GPUComputePipeline`. Implemented the `createComputePipeline` function of `GPUDevice`.
* Initial implementation of GPUShaderModuleIstvan Miklos2020-02-111-1/+2
| | | | | Added WebIDL bindings for `GPUShaderModule`. Implemented the `createShaderModule` function of `GPUDevice`.
* Auto merge of #25637 - szeged:wgpu_crete_bind_group, r=jdmbors-servo2020-01-301-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial implementation of GPUBindGroup for WebGPU Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice` Renamed `GPUBindGroupBinding` to `GPUBindGroupBindings` and `GPUBufferBinding` to `GPUBufferBindings` in the WebIDL, because these names are already occupied. <!-- Please describe your changes on the following line: --> --- <!-- 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 addresses a part of #24706 cc @kvark @jdm @zakorgy <!-- 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. -->
| * Initial implementation of GPUBindGroup for WebGPUIstvan Miklos2020-01-301-1/+3
| | | | | | | | | | Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice`
* | Auto merge of #25576 - pshaughn:menuelement, r=jdmbors-servo2020-01-251-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement HTMLMenuElement <!-- Please describe your changes on the following line: --> Per spec, "The menu element is simply a semantic alternative to ul to express an unordered list of commands (a "toolbar")." We already have the CSS for it in user-agent.css, and this gives us the interface object. --- <!-- 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 #24990 <!-- 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. -->
| * | Implement HTMLMenuElementPatrick Shaughnessy2020-01-231-0/+2
| |/
* | rename compartment to realmKunal Mohan2020-01-245-51/+51
| |
* | Let custom element registry know about picture tagPatrick Shaughnessy2020-01-231-0/+2
|/
* Initial implementation of GPUPipelineLayout for WebGPUIstvan Miklos2020-01-211-1/+4
| | | | | Added WebIDL bindings for `GPUPipelineLayout`. Implemented the createPipelineLayout function of `GPUDevice`.
* Initial implementation of GPUBindGroupLayout for WebGPUIstvan Miklos2020-01-161-1/+2
| | | | | | Added WebIDL bindings for `GPUBindGroupLayout`, `GPUBindGroupLayoutDescriptor`, `GPUBindingType`, `GPUShaderStage` and `GPUBindGroupLayoutBinding` (Note: The servo's codegen doesn't like the name, because its already occupied). Implemented the `createBindGroupLayout` function of `GPUDevice`.
* Auto merge of #25030 - szeged:webgpu-constellation, r=gterzianbors-servo2020-01-131-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only start WebGPU thread if an adapter is requested <!-- Please describe your changes on the following line: --> This addresses 1 and 2 from https://github.com/servo/servo/issues/24706#issuecomment-555491438 We send a message to constellation instead of creating the `WebGPU` thread on the start. We send back the result to script and set the `Window`'s `web_gpu` component there. cc @jdm @imiklos --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- 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/25030) <!-- Reviewable:end -->
| * Only start WebGPU thread if an adapter is requestedZakor Gyula2020-01-131-0/+1
| |
* | Auto merge of #25468 - gterzian:add_generic_to_frozen_array, r=Manishearthbors-servo2020-01-121-7/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add generic to frozen array <!-- Please describe your changes on the following line: --> https://github.com/servo/servo/pull/25467#discussion_r364575071 Depends on https://github.com/servo/servo/pull/25467 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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. -->
| * | add a generic utility to convert a slice into a frozen arrayGregory Terzian2020-01-111-7/+2
| | |
* | | stepUp, stepDown, valueAsNumber, valueAsDate, and list work and have testsPatrick Shaughnessy2020-01-101-127/+156
|/ /