aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* layout: Keep track of whether we've deferred the painting of the document due toEmilio Cobos Álvarez2016-08-302-3/+26
| | | | | | | | | | 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-293-85/+52
| | | | | 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.
* | 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
* | 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.
* / Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-263-17/+17
|/
* 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
| | |
| * | Make create_global_object take a &'static ClassAnthony Ramine2016-08-252-2/+2
| | |
| * | Rename utils::create_dom_object to interface::create_global_objectAnthony Ramine2016-08-253-77/+80
| | |
| * | Split global logic out of CGWrapMethodAnthony Ramine2016-08-251-25/+40
| | |
| * | Make define_constants unsafeAnthony Ramine2016-08-251-10/+8
| |/
* | Auto merge of #12980 - jdm:proxychanges, r=noxbors-servo2016-08-251-4/+34
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix ridiculous DOM proxy getter performance This implements the missing shadowing checks that were causing us to take many slow paths when dealing with proxy objects. Verified by running `tests/html/binding_perf.html` before and after and observing a 12x improvement. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12357 - [X] These changes do not require tests because we can't test performance yet. <!-- 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/12980) <!-- Reviewable:end -->
| * Check for shadowing properties on DOM proxies. Fixes #12357.Josh Matthews2016-08-251-6/+20
| |
| * Pass real values to the proxy handler setup.Josh Matthews2016-08-251-3/+19
| |
* | Implement iterable for Headers.Jeena Lee2016-08-242-2/+39
| | | | | | | | | | This commit implements iterable in DOM Headers based on iterable implementation from #12819. Expected wpt results are updated as well.
* | Auto merge of #12819 - jdm:iterable2, r=noxbors-servo2016-08-2413-147/+743
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support pair and value iterable WebIDL bindings The actual iterator implementation and JSAPI calls related to setting up the interface are ported directly from Gecko's Codegen.py, IterableIterator.h, and IterableIterator.webidl. The changes to support multiple interfaces in one file are required because the internal iterator interface the parser generates gets associated with the original interface's WebIDL file. It seemed like a good time to address #571 in that case. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12628 and fix #571. - [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/12819) <!-- Reviewable:end -->
| * | Use named arguments for CGImports.Josh Matthews2016-08-241-3/+10
| | |
| * | Set up the iterator prototype as the prototype of iterator interfaces, and ↵Josh Matthews2016-08-241-4/+55
| | | | | | | | | | | | alias forEach to the entries method.