aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #13145 - ashrko619:nav-cookie-enabled, r=noxbors-servo2016-09-012-0/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented Navigator.cookieEnabled <!-- 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 #13124 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes. <!-- 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/13145) <!-- Reviewable:end -->
| * Implemented Navigator.cookieEnabledAshwin R2016-09-012-0/+13
| |
* | style: Provide whether we're styling or not to rust-selectors.Emilio Cobos Álvarez2016-08-313-7/+7
| | | | | | | | This makes us not adding the flags to everything in servo.
* | Auto merge of #13134 - servo:archery, r=emiliobors-servo2016-08-3112-167/+45
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add lots of Arc’s in style, and prepare for using DOMRefCell <!-- Please describe your changes on the following line: --> `DOMRefCell` usage is not there year because of thread-safety questions, but I have this much already that I’d like to land before it bitrots. r? @emilio --- <!-- 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 new tests because refactor <!-- 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/13134) <!-- Reviewable:end -->
| * Remove now-redundant Arc inside PropertyDeclarationBlock.Simon Sapin2016-08-311-5/+5
| |
| * Use Arc<PropertyDeclarationBlock> everwhere it’s appropriate.Simon Sapin2016-08-313-12/+22
| |
| * Move DOMRefCell to style.Simon Sapin2016-08-314-141/+10
| |
| * Make DOMRefCell use style’s copy of RefCellSimon Sapin2016-08-318-10/+9
| |
| * Wrap in Arc<_> every object reflected in CSSOM.Simon Sapin2016-08-311-1/+1
| | | | | | | | See https://bugzilla.mozilla.org/show_bug.cgi?id=1281962#c5
* | Auto merge of #13100 - nox:better-getters, r=Ms2gerbors-servo2016-08-3130-152/+162
|\ \ | | | | | | | | | | | | | | | | | | | | | Use Option<T> to return from getters <!-- 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/13100) <!-- Reviewable:end -->
| * | Use Option<T> to return from gettersAnthony Ramine2016-08-3022-109/+72
| | | | | | | | | | | | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
| * | Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-309-46/+72
| | |
| * | Root js_object in TextEncoder::EncodeAnthony Ramine2016-08-301-3/+4
| | |
| * | Improve some TestBinding methodsAnthony Ramine2016-08-301-4/+23
| | | | | | | | | | | | We make them return sensical things in a sensical way.
| * | Don't bother with the global in ImageData::get_image_dataAnthony Ramine2016-08-304-8/+6
| | |
| * | Assert that ImageData::data is not nullAnthony Ramine2016-08-301-0/+3
| | |
* | | layout: Keep track of whether we've deferred the painting of the document due toEmilio Cobos Álvarez2016-08-303-3/+34
| |/ |/| | | | | | | | | | | | | | | | | a script query. This will, rather unfortunately, mean that we might repaint two times if we've deferred a paint, then get an out-of-band reflow. Still seemed better than not suppressing paints at all. Fixes #13131
* | Auto merge of #13126 - splav:HTMLOptionElement.form#13111, r=metajackbors-servo2016-08-302-1/+17
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Html option element.form#13111 <!-- Please describe your changes on the following line: --> Add HTMLOptionElement form attribute support --- <!-- 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 #13111 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/13126) <!-- Reviewable:end -->
| * add HTMLOptionElement form attribute supportAlexandrov Sergey2016-08-302-1/+17
| |
* | Fix canvas image tests when using webrender.Glenn Watson2016-08-301-2/+10
|/ | | | | | When webrender is enabled, image decoding doesn't pre-multiply by alpha, but the canvas code expects the image data to be pre-multiplied form.
* Remove mutex from TrustedAlan Jeffrey2016-08-295-91/+54
| | | | | Use weak references rather than message passing to garbage-collect dead references.
* Auto merge of #13102 - anholt:webgl-is-program, r=emiliobors-servo2016-08-283-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Add isProgram() support. <!-- Please describe your changes on the following line: --> webgl: Add isProgram() support. --- <!-- 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 _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> There's one failure still, where a deleted program should still be considered to be a program until it's unbound. However, I recently made it so that we unbind at delete time, and we may need to partially back that change out. <!-- 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/13102) <!-- Reviewable:end -->
| * webgl: Add isProgram() support.Eric Anholt2016-08-283-1/+10
| | | | | | | | | | | | | | There's one failure still, where a deleted program should still be considered to be a program until it's unbound. However, I recently made it so that we unbind at delete time, and we may need to partially back that change out.
* | Auto merge of #13060 - anholt:webgl-invalid-passed-params, r=emiliobors-servo2016-08-281-0/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Do validation of glScissor/glViewport(width, height) on the DOM side <!-- Please describe your changes on the following line: --> webgl: Do validation of glScissor/glViewport(width, height) on the DOM side --- <!-- 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 _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Avoids testcase CRASHes due to unexpected GL 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/13060) <!-- Reviewable:end -->
| * webgl: Do validation of glScissor/glViewport(width, height) on the DOM side.Eric Anholt2016-08-261-0/+8
| | | | | | | | Avoids testcase CRASHes due to unexpected GL errors.
* | Update cssparserSimon Sapin2016-08-281-2/+2
| | | | | | | | Today’s Rust Nigthly broke it
* | Auto merge of #13063 - larsbergstrom:remove_git_info, r=metajackbors-servo2016-08-281-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove static usage at compile-time of GIT_INFO to enable builds outs… r? @metajack The issue here is that if we build Servo from a expanded copy of the sources w/o a git repository present in-tree, this will fail. Further, we can't switch to `option_env` with an `unwrap_or` because `concat!` expects string literals. <!-- 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/13063) <!-- Reviewable:end -->
| * | Remove static usage at compile-time of GIT_INFO to enable builds outside of ↵Lars Bergstrom2016-08-271-1/+1
| | | | | | | | | | | | a git repo
* | | Update string_cache to 0.2.26Keith Yeung2016-08-281-1/+1
| | |
* | | Auto merge of #13055 - servo:rustup, r=metajackbors-servo2016-08-281-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Do not merge) Update Rust to 1.13.0-nightly (198713106 2016-08-26) <!-- 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/13055) <!-- Reviewable:end -->
| * | | Update Rust to 1.13.0-nightly (198713106 2016-08-26)Anthony Ramine2016-08-281-1/+1
| | | |
* | | | Auto merge of #13076 - wdv4758h:serviceworker_manager, r=jdmbors-servo2016-08-271-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary clone from ServiceWorkerManager::prepare_activation remove unnecessary for `scope_url` - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12999 - [X] These changes do not require tests because it should works when it compiles <!-- 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/13076) <!-- Reviewable:end -->
| * | | | Remove unnecessary clone from ServiceWorkerManager::prepare_activationChiu-Hsiang Hsu2016-08-271-2/+2
| |/ / /
* | | | Auto merge of #13070 - tp6vup54:master, r=KiChjangbors-servo2016-08-271-71/+195
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert imports in generate_imports into one per line, so that it can… <!-- Please describe your changes on the following line: --> Convert imports in generate_imports into one per line, so that it can easily add new ones with alphabetical order. --- <!-- 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 #13036 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> … easily add new ones with alphabetical order. <!-- 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/13070) <!-- Reviewable:end -->
| * | | | Convert imports in generate_imports into one per line, so that it can easily ↵tp6vup542016-08-271-71/+195
| | | | | | | | | | | | | | | | | | | | add new ones with alphabetical order.
* | | | | Auto merge of #13057 - servo:rpe-ac, r=noxbors-servo2016-08-275-10/+11
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the JSAutoCompartment from report_pending_exception. <!-- 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/13057) <!-- Reviewable:end -->
| * | | | Remove the JSAutoCompartment from report_pending_exception.Ms2ger2016-08-265-10/+11
| | |_|/ | |/| | | | | | | | | | It doesn't really belong there.
* | | | Auto merge of #12934 - anholt:webgl-deletion-and-bindings, r=emiliobors-servo2016-08-271-23/+68
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: object deletion and bindings <!-- Please describe your changes on the following line: --> This PR brings in some fixes to the wpt object-deletion-and-behaviour.html testcase. The test still has many failures, but some of the things that were really getting in the way are fixed. --- <!-- 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 _____ <!-- 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/12934) <!-- Reviewable:end -->
| * | | | webgl: Add getters for other GL_*_BINDING enums.Eric Anholt2016-08-261-11/+31
| | | | | | | | | | | | | | | | | | | | Fixes many subcases of object-deletion-behaviour.html.
| * | | | webgl: Remove objects from binding points on object deletion.Eric Anholt2016-08-261-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We keep bindings that shadow what's mapped in the GL state currently, and so we need to remove the objects from our binding points when they get implicitly removed from the GL binding points during object deletion.
| * | | | webgl: Protect against GL error on glBindRenderbuffer(deleted rbo).Eric Anholt2016-08-261-7/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a GLES or compatibility underlying GL context, we were fine because an underlying renderbuffer object would just get re-created, and nothing too bad happened because we aren't tracking the currently bound renderbuffer at the DOM level. However, on a desktop GL core context, binding non-genned or deleted names is an error. Fixes a crash in object-deletion-behavior.html.
* | | | Auto merge of #13068 - ashrko619:shut_down_layout_panic, r=jdmbors-servo2016-08-261-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed calling unwrap on an Err value <!-- 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 #13046 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests. <!-- 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/13068) <!-- Reviewable:end -->
| * | | fixed calling unwrap on an Err valueAshwin R2016-08-271-1/+1
| | |/ | |/|
* | | Auto merge of #13062 - nox:bump-js, r=noxbors-servo2016-08-263-17/+17
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Make DOMJSClass use JSClass instead of Class (fixes #13031) <!-- 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/13062) <!-- Reviewable:end -->
| * | Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-263-17/+17
| |/
* | Remove unused children_count method from TNode.Bobby Holley2016-08-261-4/+0
| | | | | | | | | | The semantics of this method with respect to anonymous children are unclear. Thankfully it's unused, so we can remove it.
* | Make ChildrenIterator concrete.Bobby Holley2016-08-261-0/+20
|/ | | | | This will allow us to specialize ChildrenIterator in the Gecko case to do something more interesting in some cases.
* Auto merge of #13052 - anholt:webgl-drawelements-types, r=noxbors-servo2016-08-261-3/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Fix validation of drawElements()'s type argument. <!-- Please describe your changes on the following line: --> webgl: Fix validation of drawElements()'s type argument. --- <!-- 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 _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Fixes crash due to unexpected GL errors in gl-drawelements.html. <!-- 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/13052) <!-- Reviewable:end -->
| * webgl: Fix validation of drawElements()'s type argument.Eric Anholt2016-08-261-3/+5
| | | | | | | | Fixes crash due to unexpected GL errors in gl-drawelements.html.
* | Auto merge of #13044 - nox:webidl, r=Ms2gerbors-servo2016-08-267-46/+73
|\ \ | | | | | | | | | | | | | | | | | | | | | Update the WebIDL parser <!-- 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/13044) <!-- Reviewable:end -->