aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Use feature try_borrow instead of borrow_state in scriptAnthony Ramine2016-08-201-44/+31
| | |_|/ | |/| |
* | | | Update euclid to 0.10.1Anthony Ramine2016-08-211-17/+10
| |/ / |/| |
* | | Auto merge of #12861 - nox:impl-trait, r=Ms2gerbors-servo2016-08-201-16/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Clean up some iterators <!-- 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/12861) <!-- Reviewable:end -->
| * | Simplify CSSStyleDeclaration::GetPropertyValueAnthony Ramine2016-08-141-16/+5
| |/ | | | | | | While Fn(_) -> _ isn't Clone, fn(_) -> _ is.
* | Auto merge of #12924 - servo:selectors-ser, r=noxbors-servo2016-08-191-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update selectors to 0.10, with ToCss serialization. <!-- Please describe your changes on the following line: --> 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: --> - [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/12924) <!-- Reviewable:end -->
| * | Update selectors to 0.10, with ToCss serialization.Simon Sapin2016-08-181-1/+1
| | |
* | | script: Disable our dependency in ffmpeg until the media madness is over.Emilio Cobos Álvarez2016-08-171-25/+3
|/ /
* | Native MSVC windows build, convert to cmakeVladimir Vukicevic2016-08-173-1/+70
| |
* | Auto merge of #12897 - izgzhen:improve-file-api-comments, r=Manishearthbors-servo2016-08-171-7/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve File API related comments r? @Manishearth --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any 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/12897) <!-- Reviewable:end -->
| * | Improve File API related commentsZhen Zhang2016-08-171-7/+9
| |/
* / Improve Blob.Size() speed by avoid reading contentZhen Zhang2016-08-161-5/+6
|/
* Auto merge of #12854 - nox:impl-trait, r=jdmbors-servo2016-08-141-9/+5
|\ | | | | | | | | | | | | | | Use impl Trait syntax for Node::child_elements <!-- 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/12854) <!-- Reviewable:end -->
| * Use impl Trait syntax for Node::child_elementsAnthony Ramine2016-08-131-9/+5
| |
* | Auto merge of #12857 - anholt:webgl-framebuffer-binding-2, r=emiliobors-servo2016-08-141-1/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GL_FRAMEBUFFER_BINDING (and fix a VertexAttrib1fv typo) <!-- Please describe your changes on the following line: --> This PR fixes many webgl conformance test failures due to missing support for a getParameter() call in the webgl test utils. --- <!-- 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 #12852 <!-- 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/12857) <!-- Reviewable:end -->
| * | webgl: Add support for getParameter(GL_FRAMEBUFFER_BINDING).Eric Anholt2016-08-141-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | To do this, we need to keep a map of GL names (encapsulated as WebGLFramebufferId) to WebGLFramebuffer objects so that we can return the right type. Fixes #12852
| * | webgl: Fix a typo in VertexAttrib1fv handling.Eric Anholt2016-08-131-1/+1
| |/ | | | | | | | | | | The VertexAttrib[234]fv compare to the same size as in their function name. This wasn't noticed becacuse this function isn't connected from the .webidl yet.
* | Auto merge of #12851 - jeenalee:request, r=noxbors-servo2016-08-131-15/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix step 31 of the Request constructor. <!-- Please describe your changes on the following line: --> This PR fixes the step 31 of the Request constructor to fill Request's Headers object and rethrow any exceptions. Additionally, it removes unnecessary line breaks, comments, and redundant function. --- <!-- 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 #12845 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because this PR does not change the behavior of the Request constructor. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> In addition to fixing step 31 of the Request constructor, this commit also: - remove `get_current_url` function, and use `net_request::request`'s built-in `current_url` method - clean up unnecessary line breaks and comments <!-- 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/12851) <!-- Reviewable:end -->
| * Fix step 31 of the Request constructor.Jeena Lee2016-08-131-15/+3
| | | | | | | | | | | | | | | | In addition to fixing step 31 of the Request constructor, this commit also: - remove get_current_url function, and use net_request::request's built-in current_url method - clean up unnecessary line breaks and comments
* | Update Rust to 1.12.0-nightly (1deb02ea6 2016-08-12)Anthony Ramine2016-08-131-2/+2
|/
* Auto merge of #12700 - jeenalee:jeena-requestAPI, r=jdmbors-servo2016-08-126-59/+1045
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the Request API <!-- Please describe your changes on the following line: --> This PR implements the [Request API](https://fetch.spec.whatwg.org/#request-class) for the Fetch API, including its attributes and constructor, and introduces changes in relevant files. This Request integrates `net_traits::request::Request` and `dom::headers`. There are few related TODOs and comments: 1. `net_traits::request::Request`'s `headers` field does not point to `dom::request::Request`'s `headers_reflector`. 2. Every Constructor step that involves `Readable Stream` object is not implemented. 3. Every Constructor step that involves `entry settings object` or `environment settings object` is not implemented. 4. `./mach build -d` does not report any error, but prints a few warnings about unused variables related to (1) and (2). 5. Enum `ReferrerPolicy` generated by `RequestBinding` does not match `net_traits::request::Request`'s implementation. 6. `Promise`s in Body webidl are commented out. --- <!-- 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 #11895 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because tests for the Request API already exists, but this commit does not implement the interface fully. <!-- 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/12700) <!-- Reviewable:end -->
| * Modify Headers API to correctly validate value.Jeena Lee2016-08-121-9/+14
| | | | | | | | This commit modifies the headers API script to correctly validate value. As a result of this change, more wpt tests pass. The commit also changes the expected test results.
| * Implement the Request API for the Fetch API.Jeena Lee2016-08-126-52/+1033
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds new files related to implementing the [Request API](https://fetch.spec.whatwg.org/#request-class). This commit also changes the expected web platform tests results. It also modifies the following files: components/net_traits/request.rs HeapSizeOf is implemented in net_traits/request so that dom::request can be used as a wrapper around net_traits::request::Request. components/script/dom/headers.rs Several methods are added to Headers so that request can access and modify some of the headers fields.
* | Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-125-7/+16
| |
* | Auto merge of #12817 - servo:euclid, r=noxbors-servo2016-08-112-10/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | Update to euclid 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/12817) <!-- Reviewable:end -->
| * | Update to euclid 0.8Martin Robinson2016-08-122-10/+10
| |/
* | Auto merge of #12813 - emilio:hit-test, r=notriddlebors-servo2016-08-111-5/+5
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dom: getElementsFromPoint does the hit testing on viewport coordinates. <!-- 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 <!-- Either: --> - [x] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> We got this wrong (I think it wasn't my fault actually), I was just writing a test for #12777 when I found this. <!-- 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/12813) <!-- Reviewable:end -->
| * dom: getElementsFromPoint does the hit testing on viewport coordinates.Emilio Cobos Álvarez2016-08-101-5/+5
| | | | | | | | We got this wrong, I was just writing a test for #12777 when I found this.
* | Auto merge of #12790 - malisas:malisa-bytestring-generator, r=Ms2gerbors-servo2016-08-114-3/+33
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update bindings generator to support default ByteString values in a dictionary <!-- Please describe your changes on the following line: --> Update bindings generator to support default ByteString values in a dictionary. --- <!-- 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 #12737 (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/12790) <!-- Reviewable:end -->
| * bindings generator: support default ByteString values in dictionaryMalisa Smith2016-08-104-3/+33
| |
* | Auto merge of #12777 - emilio:hit-test, r=pcwaltonbors-servo2016-08-102-20/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layout: Take into account the client point for fixed positioned stacking contexts <!-- 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 #12763 (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/12777) <!-- Reviewable:end -->
| * | layout: Take into account the client point for fixed positioned stacking ↵Emilio Cobos Álvarez2016-08-082-20/+23
| |/ | | | | | | contexts.
* | Auto merge of #12780 - izgzhen:xhr-file-upload, r=Manishearthbors-servo2016-08-105-124/+165
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add XHR support for FormData and related fixes + Update IDL for `FormData`, and related fixes + Reuse `htmlformelement::FormDatum` for `formdata.rs` for a uniform representation, and related fixes + Add support for `FormData` branch of XHR `BodyInit`. + Fixes a lot of related WPT tests --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes OR <!-- 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/12780) <!-- Reviewable:end -->
| * | Add XHR support for FormDataZhen Zhang2016-08-105-124/+165
| |/
* | webgl: Validate that depthRange near <= far.Eric Anholt2016-08-101-0/+9
| | | | | | | | Fixes a subtest of webgl-specific.html.
* | Update to selectors 0.8.2Simon Sapin2016-08-091-9/+9
|/
* layout: Expand animation test mode to support not force-ticking layout.Emilio Cobos Álvarez2016-08-053-6/+6
|
* Implement Window.postMessage for same-origin windows.Josh Matthews2016-08-043-2/+92
|
* Auto merge of #11318 - mitchhentges:1471-cache-tag-name, r=noxbors-servo2016-08-041-11/+59
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compute tag_name a maximum of once per document owner 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 --faster` does not report any errors - [X] These changes fix #1471 (github issue number if applicable). Either: - [X] These changes do not require tests because no new functionality was added, just a reorganization and caching of existing functionality 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11318) <!-- Reviewable:end -->
| * Compute tag_name a maximum of once per document ownerMitchell Hentges2016-08-031-11/+59
| |
* | Auto merge of #12682 - creativcoder:fire-fetch, r=jdmbors-servo2016-08-042-4/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dispatch lifecycle events to service worker object and refactor html tests <!-- Please describe your changes on the following line: --> Changes introduced to dispatch `controllerchange`, `activate` and `fetch` simple events to Service Worker interfaces. The html tests under `tests/html/service-workers` was also updated to demo the changes. r? @jdm --- <!-- 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] These changes do not require 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/12682) <!-- Reviewable:end -->
| * | Dispatch events to service worker object and refactor html testsRahul Sharma2016-08-022-4/+9
| | |
* | | Auto merge of #12685 - ConnorGBrewster:history_length, r=asajeffreybors-servo2016-08-032-1/+11
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement history.length <!-- 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: --> - [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/12685) <!-- Reviewable:end -->
| * | Implement history.lengthConnor Brewster2016-08-032-1/+11
| | | | | | | | | | | | | | | Add full frame tree iter to reduce code duplication Add FrameId field to the Frame struct.
* | | Fire load event for external stylesheetsMike MacDonald (crazymykl)2016-08-031-4/+15
| | | | | | | | | | | | | | | | | | Do not load stylesheets with the wrong Content-Type Fixes #11912, #11910
* | | Auto merge of #11726 - sjmelia:7720_add_target_selector, r=mbrubeckbors-servo2016-08-032-1/+29
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue 7720: Add target selector and update when scrolling to fragment <!-- Please describe your changes on the following line: --> Add the target pseudo selector and set/unset it during scrolling to fragment. This change is not complete as no repaint is triggered after the selector is added - it will only take effect after a repaint is triggered by e.g. hovering over another element. (See manual test) I would like some help because i'm not sure how to resolve this; I can only think to call window.reflow. I added a manual test case, don't think this counts really! I think the applicable automated test is in /tests/wpt/web-platform-tests/dom/nodes/Element-matches.html but it currently fails, I think due to the above. --- <!-- 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 #7720 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11726) <!-- Reviewable:end -->
| * | Issue 7720: Add target selector and update when scrolling to fragmentSteve Melia2016-08-032-1/+29
| | |
* | | Add cancellability to file manager load and related refactoringZhen Zhang2016-08-024-24/+21
|/ /
* | Auto merge of #12536 - izgzhen:form-file, r=Manishearthbors-servo2016-08-023-89/+149
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add form submission for file type input and related fixings r? @Manishearth --- <!-- 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] There are tests for these changes OR <!-- 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/12536) <!-- Reviewable:end -->
| * Add form submission for file type input and related fixingsZhen Zhang2016-08-023-89/+149
| |
* | Auto merge of #12557 - creativcoder:sw-scope, r=noxbors-servo2016-08-022-6/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring back run_with_memory_reporting in serviceworkerglobalscope <!-- 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: --> - [X] These changes do not require tests because its a 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/12557) <!-- Reviewable:end -->