aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Implement gl.getParameter(gl.VIEWPORT)Anthony Ramine2018-03-221-1/+9
|
* Implement gl.getParameter(gl.CURRENT_PROGRAM)Anthony Ramine2018-03-221-0/+3
|
* Make some WebGL parameters non-optional (fixes #8753)Anthony Ramine2018-03-223-171/+121
| | | | | | | Those parameters aren't optional in the current spec. The test element-array-buffer-delete-recreate.html now fails because we don't actually implement gl.getParameter(gl.CURRENT_PROGRAM).
* Implement a missing INVALID_OPERATION check in DrawArraysAnthony Ramine2018-03-221-17/+21
|
* Fix an off-by-one error with limits.max_vertex_attribsAnthony Ramine2018-03-221-4/+4
|
* Auto merge of #20317 - gootorov:webgl-getFramebufferAttachmentParameter, r=jdmbors-servo2018-03-224-3/+132
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement WebGL getFrameBufferAttachmentParameter API <!-- Please describe your changes on the following line: --> Implementation of `getFramebufferAttachmentParameter` as in WebGL1 specification. Part of https://github.com/servo/servo/issues/10209. r? emilio or jdm. --- <!-- 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: --> - [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/20317) <!-- Reviewable:end -->
| * Implement WebGL getFramebufferAttachmentParameter APIIgor Gutorov2018-03-224-3/+132
| |
* | Auto merge of #20378 - Eijebong:parking_lot, r=jdmbors-servo2018-03-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Bump parking_lot to 0.5 <!-- 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/20378) <!-- Reviewable:end -->
| * | Bump parking_lot to 0.5Bastien Orivel2018-03-211-1/+1
| | |
* | | Auto merge of #20370 - christianpoveda:issue_20348, r=jdmbors-servo2018-03-213-11/+19
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blobs support typed arrays now <!-- Please describe your changes on the following line: --> Blobs support typed arrays now, the relevant test were modified --- <!-- 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 #20348 (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. --> <!-- 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/20370) <!-- Reviewable:end -->
| * | Blobs support typed arrays nowChristian Poveda2018-03-213-11/+19
| | |
* | | Bump ipc-channel and bincodeBastien Orivel2018-03-212-3/+3
| |/ |/| | | | | This required bumping uuid too which unfortunately duplicated rand.
* | Simplify GetShaderPrecisionFormatIgor Gutorov2018-03-211-13/+20
| |
* | Simplify BufferParameterIgor Gutorov2018-03-201-9/+13
| |
* | Simplify VertexAttribOffsetIgor Gutorov2018-03-201-1/+5
| |
* | Simplify GetTexParameterIgor Gutorov2018-03-201-21/+29
|/
* Update steps with new specCYBAI2018-03-201-17/+21
|
* Make `type` argument as optional and ignore it in open methodCYBAI2018-03-202-17/+5
|
* Auto merge of #20314 - Xanewok:remove-heap-constructor, r=jdmbors-servo2018-03-185-24/+42
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use unsafe Heap::new constructor <!-- Please describe your changes on the following line: --> Pulls https://github.com/servo/rust-mozjs/pull/398 and aims to close https://github.com/servo/rust-mozjs/issues/343. We can't convert from `JSVal` to `Heap<JSVal>` safely (due to GC barriers we can't move Heap value after changing its underlying value to something meaningful, e.g. non-null or non-undefined), so I decided to also wrap the Heap values in a Box (and in dictionaries in RootedTraceableBox, see https://github.com/servo/servo/pull/20265#issuecomment-372838379 and the issue for more details) in dictionaries. Since we allocate more to be safe, I think it'd be good to also do some sort of a JS perf run, if there is any to see if there's any significant overhead. r? @jdm --- <!-- 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 checking for not moving Heap after setting a value would require encoding a lot more info in type system (Heap) and I'm not sure how to do that and end up with an ergonomic and consistent API <!-- 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/20314) <!-- Reviewable:end -->
| * Root `any` members in dictionariesIgor Matuszewski2018-03-164-19/+39
| |
| * Root JS object members in dictionariesIgor Matuszewski2018-03-162-6/+4
| |
| * Use mozjs 0.3 fork without Heap::newIgor Matuszewski2018-03-161-1/+1
| |
* | alias some euclid typesPaul Rouget2018-03-162-5/+6
| |
* | Use typed coordinates.Paul Rouget2018-03-162-19/+31
|/ | | | | | | | We use Size2D and Point2D across compositing, constellation and script, losing the type of pixels we use (DevicePixel, DeviceIndepententPixel or CSSPixel) along the way, which might lead to bugs like window.outerHeight not taking into account the page zoom (using DeviceIndepententPixel instead of CSSPixel).
* Don't access the reflector when dropping a Promise (fixes #18651)Anthony Ramine2018-03-151-8/+13
| | | | The reflector may be dead already.
* Use helper `is_typed_array` functionIgor Matuszewski2018-03-141-5/+11
|
* Support nullable typed arrays in codegenIgor Matuszewski2018-03-143-2/+5
|
* WIP: Accept typed array arguments in codegenIgor Matuszewski2018-03-145-6/+76
|
* Use mozjs 2.0Igor Matuszewski2018-03-141-1/+1
|
* Auto merge of #20265 - Xanewok:fix-js-objects-in-unions, r=jdmbors-servo2018-03-144-13/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix JS object conversion in unions <!-- Please describe your changes on the following line: --> Requires safe `Heap::boxed` constructor from https://github.com/servo/rust-mozjs/pull/395 (more info on it is in the PR). Since unions currently assume that their respective members root themselves and can be stored on heap, I modified the union member object conversion branch to convert to a `RootedTraceableBox<Heap<*mut JSObject>>` (which is the currently generated type for objects in said unions). I did it only for Unions and not dictionaries, since some dictionaries had bare `*mut JSObject` members - is this a mistake and something that needs further fixing? Does this need a test, e.g. passing a union with object to a function that returns said object, and comparing the results for equality? r? @jdm Generated code with this patch (for `StringOrObject`): ```rust impl FromJSValConvertible for StringOrObject { type Config = (); unsafe fn from_jsval(cx: *mut JSContext, value: HandleValue, _option: ()) -> Result<ConversionResult<StringOrObject>, ()> { if value.get().is_object() { match StringOrObject::TryConvertToObject(cx, value) { Err(_) => return Err(()), Ok(Some(value)) => return Ok(ConversionResult::Success(StringOrObject::Object(value))), Ok(None) => (), } } // (...) } } impl StringOrObject { // (...) unsafe fn TryConvertToObject(cx: *mut JSContext, value: HandleValue) -> Result<Option<RootedTraceableBox<Heap<*mut JSObject>>>, ()> { Ok(Some(RootedTraceableBox::from_box(Heap::boxed(value.get().to_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 - [ ] These changes fix #17011 (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. --> <!-- 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/20265) <!-- Reviewable:end -->
| * Add WPT test for WebIDL union conversion containing object valuesIgor Matuszewski2018-03-132-0/+10
| |
| * Support objects in WebIDL unionsIgor Matuszewski2018-03-132-13/+19
| | | | | | | | Fixes #17011
* | style: Add infrastructure to match :host.Emilio Cobos Álvarez2018-03-141-0/+8
| |
* | style: Tidy a couple things.Emilio Cobos Álvarez2018-03-141-1/+0
| |
* | build(cmake): detect python binary for specified versionOJ Kwon2018-03-131-4/+7
|/ | | | - closes #20268
* Auto merge of #20277 - servo:test-webvr, r=jdmbors-servo2018-03-121-0/+1
|\ | | | | | | | | | | | | | | Enable /webvr/ tests <!-- 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/20277) <!-- Reviewable:end -->
| * Properly pref-gate the VR WebIDL interfaceAnthony Ramine2018-03-121-0/+1
| |
* | Auto merge of #20216 - servo:mozangle, r=emiliobors-servo2018-03-124-11/+61
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Switch from servo/angle to the mozangle crate https://github.com/servo/mozangle <!-- 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/20216) <!-- Reviewable:end -->
| * Switch from servo/angle to the mozangle crateSimon Sapin2018-03-124-11/+61
| | | | | | | | https://github.com/servo/mozangle
* | constellation: Make setting up the WebGL state fallible.Emilio Cobos Álvarez2018-03-093-8/+12
|/ | | | | | | | | | This fixes a regression caused by the glutin update. We now are creating EGL contexts in Linux Wayland, instead of X context, so the GLContextFactory assumption of one GL back-end per platform is broken. This just works around it, for now, but in general I think not relying on available WebGL state is a good thing, and we do that already for WebVR anyway.
* Split CssUrl from SpecifiedUrl for non-value URLs.Xidorn Quan2018-03-081-2/+2
|
* Auto merge of #20212 - mkollaro:webidlcmake, r=jdmbors-servo2018-03-061-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regenerate all WebIDLs when one of them changes WebIDL files have dependencies between each other, but cmake doesn't have any information about them. This can cause it to not update all the changed bindings when switching branches. --- <!-- 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 #20169 <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's a minor change in the build dependencies. Switching between two of my branches was previously failing because a change in WebGL1 bindings didn't re-generate the WebGL2 bindings. I verified that it works with this patch. <!-- 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/20212) <!-- Reviewable:end -->
| * Regenerate all WebIDLs when one of them changesMartina Kollarova2018-03-061-1/+1
| | | | | | | | | | | | WebIDL files have dependencies between each other, but cmake doesn't have any information about them. This can cause it to not update all the changed bindings when switching branches.
* | Auto merge of #20181 - fabricedesre:end-load-pageshow, r=jdmbors-servo2018-03-061-1/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fire the pageshow event at the end of the page load <!-- Please describe your changes on the following line: --> This implements step 8 of https://html.spec.whatwg.org/multipage/parsing.html#the-end --- <!-- 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 I could not find a wpt test for that, which is strange. I likely missed it :( <!-- 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/20181) <!-- Reviewable:end -->
| * | Fire the pageshow event at the end of the page load r=jdmFabrice Desré2018-03-061-1/+34
| | |
* | | Add WebGL function glGetTexParameterMartina Kollarova2018-03-063-1/+38
| |/ |/| | | | | | | | | | | Set the expected result of the test `tex-input-validation.html` to CRASH, since that is caused by unrelated problems. The test was previously not executing completely, because it stopped when it didn't find the implementation of getTexParameter.
* | update tinyfiledialogsPaul Rouget2018-03-031-1/+1
|/
* Fixup specified colspans and rowspansManish Goregaokar2018-02-281-2/+26
|
* Auto merge of #20143 - Eijebong:bump, r=noxbors-servo2018-02-281-2/+2
|\ | | | | | | | | | | | | | | Bump itertools, image, flate2 and caseless <!-- 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/20143) <!-- Reviewable:end -->
| * Update caseless to 0.2Bastien Orivel2018-02-281-1/+1
| |