aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #14046 - servo:ws-callback, r=jdmbors-servo2016-11-031-1/+1
|\ | | | | | | | | | | | | | | Add a missing newline. <!-- 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/14046) <!-- Reviewable:end -->
| * Add a missing newline.Ms2ger2016-11-031-1/+1
| |
* | Auto merge of #13646 - asajeffrey:script-lookup-iframes-by-frameid, ↵bors-servo2016-11-034-46/+66
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=ConnorGBrewster Script lookup iframes by frameid <!-- Please describe your changes on the following line: --> Lookup iframes by `FrameId` rather than `PipelineId`. This should make lookup much more reliable, since the frame id doesn't change. cc @ConnorGBrewster @aneeshusa --- <!-- 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 do not require tests because refactoring <!-- 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/13646) <!-- Reviewable:end -->
| * | Lookup frames by frame_id, not pipeline_id.Alan Jeffrey2016-11-034-46/+66
| | |
* | | Auto merge of #14027 - frewsxcv:htmlcollection-iter-refactor, r=emiliobors-servo2016-11-032-23/+26
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary `Box` around `HTMLCollectionElementsIter::node_iter`. <!-- 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/14027) <!-- Reviewable:end -->
| * | | Remove unnecessary `Box` around `HTMLCollectionElementsIter::node_iter`.Corey Farwell2016-11-022-23/+26
| | | |
* | | | Auto merge of #14044 - servo:bluetooth, r=emiliobors-servo2016-11-039-9/+11
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | Split the bluetooth code out from the net crates. <!-- 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/14044) <!-- Reviewable:end -->
| * | | Split the bluetooth code out from the net crates.Ms2ger2016-11-039-9/+11
| | |/ | |/|
* | | Auto merge of #13965 - ↵bors-servo2016-11-032-4/+24
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asajeffrey:script-iframe-check-document-browsing-context, r=Ms2ger Check that an iframe is in a document with a browsing context before processing src <!-- Please describe your changes on the following line: --> Check that an iframe is in a document with a browsing context before processing src. --- <!-- 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 #13964. - [X] These changes do not require tests because this is already tested by https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/old-tests/submission/Opera/script_scheduling/034.html <!-- 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/13965) <!-- Reviewable:end -->
| * | | Check that an iframe is in a document with a browsing context before ↵Alan Jeffrey2016-11-032-4/+24
| | | | | | | | | | | | | | | | processing src.
* | | | Update to string-cache 0.3Simon Sapin2016-11-03123-878/+913
|/ / /
* | | Auto merge of #13813 - nox:h5e, r=SimonSapinbors-servo2016-11-033-18/+55
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Update html5ever to 0.8 <!-- 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/13813) <!-- Reviewable:end -->
| * | Update html5ever to 0.8Anthony Ramine2016-11-033-18/+55
| | |
* | | Remove #![feature(custom_attribute)]Anthony Ramine2016-11-031-1/+0
| | |
* | | Remove #![feature(custom_derive)]Anthony Ramine2016-11-031-1/+0
|/ /
* | Auto merge of #14028 - servo:rustup, r=nox,SimonSapinbors-servo2016-11-025-4/+21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Rust to 1.14.0-nightly (7c69b0d5a 2016-11-01) <!-- 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 - [ ] These changes fix #__ (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. --> <!-- 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/14028) <!-- Reviewable:end -->
| * | Make #[derive(JSTraceable)] a procedural macroAnthony Ramine2016-11-033-1/+4
| | |
| * | Use heapsize_derive instead of heapsize_pluginSimon Sapin2016-11-035-3/+17
| |/
* | Auto merge of #13453 - metajack:media-query-list, r=jdmbors-servo2016-11-0210-3/+211
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement matchMedia and MediaQueryList <!-- 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 - [ ] These changes fix #13376 (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 #13376. <!-- 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/13453) <!-- Reviewable:end -->
| * | Implement matchMedia and MediaQueryListJack Moffitt2016-11-0210-3/+211
| | | | | | | | | | | | Fixes #13376.
* | | Rewrite load_whole_resource using the fetch stack.Ms2ger2016-11-023-30/+57
| |/ |/|
* | Update js.Ms2ger2016-11-026-12/+12
| |
* | Remove AsyncResponseListener.Ms2ger2016-11-021-9/+1
| |
* | Use fetch in ScriptThread.Ms2ger2016-11-022-23/+32
| | | | | | | | | | I did not find the prose that defines the creation of the request in the HTML standard (if it exists).
* | Drop style data from descendants on display:none.Bobby Holley2016-11-012-0/+13
| | | | | | | | MozReview-Commit-ID: 8ls43oAGWRg
* | Replace begin_styling with a centralized mechanism to set a node up for ↵Bobby Holley2016-11-011-36/+11
| | | | | | | | | | | | | | | | | | either styling or restyling. We also make sure that an element never has an ElementData with ElementDataStyles::Uninitialized, and eagerly call prepare_for_styling whenever an ElementData is instantiated. MozReview-Commit-ID: 9YP6eSmdMt0
* | Auto merge of #14006 - Haggus:master, r=jdmbors-servo2016-10-313-3/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed incorrectly exposed webidl interfaces <!-- Please describe your changes on the following line: --> Partial fix for #12415 Fixed: Touch, TouchList, ValidityState --- <!-- 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 _____ <!-- 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/14006) <!-- Reviewable:end -->
| * | Removed incorrectly exposed webidl interfacesMateusz 'Haggus' Mrowiec2016-10-313-3/+0
| | |
* | | Auto merge of #13729 - cynicaldevil:readAsArrayBuffer, r=Ms2gerbors-servo2016-10-313-23/+73
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented FileReader::readAsArrayBuffer <!-- 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 #12555 <!-- Either: --> - [X] There are tests for these changes There's still some small issues, but I suppose most of the work is done: - test-tidy mentions a `method declared in webidl is missing a comment with a specification link` for the `getResult` method. - I get an 'unused code' warning for code present in `UnionTypes.rs`, which is auto-generated. Passing tests: - [x] `FileAPI/reading-data-section/filereader_result.html` - [x] `FileAPI/reading-data-section/filereader_readAsArrayBuffer.html` - [x] `FileAPI/idlharness.html` - [ ] `FileAPI/reading-data-section/FileReader-multiple-reads.html` <!-- 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/13729) <!-- Reviewable:end -->
| * | Implemented FileReader::readAsArrayBufferNikhil Shagrithaya2016-11-013-23/+73
| | |
* | | Auto merge of #13988 - dsprenkels:tidy-fncalls, r=Wafflespeanutbors-servo2016-10-313-10/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test-tidy: Check for space between function name and `(` <!-- Please describe your changes on the following line: --> Disallow an extraneous space in a function call between the function name and the opening parenthesis in Rust code, while ignoring macro declarations. --- <!-- 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 --all` does not report any errors - [x] `./mach test-tidy --self` does not report any errors - [x] These changes fix #13980 <!-- Either: --> - [x] There are tests for these changes, these are written in - `python/tidy/servo_tidy_tests/rust_tidy.rs` - `python/tidy/servo_tidy_tests/test_tidy.py` - [ ] 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/13988) <!-- Reviewable:end -->
| * | | Remove extra spaces in function calls and declarationsDaan Sprenkels2016-10-313-10/+10
| |/ /
* | | Auto merge of #13419 - Coder206:swPromise, r=jdmbors-servo2016-10-312-11/+32
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ServiceWorkerContainer::Promise <!-- 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 #13409 (github issue number if applicable). <!-- Either: --> - [ ] 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/13419) <!-- Reviewable:end -->
| * | Add Promises to Service Worker ContainerPatrick Trottier2016-10-312-11/+32
| | | | | | | | | | | | The purpose of the code changes is to enable the use of promises in the Service Worker container. I also modified the Service Worker test in order to support the promises.
* | | Auto merge of #13908 - aethanyc:add-border-width-keyword, r=emiliobors-servo2016-10-291-10/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use enum BorderWidth as SpecifiedValue Use enum BorderWidth instead of a tuple-like struct to store the specified value. BorderWidth is needed to be used in both longhand and shorthand border width properties, so I put it in `specified` module. Fixed #13869. --- <!-- 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 #13869 (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/13908) <!-- Reviewable:end -->
| * | | Use enum BorderWidth as SpecifiedValueTing-Yu Lin2016-10-261-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use enum BorderWidth instead of a tuple-like struct to store the specified value. BorderWidth is needed to be used in both longhand and shorthand border width properties, so I put it in `specified` module. Fixed #13869.
* | | | Rename NodeData and associated data structures to Element*.Bobby Holley2016-10-291-10/+8
| | | | | | | | | | | | | | | | MozReview-Commit-ID: 96VsmsoZtjZ
* | | | Hoist most styling functionality from TNode to TElement.Bobby Holley2016-10-291-88/+95
| | | | | | | | | | | | | | | | MozReview-Commit-ID: DZ8ZrsZIiAU
* | | | Auto merge of #13951 - bholley:more_element, r=emiliobors-servo2016-10-281-59/+82
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incremental restyle: Hoist more stuff to Element The patch here hoists pseudo-element handling onto ThreadSafeLayoutElement. I have another patch which hoists stuff from TNode to TElement, but want to make sure this patch passes try first. <!-- 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/13951) <!-- Reviewable:end -->
| * | | | Move core pseudo-element handling to ThreadSafeLayoutElement.Bobby Holley2016-10-281-59/+82
| | | | |
* | | | | Update to selectors 0.14Simon Sapin2016-10-281-1/+1
| | | | |
* | | | | Auto merge of #13872 - anholt:webgl-fbo, r=emiliobors-servo2016-10-274-24/+387
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Add basic support for framebuffer attachments This is by no means a complete implementation, but I've slowed down on working on it, so I think we should look at what it takes to merge the current code. There are some major features missing, like initializing renderbuffers to 0 (uninitialized memory leak), tracking the attachments' attributes (width/height/format) for parameter requests, and lots of missing glCheckFramebufferStatus() validation. On the other hand, this is enough to run some demos using FBOs. --- <!-- 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 #13639 (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/13872) <!-- Reviewable:end -->
| * | | | | webgl: Re-check FBO status on binding an FBO.Eric Anholt2016-10-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the FBO has been unbound, anything that happened to its attachments (deletion, new binding, reallocation) may have caused it to change status. This doesn't change any test results currently, because we're not checking if the attachments are deleted, the wrong size, or have appropriate formats.
| * | | | | webgl: Detach RBs and textures from the bound FBO on deletion.Eric Anholt2016-10-252-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of general GL behavior: when an object is deleted, look through the currently bound objects and detach the deleted object from them. Detaching an object from an FBO causes it to need to be re-checked for its status.
| * | | | | webgl: Add support for FBO attachments.Eric Anholt2016-10-253-10/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows many FBO tests to start running as their framebuffers start coming back as framebuffer complete.
| * | | | | webgl: Add support for renderbufferStorage().Eric Anholt2016-10-253-3/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not a complete implementation yet: It doesn't clear the contents of the renderbuffer on creation. However, Gecko's plan to only clear renderbuffers when the first FBO using them is the simplest.
| * | | | | webgl: Add support for checkFramebufferStatus().Eric Anholt2016-10-252-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now it's returning the default UNSUPPORTED on user FBOs. object-deletion-behaviour.html starts running a bunch more subtets.
| * | | | | webgl: Unbind deleted objects from the GL side, not just our side.Eric Anholt2016-10-251-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once FBOs are allowed, we were running into testcases that deleted the active FBO, and expected the following ReadPixels to come from the default framebuffer.
| * | | | | webgl: Throw an error when binding a deleted framebuffer.Eric Anholt2016-10-241-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The spec was recently changed to clarify that this should throw an error.
* | | | | | Auto merge of #13949 - nox:rustup, r=larsbergstrombors-servo2016-10-273-6/+5
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Rust to 1.14.0-nightly (c59cb71d9 2016-10-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/13949) <!-- Reviewable:end -->