Commit graph

10691 commits

Author SHA1 Message Date
bors-servo
70443291c9
Auto merge of #26059 - servo-wpt-sync:wpt_update_30-03-2020, r=jdm
Sync WPT with upstream (30-03-2020)

Automated downstream sync of changes from upstream as of 30-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-30 16:49:46 -04:00
santoshpavan
8c405546a2 Implement ImageBitmap interface
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
2020-03-30 15:52:15 -04:00
bors-servo
69004e43dd
Auto merge of #26025 - szeged:webgl_draw_range_elements, r=jdm
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. -->
2020-03-30 13:59:05 -04:00
bors-servo
fd6f9140f7
Auto merge of #26056 - gterzian:enable_atomics_wait_on_dedicated_worker, r=jdm
Enable Atomics.wait in a dedicated worker agent

<!-- Please describe your changes on the following line: -->

FIX #25191

---
<!-- 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. -->
2020-03-30 10:42:23 -04:00
Josh Matthews
8ffef3855e
Remove intermittent timeout. 2020-03-30 09:59:04 -04:00
Josh Matthews
47a97aff81
Add more missing 2020 failures. 2020-03-30 09:58:14 -04:00
Josh Matthews
8d859787c6
Restore missing 2020 failures. 2020-03-30 09:53:57 -04:00
Istvan
bfa43fbeba Add support for DrawRangeElements in WebGL2
Adds initial support for the WebGL2 `DrawRangeElements` call.
2020-03-30 13:55:01 +02:00
WPT Sync Bot
6a6caaf929 Update web-platform-tests to revision ee35e5ccfe4ffeb108e603a05d1ea44f19275e04 2020-03-30 11:14:51 +00:00
Gregory Terzian
3ce6109836 enable Atomics.wait in a dedicated worker agent 2020-03-30 15:23:04 +08:00
Shinichi Morimoto
096f3d73be updated test 2020-03-28 20:18:30 +09:00
WPT Sync Bot
f4e67a0197 Update web-platform-tests to revision cf8a15a334c6eb3b044b3db8a933436c2365819d 2020-03-28 11:05:43 +00:00
bors-servo
7d66871a9f
Auto merge of #26046 - mrobinson:arcrefcell-hoisting, r=SimonSapin
layout_2020: Use ArcRefCell to track hoisted fragments

This avoids the use of lookup tables for containing blocks when
constructing the stacking context tree.

This seems to catch some laid-out hoisted fragments that were otherwise
dropped in the previous design. The changes cause one new test to pass
and one to fail. Visual examination of the failing tests reveals that
it's a progression (list markers are appearing when they were previously
not rendered).

<!-- 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 #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] 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. -->
2020-03-27 12:20:08 -04:00
Martin Robinson
19f4b708b3 layout_2020: Use ArcRefCell to track hoisted fragments
This avoids the use of lookup tables for containing blocks when
constructing the stacking context tree.

This seems to catch some laid-out hoisted fragments that were otherwise
dropped in the previous design. The changes cause one new test to pass
and one to fail. Visual examination of the failing tests reveals that
it's a progression (list markers are appearing when they were previously
not rendered).
2020-03-27 13:02:22 +01:00
WPT Sync Bot
932f14ce3a Update web-platform-tests to revision 169a1410bfe8e517d79852144555dd49ea1f597a 2020-03-27 11:07:02 +00:00
WPT Sync Bot
d23cb97662 Update web-platform-tests to revision 66e7f134c43e83a70edf4028ec4738ddfea28e15 2020-03-26 11:03:03 +00:00
Daniel Alley
cc18718152 Run py-modernize against tests/jquery/run_jquery.py
Attempt to make it py3 compatible
2020-03-25 15:10:44 -04:00
Josh Matthews
abc6fbf6bd
Add missing failure. 2020-03-25 09:06:07 -04:00
WPT Sync Bot
916ba6ef4d Update web-platform-tests to revision eb12303bec1d47bbe91ebf011d17d81ec6fce68d 2020-03-25 11:04:48 +00:00
bors-servo
4f5110f34f
Auto merge of #26021 - paulrouget:revertFillText, r=jdm
Revert fillText()

Sadly, fillText crashes our HoloLens demos. See https://github.com/servo/servo/issues/26015

