aboutsummaryrefslogtreecommitdiffstats
path: root/components
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #26037 - mrobinson:arcrefcell-fragment-tree, r=SimonSapinbors-servo2020-03-264-114/+133
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layout_2020: Use ArcRefCell in the fragment tree This will allow mutability which is useful for things like animations. <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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. -->
| * layout_2020: Use ArcRefCell in the fragment treeMartin Robinson2020-03-254-114/+133
| | | | | | | | This will allow mutability which is useful for things like animations.
* | Auto merge of #26029 - paulrouget:uitask, r=jdmbors-servo2020-03-264-5/+32
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-264-5/+32
| | |
* | | Auto merge of #26005 - jdm:hubs-csp, r=noxbors-servo2020-03-256-4/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-256-4/+6
| | |
* | | Auto merge of #26021 - paulrouget:revertFillText, r=jdmbors-servo2020-03-243-104/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert fillText() Sadly, fillText crashes our HoloLens demos. See https://github.com/servo/servo/issues/26015 /cc @kaiakz
| * | | Revert "Add a simple implementation of CanvasRenderingContext2d.fillText"Paul Rouget2020-03-243-104/+4
| | | | | | | | | | | | | | | | Windows crash: https://github.com/servo/servo/issues/26015
* | | | 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
| | | | |
* | | | | Auto merge of #26016 - servo:jdm-patch-36, r=SimonSapinbors-servo2020-03-231-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Force alert message to its own line. This should avoid timeouts in WPT caused by output that looks like: ``` │ 0:00:00.542631465 10817 0x7f9ccc161630 WARN playbin gstplaybin2.c:4663:autoplug_select_cb:<playbin> Could not activate sink oss4sink │ ALSA lib confmisc.c:767:(parse_card) ALERT: RESULT: ["/html/semantics/embedded-content/media-elements/event_pause_noautoplay.html",0,null,null,[["audio events - pause",0,null,null],["video events - pause",0,null,null],["calling play() then pause() on non-autoplay audio should trigger pause event",0,null,null],["calling play() then pause() on non-autoplay video should trigger pause event",0,null,null]]] │ cannot find card '0' ```
| * | | | | Force alert message to its own line.Josh Matthews2020-03-231-1/+1
| |/ / / /
* | | | | Auto merge of #25888 - ferjm:text.decoration.2020, r=noxbors-servo2020-03-2312-48/+231
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partial text decoration support for layout 2020 - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25166 - [X] There are tests for these changes
| * | | | Propagate text decoration where neededFernando Jiménez Moreno2020-03-239-40/+75
| | | | |
| * | | | Do not use buggy text_decorations_in_effectFernando Jiménez Moreno2020-03-234-8/+48
| | | | |
| * | | | Add support for text-decoration-styleFernando Jiménez Moreno2020-03-233-3/+22
| | | | |
| * | | | Add support for text-decoration-colorFernando Jiménez Moreno2020-03-232-6/+10
| | | | |
| * | | | Render text-decoration: line-through on layout 2020Fernando Jiménez Moreno2020-03-231-0/+9
| | | | |
| * | | | Remove unnecessary fragment rect cloneFernando Jiménez Moreno2020-03-231-1/+1
| | | | |
| * | | | Render text-decoration: overline on layout 2020Fernando Jiménez Moreno2020-03-231-10/+26
| | | | |
| * | | | Render text-decoration: underline on layout 2020Fernando Jiménez Moreno2020-03-231-25/+65
| | | | |
| * | | | Enable text-decoration on layout 2020Fernando Jiménez Moreno2020-03-232-2/+1
| | | | |
| * | | | Store required font metrics on TextFragmentFernando Jiménez Moreno2020-03-233-11/+32
| |/ / /
* | | | Auto merge of #26012 - mrobinson:scrolling-overflow-cb, r=noxbors-servo2020-03-233-14/+22
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layout_2020: Use the containing block more when calculating scrolling overflow When calculating scrolling overflow calculation we cannot currently use the actual containing block in all cases. This change increases the amount that we do use the containing block. <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- 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. -->
| * | | layout_2020: Use the containing block more when calculating scrolling overflowMartin Robinson2020-03-233-14/+22
| | |/ | |/| | | | | | | | | | | | | When calculating scrolling overflow calculation we cannot currently use the actual containing block in all cases. This change increases the amount that we do use the containing block.
* | | Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-20353-1236/+327
| | |
* | | Add missing same-origin referrer policyTipowol2020-03-202-1/+3
|/ /
* | Auto merge of #25988 - mrobinson:fix-doc, r=SimonSapinbors-servo2020-03-191-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layout_2020: Fix a documentation comment I inadvertently failed to complete this doc comment. <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they don't change behavior. <!-- 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. -->
| * | layout_2020: Fix a documentation commentMartin Robinson2020-03-191-1/+3
| | | | | | | | | | | | I inadvertently failed to complete this doc comment.
* | | Auto merge of #25782 - kaiakz:master, r=jdmbors-servo2020-03-193-4/+104
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a simple implementation of CanvasRenderingContext2d.fillText <!-- Please describe your changes on the following line: --> I added a simple implementation of CanvasRenderingContext2d.fillText. Some code are merged from @mikrut, and I fixed a bug about text scaling. Also, the bug of text rotation should be fixed after `raqote` merged my other PR. --- <!-- 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 (part of) #11681 (GitHub issue number if applicable) <!-- 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. -->
| * | | Add a simple implementation of CanvasRenderingContext2d.fillTextkaiakz2020-03-193-4/+104
| | |/ | |/|
* | | layout_2020: Add support for hoisting positioned fragments in inline boxesMartin Robinson2020-03-193-14/+59
| |/ |/| | | | | | | | | | | | | | | Add support for tracking containing blocks when doing inline layout. This requires setting up a PositioningContext for inline boxes when necessary. Instead of using the PositioningContext helper methods and we reuse the contexts between line breaks. Fixes #25279.
* | layout_2020: Refactor PositioningContext to be simpler and smallerMartin Robinson2020-03-181-104/+65
|/ | | | | | Add a few helper methods which allow removing duplicate code in PositioningContext. These methods will also be used to properly implement hoisting in inline layout.
* Make whitespace preservation computation recursive in order to fix lifetime ↵Patrick Walton2020-03-171-25/+45
| | | | issues
* Switch the standard slice iterator in inline layout to a custom one in order toPatrick Walton2020-03-172-10/+65
| | | | avoid lifetime problems
* Switch some uses of `Arc<AtomicRefCell<T>>` over to `ArcRefCell<T>`Patrick Walton2020-03-172-8/+7
|
* Implement `Default` for `ArcRefCell`Patrick Walton2020-03-171-0/+11
|
* Wrap `BlockLevelBox` and `InlineLevelBox` with `AtomicRefCell`Patrick Walton2020-03-175-95/+101
|
* Add an `ArcRefCell<T>` typePatrick Walton2020-03-172-0/+59
|
* Make AbsolutelyPositionedBox be 'staticAnthony Ramine2020-03-177-48/+42
|
* Update atomic_refcellAnthony Ramine2020-03-171-1/+1
| | | | Required for Debug impl on AtomicRefCell<T>.
* Auto merge of #25964 - servo:webidl, r=jdmbors-servo2020-03-1711-195/+526
|\ | | | | | | | | | | Update the WebIDL parser It now supports Python 3.
| * 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.
* | Auto merge of #25975 - mmatyas:webgl_fns_read_draw_buffers_p2, r=jdmbors-servo2020-03-171-1/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not try to read pixels from an FBO without read buffer A follow up to #25905, this adds another check to the WebGL2 ReadPixels implementation to fix an OpenGL invalid operation crash when the method is called on a bound framebuffer that has no read buffer. <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy However, it seems there's an issue with the headless mode: when ReadBuffer is called on the default framebuffer with the value `GL_BACK`, like [here](https://github.com/servo/servo/blob/e1103176e3de8a8c0996d1d60c092cfd8f60e805/tests/wpt/webgl/tests/conformance2/renderbuffers/readbuffer.html#L77), in headless mode an invalid operation is generated. In non-headless mode the whole test completes successfully: ![sshot](https://user-images.githubusercontent.com/4354863/76845770-b0ffbd80-683f-11ea-8103-a81512188808.png) --- <!-- 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 <!-- 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. -->
| * | Do not try to read pixels from an FBO without read bufferMátyás Mustoha2020-03-171-1/+5
| | | | | | | | | | | | | | | | | | Adds another check to the WebGL2 ReadPixels implementation to fix an OpenGL invalid operation crash when the method is called on a bound framebuffer that has no read buffer.
* | | Auto merge of #25970 - jdm:hirup, r=asajeffreybors-servo2020-03-161-4/+2
|\ \ \ | | | | | | | | | | | | Update rustc to 3/16 nightly.
| * | | Update rustc to 3/16 nightly.Josh Matthews2020-03-161-4/+2
| | | |
* | | | Auto merge of #25905 - szeged:mmatyas__webgl_fns_read_draw_buffers, r=noxbors-servo2020-03-166-2/+133
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for WebGL2 read and draw buffer settings Adds support for the `ReadBuffer` and `DrawBuffers` WebGL2 calls and the related parameter getters. See: - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11 <!-- Please describe your changes on the following line: --> This is marked as WIP because with these functions added (but apparently not directly related to them), some tests now run into states that produces crash. cc @jdm @zakorgy --- <!-- 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 <!-- 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 WebGL2 read and draw buffer settingsMátyás Mustoha2020-03-166-2/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for the `ReadBuffer` and `DrawBuffers` WebGL2 calls and the related parameter getters. See: - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11