aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * | Update the WebIDL parserAnthony Ramine2016-08-264-46/+31
| | |
| * | Restore abstract.patch which was mistakenly removedAnthony Ramine2016-08-261-0/+12
| | |
| * | Hoist 7fd65affabd9ab49b254fefce968a9eafabf1fbf as its own patchAnthony Ramine2016-08-262-0/+30
| |/
* / Implement [Replaceable] (fixes #13033)Anthony Ramine2016-08-262-9/+31
|/
* Auto merge of #13028 - ofekd:implement-data-value-attr, r=KiChjangbors-servo2016-08-252-1/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement HTMLDataElement#value <!-- Please describe your changes on the following line: --> Implement HTMLDataElement#value --- <!-- 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 #12966 <!-- 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/13028) <!-- Reviewable:end -->
| * implement HTMLDataElement#valueOfek2016-08-252-1/+10
| |
* | Auto merge of #13017 - nox:wrong-receiver, r=Ms2gerbors-servo2016-08-252-43/+60
|\ \ | | | | | | | | | | | | | | | | | | | | | Pass the receiver to get_property_on_prototype (fixes #11600) <!-- 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/13017) <!-- Reviewable:end -->
| * | Pass the receiver to get_property_on_prototype (fixes #11600)Anthony Ramine2016-08-252-4/+4
| | |
| * | Make has_property_on_prototype fallibleAnthony Ramine2016-08-252-15/+33
| | |
| * | Mark get_property_on_prototype and has_property_on_prototype as unsafeAnthony Ramine2016-08-251-30/+29
| | |
* | | Auto merge of #12847 - clstl:HTMLDialogElement#close, r=noxbors-servo2016-08-252-2/+27
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements HTMLDialogElement#close <!-- Please describe your changes on the following line: --> Implements HTMLDialogElement#close according to [link](https://html.spec.whatwg.org/multipage/#the-dialog-element:dom-dialog-close) --- <!-- 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 #12352 - [X] There are tests for these change <!-- 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/12847) <!-- Reviewable:end -->
| * | Implements HTMLDialogElement#closeclstl2016-08-252-2/+27
| |/
* | Auto merge of #13030 - nox:global, r=Ms2gerbors-servo2016-08-253-144/+194
|\ \ | | | | | | | | | | | | | | | | | | | | | Improve prototypes of global objects <!-- 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/13030) <!-- Reviewable:end -->
| * | Call JS_SetImmutablePrototype for prototypes of globals (fixes #13023)Anthony Ramine2016-08-251-21/+24
| | |
| * | Define interface members on the global object directly (fixes #4593)Anthony Ramine2016-08-252-19/+51
| | |
| * | Pass a MutableHandleObject to create_global_objectAnthony Ramine2016-08-252-22/+21
| | |