/cc @kaiakz
2020-03-24 08:14:24 -04:00
WPT Sync Bot
1d6ba62c8f Update web-platform-tests to revision 10adbd6b133f1ccf77a27ed51ffd3e7a00a499ee 2020-03-24 11:01:51 +00:00
Paul Rouget
40f6cd87d4 Revert "Add a simple implementation of CanvasRenderingContext2d.fillText"
Windows crash: https://github.com/servo/servo/issues/26015
2020-03-24 10:35:52 +01:00
bors-servo
8b4d7c41ae
Auto merge of #26017 - humancalico:remove_legacy, r=jdm
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. -->
2020-03-24 01:38:31 -04:00
Akshat Agarwal
2e1009da75 Removed createTouch and createTouchList 2020-03-24 03:41:42 +05:30
bors-servo
acd14672e1
Auto merge of #25888 - ferjm:text.decoration.2020, r=nox
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
2020-03-23 11:18:18 -04:00
Josh Matthews
132cee59fe
Add missing test result. 2020-03-23 11:16:46 -04:00
Josh Matthews
b1a0c52f9c
Add missing test result. 2020-03-23 11:16:27 -04:00
Josh Matthews
1035d2f8d5
Revert incorrect test result change. 2020-03-23 11:15:02 -04:00
WPT Sync Bot
84075d3b6e Update web-platform-tests to revision 38792095c98039542ed3a3f0d2eb384b576f6cb7 2020-03-23 10:48:48 +00:00
Fernando Jiménez Moreno
eea7eb4e4f Update test expectations with text-decoration support 2020-03-23 11:13:10 +01:00
Fernando Jiménez Moreno
74d9fec9cf Enable text-decoration tests 2020-03-23 11:10:43 +01:00
Josh Matthews
283259f68d
Add failing layout-2020 result. 2020-03-21 12:11:04 -04:00
WPT Sync Bot
76af5dbf1f Update web-platform-tests to revision f2c1dfe9ae186350086dbe505c4baaab63ace1cc 2020-03-21 11:06:46 +00:00
Tipowol
6b0b90767e Add missing same-origin referrer policy 2020-03-20 21:15:52 +01:00
WPT Sync Bot
96fc7662dc Update web-platform-tests to revision a587550f729c270ae55b56a92c94605461cc919a 2020-03-20 11:05:42 +00:00
bors-servo
1634f4e6ed
Auto merge of #25987 - servo-wpt-sync:wpt_update_19-03-2020, r=jdm
Sync WPT with upstream (19-03-2020)

Automated downstream sync of changes from upstream as of 19-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-19 16:57:59 -04:00
bors-servo
ffdb83b644
Auto merge of #25782 - kaiakz:master, r=jdm
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. -->
2020-03-19 13:24:08 -04:00
WPT Sync Bot
ee944e769d Update web-platform-tests to revision 6a665f63ae39b552f60b971f11c34b215861fcb3 2020-03-19 10:44:50 -04:00
bors-servo
3d03b3bca0
Auto merge of #25960 - servo:jdm-patch-40, r=SimonSapin
Don't run 2dcontext tests in layout-2020.

The vast majority of these tests only test the DOM APIs, not the actual layout via reftests. That means we just duplicate the results and have to update them every time we change the canvas behaviour.
2020-03-19 09:43:57 -04:00
Martin Robinson
bd06227a60 layout_2020: Add support for hoisting positioned fragments in inline boxes
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.
2020-03-19 10:50:49 +01:00
kaiakz
777b9d791b Update wpt expectations: offscreen-canvas && 2dcontext 2020-03-19 17:16:23 +08:00
kaiakz
0d0ac986b7 Add a simple implementation of CanvasRenderingContext2d.fillText 2020-03-19 15:40:14 +08:00
WPT Sync Bot
bd54acb29d Update web-platform-tests to revision 7d24adef541b2e836f2b2f9534ce3f0e078f5782 2020-03-18 11:05:52 +00:00
bors-servo
59c68e2eb7
Auto merge of #25975 - mmatyas:webgl_fns_read_draw_buffers_p2, r=jdm
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](e1103176e3/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. -->
2020-03-17 10:31:01 -04:00
WPT Sync Bot
fa876fc660 Update web-platform-tests to revision 74e1fe40eb227423537d6eafa99244ece1a8f8fd 2020-03-17 11:26:41 +00:00
Mátyás Mustoha
a6359fe587 Do not try to read pixels from an FBO without read buffer
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.
2020-03-17 10:55:41 +01:00
bors-servo
654dd048a3
Auto merge of #25905 - szeged:mmatyas__webgl_fns_read_draw_buffers, r=nox
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. -->
2020-03-16 11:43:06 -04:00
WPT Sync Bot
7b0ebcb83d Update web-platform-tests to revision 4568db58b5528eeb9edf931ab34d83fd6883600f 2020-03-16 13:42:55 +00:00
Mátyás Mustoha
0afe27ef18 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
2020-03-16 12:17:15 +01:00
Josh Matthews
8e0cdd334b
Delete intermittent failure. 2020-03-15 21:20:11 -04:00