aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Auto merge of #26009 - SasiDharKM:master, r=jdmbors-servo2020-03-303-0/+95
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation for ImageBitmap <!-- Please describe your changes on the following line: --> Created the boilerplate code for the image bitmap implementation. --- <!-- 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 #20650 <!-- 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 ImageBitmap interfacesantoshpavan2020-03-303-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of ImageBitmap ImageBitMap webidl file added Implementation of ImageBitmap mentioned the correct origin link basic new and new_inherited updated the mod.rs file to include imagebitmap imagebitmap implemented changed according to Serialization implemented serializable get methods for width and height basic imagebitmap added missing crates added Vec and missing crates Syntax fixes Reformatting and minor error fixes Implementation of ImageBitmap tidy-test runs Took out extra parameters in reflect_dom_object call added comments with specification links for webidl functions changing the code based on review comments adding resolved changes form the pull request Changes based on pr review Changes based on pr review ran test-tidy and fmt removed the duplicate crate removed unnecessary crates Kept only the relevant crate import Updated test expectations, exposed interface list, and manifest
* | | Auto merge of #26025 - szeged:webgl_draw_range_elements, r=jdmbors-servo2020-03-304-2/+79
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for DrawRangeElements in WebGL2 Adds initial support for the WebGL2 `DrawRangeElements` call. <!-- Please describe your changes on the following line: --> I have started working on this function, but not sure how could I check for the Uniform Block Backing (https://www.khronos.org/registry/webgl/specs/latest/2.0/#ACTIVE_UNIFORM_BLOCK_BACKING). I am looking for some advice. --- <!-- 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] There are tests for these changes cc @mmatyas @zakorgy @jdm <!-- 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 support for DrawRangeElements in WebGL2Istvan2020-03-304-2/+79
| | | | | | | | | | | | Adds initial support for the WebGL2 `DrawRangeElements` call.
* | | Remove a bunch of _forever suffixes in Attr methodsAnthony Ramine2020-03-302-14/+14
| | | | | | | | | | | | They don't return &'static references anymore.
* | | 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.
* | | Fix LayoutElementHelpers::get_classes_for_layoutAnthony Ramine2020-03-301-2/+2
| | | | | | | | | | | | It should not return a 'static reference
* | | Fix AttrHelpersForLayoutAnthony Ramine2020-03-301-12/+11
| | | | | | | | | | | | We should never be returning 'static stuff from attrs, that's a big lie.
* | | Make LayoutShadowRootHelpers methods take selfAnthony Ramine2020-03-301-4/+4
| | |
* | | Clean up LayoutShadowRootHelpers::get_style_data_for_layoutAnthony Ramine2020-03-301-6/+2
| | | | | | | | | | | | Parameter E is unused and the result should be bound by 'dom.
* | | Make LayoutNodeHelpers methods take selfAnthony Ramine2020-03-291-58/+58
| | |
* | | Make LayoutElementHelpers methods take selfAnthony Ramine2020-03-291-26/+26
| | |
* | | Give a lifetime parameter to LayoutDocumentHelpersAnthony Ramine2020-03-291-18/+18
| | |
* | | Give a lifetime parameter to LayoutCharacterDataHelpersAnthony Ramine2020-03-291-4/+4
| | |
* | | Make LayoutCanvasWebGLRenderingContextHelpers methods take selfAnthony Ramine2020-03-292-3/+3
| | |
* | | Make LayoutSVGSVGElementHelpers methods take selfAnthony Ramine2020-03-291-2/+2
| | |
* | | Make HTMLTableSectionElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-2/+2
| | |
* | | Make HTMLTableRowElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-2/+2
| | |
* | | Make HTMLTableElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-8/+8
| | |
* | | Make HTMLTableCellElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-8/+8
| | |
* | | Make LayoutHTMLMediaElementHelpers methods take selfAnthony Ramine2020-03-291-2/+2
| | |
* | | Make LayoutHTMLImageElementHelpers methods take selfAnthony Ramine2020-03-291-16/+12
| | |
* | | Make HTMLIFrameElementLayoutMethods methods take selfAnthony Ramine2020-03-291-8/+8
| | |
* | | Make HTMLHRLayoutHelpers methods take selfAnthony Ramine2020-03-291-4/+4
| | |
* | | Make HTMLFontElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-6/+6
| | |
* | | Make LayoutHTMLCanvasElementHelpers methods take selfAnthony Ramine2020-03-291-8/+8
| | |
* | | Make HTMLBodyElementLayoutHelpers methods take selfAnthony Ramine2020-03-291-6/+6
| | |
* | | Make LayoutCanvasRenderingContext2DHelpers methods take selfAnthony Ramine2020-03-291-4/+4
|/ /
* | Auto merge of #26048 - nox:layout-2020-transparent-data, r=jdmbors-servo2020-03-2826-111/+101
|\ \ | |/ |/| | | Give a lifetime parameter to LayoutDom
| * Give a lifetime parameter to LayoutDomAnthony Ramine2020-03-2824-65/+83
| |
| * Pass pending restyles instead of draining them from layoutAnthony Ramine2020-03-282-20/+15
| |
| * Move PendingRestyle to the style_layout_interface crateAnthony Ramine2020-03-282-26/+3
| |
* | Auto merge of #25998 - jdm:vao-drop, r=noxbors-servo2020-03-274-12/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Avoid a panic when closing webgl pages using VAOs - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25891 - [x] These changes do not require tests because GC behaviour at shutdown is nondeterministic and difficult to test
| * | webgl: Ignore webgl communication errors when dropping vertex array objects.Josh Matthews2020-03-194-12/+12
| | |
* | | Auto merge of #26029 - paulrouget:uitask, r=jdmbors-servo2020-03-261-3/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set user interactions for tasks fix #26026 I need help here. Retrieving the interaction flag from the promise handle crashes. ```rust let interaction = GetPromiseUserInputEventHandlingState(promise); ``` ``` Stack trace for thread "ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }" stack backtrace: 0: backtrace::backtrace::libunwind::trace at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/libunwind.rs:86 backtrace::backtrace::trace_unsynchronized at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/mod.rs:66 1: <servo::backtrace::Print as core::fmt::Debug>::fmt at ports/glutin/backtrace.rs:49 2: <&mut W as core::fmt::Write>::write_fmt 3: std::io::Write::write_fmt at /rustc/45ebd5808afd3df7ba842797c0fcd4447ddf30fb/src/libstd/io/mod.rs:1427 4: servo::backtrace::print at ports/glutin/backtrace.rs:17 5: servo::install_crash_handler::handler at ports/glutin/main2.rs:68 6: <unknown> 7: _ZN2JS37GetPromiseUserInputEventHandlingStateENS_6HandleIP8JSObjectEE at /Users/paul/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2392ebc/mozjs/js/src/vm/JSObject.h:106 ```
| * | | Propagate user interacting flag to timers and promisesPaul Rouget2020-03-261-3/+11
| | |/ | |/|
* | | Auto merge of #26005 - jdm:hubs-csp, r=noxbors-servo2020-03-251-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update content-security-policy. This allows hubs.mozilla.org to load instead of panicking due to unimplemented CSP features. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24702 - [x] These changes do not require tests because we never enabled the CSP testsuite
| * | Update content-security-policy.Josh Matthews2020-03-251-0/+1
| |/
* | Auto merge of #26017 - humancalico:remove_legacy, r=jdmbors-servo2020-03-242-36/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed createTouch and createTouchList <!-- 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 #25978 <!-- 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. -->
| * | Removed createTouch and createTouchListAkshat Agarwal2020-03-242-36/+0
| | |
* | | Force alert message to its own line.Josh Matthews2020-03-231-1/+1
|/ /
* | Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-20353-1236/+327
| |
* | Add missing same-origin referrer policyTipowol2020-03-202-1/+3
|/