aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #14679 - jdm:nowarntimer, r=asajeffreybors-servo2016-12-221-2/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warn when a timer event is processed for a discarded document. Turn a panic into a warning for a situation that is easy to hit in web content. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14677 - [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/14679) <!-- Reviewable:end -->
| * Warn when a timer event is processed for a discarded document.Josh Matthews2016-12-221-2/+5
| |
* | Auto merge of #14632 - servo:multi-global-fetch, r=jdmbors-servo2016-12-222-4/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Use the API base URL in Fetch APIs. <!-- 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/14632) <!-- Reviewable:end -->
| * | Use the API base URL in Fetch APIs.Ms2ger2016-12-192-4/+2
| |/
* | Remove generation, remove filter pop, and add size tests.Bobby Holley2016-12-221-1/+9
| |
* | Auto merge of #11672 - Ms2ger:dom, r=noxbors-servo2016-12-2231-156/+87
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the dom module private. <!-- 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/11672) <!-- Reviewable:end -->
| * | Make the dom module private.Ms2ger2016-12-222-1/+6
| | |
| * | Remove and allow some dead code.Ms2ger2016-12-2228-152/+20
| | |
| * | Move attributes for the bindings module to its mod.rs.Ms2ger2016-12-222-3/+5
| | |
| * | Introduce a script::test module to expose the APIs needed for unit tests.Ms2ger2016-12-222-0/+56
| | |
* | | Auto merge of #14612 - szeged:connect-disconnect-update, r=jdmbors-servo2016-12-223-20/+90
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating GATTServer's Connect/Disconnect calls <!-- Please describe your changes on the following line: --> Added the missing [Step 5.2.3](https://github.com/servo/servo/compare/master...szeged:connect-disconnect-update#diff-1dbe29f87740f5aec93f37adbecace6cR213) to the `connect` function. Updated the [disconnect](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-disconnect) function to its current state in the specification, including the `clean_up_disconnected_device` and the `garbage_collect_the connection` functions. Added new tests for checking the invalid state of JS objects after disconnection. --- <!-- 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 <!-- 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/14612) <!-- Reviewable:end -->
| * | refactor Connect/Disconnect callsZakor Gyula2016-12-223-20/+90
| | |
* | | Auto merge of #14669 - emilio:dirty-descendants-unused, r=Wafflespeanutbors-servo2016-12-221-4/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script: Remove unused function. This is no longer used since one of @bholley's patches to the style system. <!-- 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/14669) <!-- Reviewable:end -->
| * | | script: Remove unused function.Emilio Cobos Álvarez2016-12-221-4/+0
| | | |
* | | | Auto merge of #14633 - servo:rustup, r=SimonSapin,noxbors-servo2016-12-211-3/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Rust to 1.15.0-nightly (71c06a56a 2016-12-18) <!-- 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/14633) <!-- Reviewable:end -->
| * | | | Update Rust to 1.15.0-nightly (71c06a56a 2016-12-18)Ms2ger2016-12-221-3/+0
| |/ / /
* | | | Separate the async bluetooth handling from networking code.Ms2ger2016-12-212-19/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're not at all related, besides both being asynchronous. This change adds a little extra code in response_async(), but makes this code more readable and reduces the unnecessary indirection. This change also makes the build system slightly more parallel, by dropping the dependency on bluetooth_traits from net_traits.
* | | | Auto merge of #14653 - upsuper:bug1321176, r=Manishearthbors-servo2016-12-201-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Fix assertion for unresolvable url <!-- Please describe your changes on the following line: --> This is the Servo part of [bug 1321176](https://bugzilla.mozilla.org/show_bug.cgi?id=1321176), which has been reviewed by @emilio, @Manishearth, and @heycam. 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 - [ ] 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/14653) <!-- Reviewable:end -->
| * | | | Change SpecifiedUrl::for_cascade to take ServoUrlXidorn Quan2016-12-211-1/+1
| | | | |
* | | | | Auto merge of #14630 - bd339:iss14064, r=KiChjangbors-servo2016-12-204-2/+109
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use MediaQueryListEvent for media query list change events <!-- Please describe your changes on the following line: --> - Implements MediaQueryListEvent interface - Makes MediaQueryList change events conform to the [spec](https://drafts.csswg.org/cssom-view/#evaluate-media-queries-and-report-changes) - Updates matchMedia.html test to verify that the new event type is used --- <!-- 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 #14064 <!-- 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/14630) <!-- Reviewable:end -->
| * | | | Spec conformancebd3392016-12-201-2/+11
| | | | | | | | | | | | | | | | | | | | Use MediaQueryListEvent instead of Event, in MediaQueryList.
| * | | | Implement MediaQueryListEvent interfacebd3392016-12-203-0/+98
| | |_|/ | |/| |
* | | | Fix/silence some warningsSimon Sapin2016-12-202-2/+5
| |/ / |/| |
* | | Auto merge of #14631 - ConnorGBrewster:datetime_fix, r=Ms2gerbors-servo2016-12-191-15/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make datetime just reflect <!-- Please describe your changes on the following line: --> This just uses `make_getter!` for `datetime` rather than checking if `datetime` has data and falling back to the child data if `datetime` has no data. I reverted 2 of the test changes and added back an old test that makes sure that child content is not returned when `datetime` is empty. --- <!-- 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 #14611 (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/14631) <!-- Reviewable:end -->
| * | | Make datetime just reflectConnor Brewster2016-12-191-15/+1
| |/ /
* / / Implement CSSStyleRule.styleKeith Yeung2016-12-175-120/+175
|/ /
* / Expose Quirks Mode information in the style shared context r=emilioJulien Wajsberg2016-12-176-23/+37
|/
* Auto merge of #14593 - szeged:getgattchildren, r=jdmbors-servo2016-12-164-333/+108
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement GetGATTChildren <!-- Please describe your changes on the following line: --> Implement the [GetGATTChildren](https://webbluetoothcg.github.io/web-bluetooth/#getgattchildren) function for webbluetooth. --- <!-- 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 <!-- 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/14593) <!-- Reviewable:end -->
| * Implement GetGATTChildrenAttila Dusnoki2016-12-164-333/+108
| |
* | Auto merge of #14540 - servo:at-import, r=SimonSapin,Ms2gerbors-servo2016-12-1611-149/+450
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Basic @import support. r? @SimonSapin or @mbrubeck cc @heycam and @bholley <!-- 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/14540) <!-- Reviewable:end -->
| * | script: Abstract HTMLLinkElement and StyleElement into StylesheetOwner.Emilio Cobos Álvarez2016-12-164-91/+117
| | |
| * | script: Clarify htmllinkelement's comment about `pending_loads`.Emilio Cobos Álvarez2016-12-161-1/+1
| | |
| * | script: Move the stylesheet loading code from htmllinkelement to ↵Emilio Cobos Álvarez2016-12-164-154/+274
| | | | | | | | | | | | stylesheet_loader. Make it track subresource loads properly.
| * | script: Add infrastructure to track subresource loads in <link> and <style> ↵Emilio Cobos Álvarez2016-12-163-6/+86
| | | | | | | | | | | | elements.
| * | script: Add CSSImportRule WebIDL interface.Emilio Cobos Álvarez2016-12-165-1/+76
| |/
* | Auto merge of #14589 - servo:harden-script, r=jdm+Ms2gerbors-servo2016-12-161-52/+70
|\ \ | |/ |/| | | | | | | | | | | Reduce calls into arbitrary code with the ScriptThread::documents borrow held. <!-- 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/14589) <!-- Reviewable:end -->
| * Add a tidy check for problematic match cases in script_thread.rsJosh Matthews2016-12-161-14/+14
| |
| * Reduce calls into arbitrary code with the ScriptThread::documents borrow held.Ms2ger2016-12-141-45/+63
| |
* | Auto merge of #14549 - frewsxcv:child-text-content, r=Ms2gerbors-servo2016-12-154-11/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | Implement "child text content" concept; use it where appropriate. <!-- 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/14549) <!-- Reviewable:end -->
| * | Implement "child text content" concept; use it where appropriate.Corey Farwell2016-12-154-11/+8
| | |
* | | Auto merge of #14526 - frewsxcv:cookies, r=jdmbors-servo2016-12-153-17/+22
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt at refactoring and simplifying 'set cookies' operations on resource thread. <!-- 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/14526) <!-- Reviewable:end -->
| * | | Refactor and simplify 'set cookies' operations on resource thread.Corey Farwell2016-12-153-17/+22
| | | |
* | | | Auto merge of #14509 - canaltinova:position, r=Manishearthbors-servo2016-12-151-0/+4
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement background-position-x/y <!-- Please describe your changes on the following line: --> This is a WIP PR. Just HorizontalPosition / VerticalPosition implementations are complete. I would like to get early feedbacks about this architecture. Here's some architectural topics to consider: - I created `HorizontalPosition` and `VerticalPosition` structs for this and used them in `Position` as well. We have decided to split `Keyword` enum, but we need them as unified for `PositionComponent` enum. So I didn't split but I can split it if we prefer to change PositionComponent as well. - If we prefer Keyword enum like this, we can create a SubPosition(or something like this) instead of HorizontalPosition/VerticalPosition enums since only difference is 2 lines in `parse` functions. We can create a `parse_horizontal` and `parse_vertical` instead and a lot of code duplication can be cleared. - I couldn't find a good way to use HorizontalPosition/VerticalPosition's parse functions in `Position`'s parse function. It is a bit more complicated. I'm open to suggestions :) - I don't know much about logical keywords so do I need to do something different? I placed some comments where logical keywords are processing. Any advice about these? --- <!-- 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 #14458 (github issue number if applicable). <!-- Either: --> - [X] 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/14509) <!-- Reviewable:end -->
| * | | Make background-position a shorthand instead of a longhandNazım Can Altınova2016-12-151-0/+4
| |/ /
* | | Auto merge of #14592 - asajeffrey:util-goodbye, r=mbrubeckbors-servo2016-12-1425-48/+50
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the util crate <!-- Please describe your changes on the following line: --> This PR removes the `util` crate. * Replaced the `spawn_named` and `clamp` functions by appropriate uses of `std::thread::Builder::spawn`, `std::cmp::min` and `std::cmp::max`. * Moved `opts`, `prefs` and `resource_files` into a new `config` crate. * Moved `remutex` and `geometry` into their own crates. --- <!-- 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 they are refactorings <!-- 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/14592) <!-- Reviewable:end -->
| * | | Removed util.Alan Jeffrey2016-12-1425-48/+50
| | |/ | |/|
* | | Auto merge of #14567 - szeged:represented-attributes, r=jdmbors-servo2016-12-144-53/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check if represented attributes are cached <!-- Please describe your changes on the following line: --> Improve existing cache checks in `/bluetooth/lib.rs`, and update Step comments in `script/dom` corresponding to this. --- <!-- 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/14567) <!-- Reviewable:end -->
| * | | Check if represented attributes are cachedZakor Gyula2016-12-144-53/+23
| | | |
* | | | Auto merge of #14552 - szeged:advertising_event, r=jdmbors-servo2016-12-147-92/+201
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace AdvertisingData with AdvertisingEvent <!-- Please describe your changes on the following line: --> The spec changed AdvertisingData to an event. The low level support is still missing. --- <!-- 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 <!-- 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/14552) <!-- Reviewable:end -->
| * | | | Replace AdvertisingData with AdvertisingEventAttila Dusnoki2016-12-147-92/+201
| | |/ / | |/| |