servo/components/script
bors-servo 34bf312e0c
Auto merge of #22214 - jabedude:validate-argument, r=jdm
Add GetShaderPrecisionFormat argument validation

This patch adds a check on the shader_type argument. If it is not one either
FRAGMENT_SHADER or VERTEX_SHADER, we return INVALID_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 fix  #22080
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because @jdm wants to wait until the PR is open to test.

<!-- 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/22214)
<!-- Reviewable:end -->
2018-11-17 16:47:14 -05:00
..
docs Replace http with https in docs 2018-11-06 11:39:09 +01:00
dom Auto merge of #22214 - jabedude:validate-argument, r=jdm 2018-11-17 16:47:14 -05:00
task_source Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
body.rs Format remaining files 2018-11-06 22:30:31 +01:00
build.rs Remove useless use crate_name; imports. 2018-11-08 09:29:52 +01:00
Cargo.toml Auto merge of #22202 - servo:webgl, r=jdm 2018-11-17 02:35:22 -05:00
clipboard_provider.rs Reorder imports 2018-11-06 22:35:07 +01:00
CMakeLists.txt
devtools.rs Reorder imports 2018-11-06 22:35:07 +01:00
document_loader.rs Reorder imports 2018-11-06 22:35:07 +01:00
fetch.rs Reorder imports 2018-11-06 22:35:07 +01:00
layout_image.rs Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
lib.rs Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
mem.rs Format script component 2018-09-19 17:40:47 -04:00
microtask.rs Sort use statements 2018-11-06 15:26:02 +01:00
network_listener.rs Reorder imports 2018-11-06 22:35:07 +01:00
script_runtime.rs Auto merge of #21804 - AgustinCB:unify-task-source-canceller-api, r=gterzian 2018-11-16 09:54:40 -05:00
script_thread.rs Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
serviceworker_manager.rs Reorder imports 2018-11-06 22:35:07 +01:00
serviceworkerjob.rs Reorder imports 2018-11-06 22:35:07 +01:00
stylesheet_loader.rs Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
task.rs cargo fix --edition-idioms 2018-11-08 09:28:00 +01:00
task_manager.rs Unify the task source and task canceller API 2018-11-14 06:36:44 -05:00
task_queue.rs cargo fix --edition-idioms 2018-11-08 09:28:00 +01:00
test.rs Reorder imports 2018-11-06 22:35:07 +01:00
textinput.rs Correct select all 2018-11-07 18:58:51 +01:00
timers.rs Reorder imports 2018-11-06 22:35:07 +01:00
unpremultiplytable.rs Format script component 2018-09-19 17:40:47 -04:00
webdriver_handlers.rs cargo fix --edition-idioms 2018-11-08 09:28:00 +01:00