servo/components/script
bors-servo ffa03380ca Auto merge of #18580 - MortimerGoro:webgl_active_texture, r=jdm
Associate WebGL textures with texture units

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

Currently `bound_texture_2d` and `bound_texture_cube_map` fields are used to restore texture states and to get the current bindings in GetParams(...). But as soon as active texture is changed all the values can become dirty, leading to broken textures in some demos or invalid getParam(...) call results.

This PR implements the texture binding association with the texture units.

---
<!-- 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 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/18580)
<!-- Reviewable:end -->
2017-09-28 14:12:06 -05:00
..
docs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
dom Auto merge of #18580 - MortimerGoro:webgl_active_texture, r=jdm 2017-09-28 14:12:06 -05:00
task_source Introduce TaskOnce 2017-09-20 10:37:09 +02:00
body.rs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
build.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
Cargo.toml Update mp3-metatada and thus audio-video-metadata 2017-09-26 20:57:27 +02:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt
devtools.rs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
document_loader.rs Rename JS<T> to Dom<T> 2017-09-26 09:48:55 +02:00
fetch.rs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
layout_image.rs Rename Document::mut_loader to loader_mut 2017-09-25 12:32:34 +02:00
lib.rs Rename LayoutJS<T> to LayoutDom<T> 2017-09-26 09:49:04 +02:00
mem.rs
microtask.rs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
network_listener.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
script_runtime.rs Move script_runtime::StackRootTLS to root::ThreadLocalStackRoots 2017-09-27 13:58:59 +02:00
script_thread.rs Move STACK_ROOTS to dom::bindings::root 2017-09-27 14:16:05 +02:00
serviceworker_manager.rs remove extra spaces after keywords 2017-07-20 00:45:02 +03:00
serviceworkerjob.rs Rename DOMRefCell<T> to DomRefCell<T> 2017-09-26 09:49:08 +02:00
stylesheet_loader.rs Rename Runnable to Task 2017-09-16 15:43:26 +02:00
task.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
test.rs Rename DOMRefCell<T> to DomRefCell<T> 2017-09-26 09:49:08 +02:00
textinput.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
timers.rs Rename DOMRefCell<T> to DomRefCell<T> 2017-09-26 09:49:08 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00