aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* webgl: Implement component narrowing checks for CopyTexImage2D.Josh Matthews2019-09-201-0/+41
|
* webgl: Support RGB color attachments for complete framebuffers.Josh Matthews2019-09-201-0/+1
|
* webgl: Report invalid operations for more APIs that can't use an incomplete ↵Josh Matthews2019-09-201-1/+10
| | | | framebuffer.
* Auto merge of #24176 - jdm:no-gleam, r=asajeffreybors-servo2019-09-121-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace use of gleam in webgl with sparkle. Rely on https://github.com/servo/sparkle for the GL bindings required to implement Servo's WebGL stack. This does not touch the GL usage in the compositor or webrender, which continue to rely on https://github.com/servo/gleam. This means that any breaking changes to the public GL bindings interface (such as required by https://github.com/servo/servo/pull/24111) only require updating rust-offscreen-rendering-context and rust-webvr, rather than many other crates that are out of our direct control. --- - [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 <!-- 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/24176) <!-- Reviewable:end -->
| * Replace use of gleam in webgl with sparkle.Josh Matthews2019-09-111-1/+1
| |
* | Auto merge of #24148 - asajeffrey:script-prefetch, r=jdm,noxbors-servo2019-09-115-23/+307
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefetch img, scripts and stylesheets during parsing <!-- Please describe your changes on the following line: --> Eagerly tokenize html input, and scan for `script` and `img` tags which can be prefetched into the cache. This allows resources to be loaded concurrently, which would otherwise be loaded sequentially due to being blocked by script execution. On the cloth webgl demo, this takes the time-to-paint down from 732ms to 560ms. --- <!-- 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 #3847 - [x] These changes do not require tests because it's a perf improvement <!-- 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/24148) <!-- Reviewable:end -->
| * Responding to review commentsAlan Jeffrey2019-09-111-6/+11
| |
| * Responding to review commentsAlan Jeffrey2019-09-112-103/+119
| |
| * Prefetch img and scripts during parsingAlan Jeffrey2019-09-105-23/+286
| |
* | Enable video frames as OES texturesVíctor Manuel Jáquez Leal2019-09-101-2/+14
|/ | | | | | | | This patch parametrizes WR to handle OES textures if the incoming frame wraps one. It requires the update of servo-media package and the according WR parametrization.
* Auto merge of #24142 - CYBAI:warn-module-script, r=jdmbors-servo2019-09-061-111/+168
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Show warning when module scripts are ignored The first five commits are `cherry-pick`-ed from the module script PR. I think it might be also good to have this PR first so that reviewers can focus on module script things on that PR! --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24089 - [x] These changes do not require tests because it just ignored module scripts (or should we turn on module script tests in this PR and update those test expectation to TIMEOUT?) <!-- 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/24142) <!-- Reviewable:end -->
| * Show warning when the script is a moduleCYBAI2019-09-061-38/+60
| | | | | | | | The warning can be removed in #23545.
| * Add `type_` for script origin to distinguish module or classicCYBAI2019-09-061-4/+12
| |
| * Rename ClassicScript to ScriptOriginCYBAI2019-09-061-13/+13
| | | | | | | | | | This is basically revert 965370c0bf. After introducing module script, we can reuse this struct and add field to see the type of script.
| * Rename ScriptContext to ClassicContextCYBAI2019-09-061-5/+5
| |
| * Recognize `module` as script typeCYBAI2019-09-061-34/+54
| |
| * Update spec step numberCYBAI2019-09-061-32/+39
| |
* | Auto merge of #24144 - stephenmuss:event-src-element, r=jdmbors-servo2019-09-052-0/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Event src element <!-- Please describe your changes on the following line: --> This builds on top of the work done in https://github.com/servo/servo/pull/22918 --- <!-- 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 #22880 - [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/24144) <!-- Reviewable:end -->
| * implement historical srcElement attribute for Event interfacedrexler2019-09-052-0/+6
| |
* | Auto merge of #24137 - gterzian:fix_error_throwing_on_unknown_js_arg, r=jdmbors-servo2019-09-051-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Codegen: throw type error when encountering an unknown argument <!-- Please describe your changes on the following line: --> FIX #24130 --- <!-- 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. --> <!-- 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/24137) <!-- Reviewable:end -->
| * codegen: throw type error when encountering an unknown argumentGregory Terzian2019-09-051-1/+1
| |
* | Auto merge of #24109 - gterzian:fix_performance_entry_buffer_leak, r=asajeffreybors-servo2019-09-042-27/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Performance: limit buffer size, clear on pipeline exit <!-- Please describe your changes on the following line: --> Part of https://github.com/servo/servo/issues/24074 --- <!-- 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. --> <!-- 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/24109) <!-- Reviewable:end -->
| * | performance: clear and disable buffer on pipeline exitGregory Terzian2019-09-042-27/+34
| |/ | | | | | | use existing buffer max size
* | Auto merge of #24094 - asajeffrey:webxr-depth-n-stencil, r=jdmbors-servo2019-09-042-5/+63
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create depth and stencil attachments for XRWebGLLayer <!-- Please describe your changes on the following line: --> Creates depth and stencil attachments for an XRWebGLLayer if requested. --- <!-- 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 #24082 - [x] These changes do not require tests because not sure how we'd test for this <!-- 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/24094) <!-- Reviewable:end -->
| * | Create depth and stencil attachments for XRWebGLLayerAlan Jeffrey2019-08-282-4/+46
| | |
| * | Better error detection when creating an XRWebGLLayerAlan Jeffrey2019-08-281-1/+17
| | |
* | | Auto merge of #24044 - Eijebong:img-element-spec-update, r=jdmbors-servo2019-09-021-23/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove <img>'s historical progress events Fixes #24011 <!-- 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/24044) <!-- Reviewable:end -->
| * | | Remove <img>'s historical progress eventsBastien Orivel2019-09-011-23/+2
| | |/ | |/| | | | | | | Fixes #24011
* | | Auto merge of #24097 - saschanaz:default-tojson, r=Manishearthbors-servo2019-09-016-11/+15
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add [Default] toJSON() to performance interfaces <!-- Please describe your changes on the following line: --> Enable `[Default] toJSON()` lines that were previously commented out. --- <!-- 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 #21274 <!-- 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/24097) <!-- Reviewable:end -->
| * | Add [Default] toJSON() to performance interfacesKagami Sascha Rosylight2019-09-016-11/+15
| |/
* | Auto merge of #24072 - gterzian:ensure_docs_drop, r=asajeffreybors-servo2019-08-281-4/+14
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure documents drop when a pipeline exits <!-- Please describe your changes on the following line: --> minimalist companion/alternative to https://github.com/servo/servo/pull/24047 --- <!-- 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. --> <!-- 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/24072) <!-- Reviewable:end -->
| * ensure documents drop when a pipeline exitsGregory Terzian2019-08-281-4/+14
| |
* | Update Window::open and document::open parameters to match the specBastien Orivel2019-08-245-6/+6
|/ | | | Fixes #24012
* Auto merge of #24018 - Manishearth:wherever-you-are, r=asajeffreybors-servo2019-08-231-1/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | Allow setting near/far clip planes needs https://github.com/servo/webxr/pull/41 r? @asajeffrey <!-- 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/24018) <!-- Reviewable:end -->
| * Allow setting near/far clip planesManish Goregaokar2019-08-231-1/+11
| |
* | Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)Simon Sapin2019-08-232-4/+4
| |
* | Auto merge of #23997 - collares:audiobuffersourcenode, r=ferjmbors-servo2019-08-222-5/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement missing functionality of AudioBufferSourceNode <!-- Please describe your changes on the following line: --> This is a tiny PR to support [Media #293](https://github.com/servo/media/pull/293). Last time I ran WPT there was only one failing AudioBufferSourceNode test (which I will debug later this week). Once I rebased, however, I started getting unrelated servo-media build failures: ``` error[E0599]: no method named `shutdown_audio_context` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope --> components/script/dom/baseaudiocontext.rs:566:14 error[E0599]: no method named `shutdown_player` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope --> components/script/dom/htmlmediaelement.rs:1866:18 ``` I wanted to get this PR up so https://github.com/servo/media/pull/293 can be tested. When the unrelated build failures are fixed, I will run `./mach update-wpt` and update this 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` only reports unrelated errors (broken servo/media master?) - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #22363 <!-- 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/23997) <!-- Reviewable:end -->
| * | AudioBufferSourceNode: Send loop messagesMauricio Collares2019-08-201-2/+14
| | |
| * | AudioBufferSourceNode: Support start parameters (offset, duration)Mauricio Collares2019-08-191-0/+10
| | |
| * | AudioBuffer: Track sample rateMauricio Collares2019-08-192-4/+11
| |/
* | introduce a pipeline namespace installerGregory Terzian2019-08-211-1/+3
| |
* | Auto merge of #23844 - saschanaz:tojson, r=Manishearthbors-servo2019-08-207-24/+99
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support default toJSON in WebIDL <!-- Please describe your changes on the following line: --> Ported related lines from gecko. --- <!-- 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 #22781 <!-- 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/23844) <!-- Reviewable:end -->
| * remove redundant extra scopingKagami Sascha Rosylight2019-07-251-8/+1
| |
| * use SafeJSContextKagami Sascha Rosylight2019-07-252-5/+4
| |
| * Merge branch 'master' into tojsonKagami Sascha Rosylight2019-07-2564-952/+890
| |\
| * | Support default toJSON in WebIDLKagami Sascha Rosylight2019-07-247-21/+106
| | |
* | | Auto merge of #24000 - ferjm:update.servo.media.shutdown, r=jdmbors-servo2019-08-192-24/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update servo-media. Remove implicit shutdown requests. It all happens… … automagicly now - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- 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/24000) <!-- Reviewable:end -->
| * | | Update servo-media. Remove implicit shutdown requests. It all happens ↵Fernando Jiménez Moreno2019-08-192-24/+0
| | | | | | | | | | | | | | | | automagicly now
* | | | Auto merge of #23951 - ↵bors-servo2019-08-191-2/+6
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | georgeroman:return_errorstatus_from_webdriverhandlers, r=jdm Return ErrorStatus from webdriver_handlers <!-- Please describe your changes on the following line: --> With `webdriver 0.40`, `ErrorStatus` implements `Deserialize`. Now we can accommodate for multiple errors occuring in `webdriver_handlers`. --- <!-- 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 <!-- Either: --> <!-- 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/23951) <!-- Reviewable:end -->
| * | | Return ErrorStatus from webdriver_handlersGeorge Roman2019-08-181-2/+6
| | | |