aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Implement checks for vertex attribs enabled as arrays without a bound bufferAnthony Ramine2018-06-203-49/+94
|
* Auto merge of #21052 - tigercosmos:rrr, r=jdmbors-servo2018-06-152-1/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add TextLength <!-- Please describe your changes on the following line: --> add TextLength in HTMLTextAreaElement --- <!-- 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 - [ ] 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/21052) <!-- Reviewable:end -->
| * add TextLengthtigercosmos2018-06-152-1/+6
| |
* | Auto merge of #21051 - jonathanKingston:window-length, r=jdmbors-servo2018-06-142-1/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement window.length DOM attribute. Implements the `window.length` DOM attribute for enumerating frames on the document. --- <!-- 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: --> - [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/21051) <!-- Reviewable:end -->
| * | Implement window.length DOM attribute.Jonathan Kingston2018-06-142-1/+7
| |/
* / Allow window.parent attribute to be relaceable by JavaScript.Jonathan Kingston2018-06-131-1/+1
|/
* Auto merge of #21034 - servo:desktop-oes-element-index-uint, r=KiChjangbors-servo2018-06-131-1/+5
|\ | | | | | | | | | | | | | | Don't check for GL_OES_element_index_unit with desktop GL (fixes #20921) <!-- 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/21034) <!-- Reviewable:end -->
| * Don't check for GL_OES_element_index_unit with desktop GL (fixes #20921)Anthony Ramine2018-06-121-1/+5
| |
* | style: Fix servo build.Emilio Cobos Álvarez2018-06-121-2/+2
|/
* Auto merge of #21015 - tigercosmos:yyy, r=jdmbors-servo2018-06-071-1/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support cloning steps for textarea/input <!-- 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 #13282 (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/21015) <!-- Reviewable:end -->
| * support textarea clonetigercosmos2018-06-071-1/+14
| |
* | Implement EXT_texture_filter_anisotropicAnthony Ramine2018-06-066-98/+217
|/
* Auto merge of #19511 - DonatJR:implement-read-methods-on-filereadersync, r=jdmbors-servo2018-06-046-78/+234
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement read methods on FileReaderSync <!-- Please describe your changes on the following line: --> Implemented the read methods on the FileReaderSync struct according to https://w3c.github.io/FileAPI/#dfn-FileReaderSync --- <!-- 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 #15114 <!-- 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/19511) <!-- Reviewable:end -->
| * Implement read methods on FileReaderSyncJonas Reinwald2018-06-046-78/+234
| |
* | Auto merge of #20915 - servo:webgl, r=jdmbors-servo2018-06-043-0/+60
|\ \ | |/ |/| | | | | | | | | | | Implement EXT_shader_texture_lod <!-- 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/20915) <!-- Reviewable:end -->
| * Implement EXT_shader_texture_lodAnthony Ramine2018-06-043-0/+60
| |
* | Auto merge of #20865 - gterzian:improve_spec_compliance_window_close, ↵bors-servo2018-06-041-3/+22
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=cbrewster improve spec compliance of window.close <!-- Please describe your changes on the following line: --> Improve the spec compliance of https://html.spec.whatwg.org/multipage/window-object.html#dom-window-close, mainly by implementing the steps related to [closing a browsing context](https://html.spec.whatwg.org/multipage/window-object.html#close-a-browsing-context) --- <!-- 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/20865) <!-- Reviewable:end -->
| * improve spec compliance of window.closeGregory Terzian2018-06-041-3/+22
| |
* | Fix typo for workletCYBAI2018-06-031-4/+4
| |
* | dom: Remove CSSStyleDeclaration.setPropertyValue/setPropertyPriority.Emilio Cobos Álvarez2018-06-022-41/+6
| |
* | dom: don't parse internal properties in CSSStyleDeclaration.Emilio Cobos Álvarez2018-06-021-21/+13
| |
* | Auto merge of #20884 - jdm:more-limits, r=avadacatavrabors-servo2018-05-311-1/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't forward GL parameter gets for constant limits. This avoids IPC traffic for unchanging constants that are determined when the GL context is created. These changes require https://github.com/emilio/rust-offscreen-rendering-context/pull/123. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20876. - [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/20884) <!-- Reviewable:end -->
| * | Don't forward GL parameter gets for constant limits.Josh Matthews2018-05-311-1/+30
| | |
* | | Updated to mozjs v0.7.1.Alan Jeffrey2018-05-306-15/+17
| | |
* | | Auto merge of #20879 - tigercosmos:ccc, r=jdmbors-servo2018-05-302-5/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update type of custom element constructor <!-- 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 #20875 (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/20879) <!-- Reviewable:end -->
| * | | Update type of custom element constructortigercosmos2018-05-302-5/+12
| | | |
* | | | Don't panic when tearing down a WebGL context and the thead is unreachable.Josh Matthews2018-05-291-1/+1
|/ / / | | | | | | This avoids some cascading double-panics when there are errors in the WebGL rendering thread.
* | | Auto merge of #20837 - gterzian:tests_for_has_event_listener, r=cbrewsterbors-servo2018-05-281-5/+11
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for document salvageable state I noticed a bug where if the document was un-salavageable due to the presence of `beforeunload` listeners, this could be overwritten if there were no listeners for `unload`. This could also have happened if an iframe of the document had no listeners while the parent did. <!-- 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: --> - [ ] `./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/20837) <!-- Reviewable:end -->
| * | prevent overwriting of salvageable state in later prompt/unload stepsGregory Terzian2018-05-221-5/+11
| | |
* | | Auto merge of #20864 - tigercosmos:aa1, r=emiliobors-servo2018-05-261-2/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove misleading spec url <!-- Please describe your changes on the following line: --> `pub fn scroll_area(&self)` in `node.rs` is only called by `fn ScrollHeight(&self)` and `fn ScrollWidth(&self)` in `element.rs`. `scrolltop` and `scrollleft` are actually implemented in `element.rs`. The misleading spec urls should be removed. <!-- 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/20864) <!-- Reviewable:end -->
| * | | remove misleading urltigercosmos2018-05-261-2/+0
| | |/ | |/|
* | | Auto merge of #20854 - servo:webgl, r=emiliobors-servo2018-05-254-1/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Drive-by fixes in WebGL <!-- 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/20854) <!-- Reviewable:end -->
| * | Move WebGLVertexArrayObjectOES to script::domAnthony Ramine2018-05-243-1/+1
| | | | | | | | | | | | It's not a WebGL extension itself, it's just used by one.
| * | Add OESElementIndexUint to WebGLExtensions::register_all_extensionsAnthony Ramine2018-05-241-0/+1
| | |
* | | Auto merge of #20707 - gterzian:embedder_handling_of_prompts_and_alerts_2, ↵bors-servo2018-05-245-58/+65
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=payl Embedder handling of prompts and alerts <!-- Please describe your changes on the following line: --> Allow embedder to allow alerts and prompts, but via constellation forwarding messages from script. --- <!-- 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 build-geckolib` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #19992 (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/20707) <!-- Reviewable:end -->
| * | | send message to embedder in prompt_to_unloadGregory Terzian2018-05-231-4/+14
| | | |
| * | | move top_level_browsing_context_id out of embedder msgGregory Terzian2018-05-234-30/+12
| | | |
| * | | move msg to embedder_traits, use in script, handle send error in embedderGregory Terzian2018-05-235-55/+70
| | |/ | |/|
* | | Implement most of the unsupported parameters in gl.getParameter()Anthony Ramine2018-05-241-0/+15
| |/ |/| | | | | | | | | | | | | | | | | | | | | Fixes #20536. Fixes #20537. Fixes #20538. Fixes #20544. Fixes #20545. Fixes #20546. Fixes #20548. Fixes #20549. Fixes #20551.
* | Auto merge of #20669 - simartin:issue_20623, r=jdmbors-servo2018-05-201-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #20623: Check the input to WebGLRenderingContext's clear(). Validate the input to this function as per specifications. --- - [X] `./mach build -d` does not report any errors - [X] `./mach build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20623 - [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/20669) <!-- Reviewable:end -->
| * | Issue #20623: Check the input to WebGLRenderingContext's clear().Simon Martin2018-04-211-0/+3
| | |
* | | update "navigation within beforeunload" test to match the specGregory Terzian2018-05-201-1/+1
| |/ |/|
* | Auto merge of #20674 - simartin:issue_20556, r=noxbors-servo2018-05-181-0/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #20556: Implement proper checks in WebGLRenderingContext's bindBuffer() Implement missing check, about deleted buffers. --- - [X] `./mach build -d` does not report any errors - [X] `./mach build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20556 - [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/20674) <!-- Reviewable:end -->
| * | Issue #20556: Implement proper checks in WebGLRenderingContext's bindBuffer().Simon Martin2018-05-101-0/+7
| | |
* | | Auto merge of #20754 - anholt:webgl-fixes, r=emiliobors-servo2018-05-181-7/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Webgl fixes <!-- Please describe your changes on the following line: --> Add gl.getParameter() support for webgl unpack settings, and remove some unreachable and incorrect error-generation code --- <!-- 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 #20372 - [x] These changes fix #20553 - [x] These changes fix #20554 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/20754) <!-- Reviewable:end -->
| * | | webgl: Add getParameter(UNPACK_PREMULTIPLY_ALPHA_WEBGL) support.Eric Anholt2018-05-071-0/+4
| | | |
| * | | webgl: Add getParameter(UNPACK_FlIP_Y_WEBGL) support.Eric Anholt2018-05-071-0/+4
| | | |
| * | | webgl: Drop a silly check for 0 in GetTexParameter.Eric Anholt2018-05-051-7/+1
| |/ / | | | | | | | | | | | | | | | 0 is not among the valid values for a wrap mode or filter, so it won't ever be returned unless the driver is broken, and even if it was a valid value we would want to pass it through.
* | | Auto merge of #20740 - fabricedesre:mutation-observer-disconnect, r=jdmbors-servo2018-05-183-2/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement MutationObserver.disconnect() <!-- Please describe your changes on the following line: --> This implements https://dom.spec.whatwg.org/#dom-mutationobserver-disconnect I added a `node_list` to the `MutationObserver` struct to keep track of the nodes involved in an observer because otherwise I could not find a way to unregister the observers on the node themselves without traversing the whole document tree. Let me know if there's something I missed. --- <!-- 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/20740) <!-- Reviewable:end -->
| * | | Implement MutationObserver.disconnect()Fabrice Desré2018-05-093-2/+25
| | | |