aboutsummaryrefslogtreecommitdiffstats
path: root/components
Commit message (Collapse)AuthorAgeFilesLines
* Implemented paint worklet properties.Alan Jeffrey2017-07-1122-102/+341
|
* Auto merge of #17654 - jyc:image-orientation, r=Manishearthbors-servo2017-07-114-29/+85
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. Has been reviewed: https://reviewboard.mozilla.org/r/155336/ <!-- 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: --> - [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. --> Bugzilla issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1355380 <!-- 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/17654) <!-- Reviewable:end -->
| * Make Servo's rounding of image-orientation values agree with Gecko's,Jonathan Chan2017-07-114-29/+85
| | | | | | | | | | | | and pass orientations directly as an enum instead of as angles. Depends on a Gecko change to be subsequently landed in m-c.
* | Auto merge of #17609 - asajeffrey:canvas-clear-state, r=jdmbors-servo2017-07-111-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clear canvas thread state on recreation. <!-- Please describe your changes on the following line: --> The canvas rendering context is cleared when it is recreated, but not the matching state in the canvas paint thread. --- <!-- 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 #17533 - [X] These changes do not require tests because the css-paint-api tests test for this already. <!-- 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/17609) <!-- Reviewable:end -->
| * | Clear canvas thread state on recreation.Alan Jeffrey2017-07-051-0/+2
| | |
* | | Auto merge of #17652 - Tremoneck:debug_key_mover, r=paulrougetbors-servo2017-07-113-22/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move Ctrl-F12 keybindings outside of libservo <!-- Please describe your changes on the following line: --> Creates a new WindowEvent called ToggleProfiller, when this Event is queued the profiler is toggled. When Crtl + F12 are pressed the Event is queued. --- <!-- 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 #17647 (github issue number if applicable). <!-- Either: --> - [ ] 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/17652) <!-- Reviewable:end -->
| * | | Remove set_webrenderer_profiler_enabled in compositing/compositor.rs and ↵Tremoneck2017-07-112-10/+2
| | | | | | | | | | | | | | | | servo/lib.rs and inlining this function in compositing/compositor.rs
| * | | Move WR profiler keybindings to glutin window, where the other keybindingsTremoneck2017-07-112-13/+9
| | | | | | | | | | | | | | | | are located
* | | | Serialize font longhands to -moz-use-system-font when using system font like ↵Xidorn Quan2017-07-112-36/+22
| | | | | | | | | | | | | | | | what Gecko does.
* | | | Auto merge of #17658 - emilio:nesting-level, r=bholleybors-servo2017-07-102-21/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | selectors: Avoid looking at MatchingMode if the selector isn't the topmost. Also, switch the hover quirk to the same mechanism. Bug: 1379696 Reviewed-By: bholley MozReview-Commit-ID: KrmNqNyASf6 <!-- 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/17658) <!-- Reviewable:end -->
| * | | | selectors: Avoid looking at MatchingMode if the selector isn't the topmost.Emilio Cobos Álvarez2017-07-112-21/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, switch the hover quirk to the same mechanism. Bug: 1379696 Reviewed-By: bholley MozReview-Commit-ID: KrmNqNyASf6
* | | | | Auto merge of #17655 - jdm:stylo-error-reporter, r=emiliobors-servo2017-07-1027-1341/+2461
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hook up Stylo error reporter to Firefox devtools Reviewed by @emilio in https://bugzilla.mozilla.org/show_bug.cgi?id=1352669. --- - [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 <!-- 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/17655) <!-- Reviewable:end -->
| * | | | stylo: Update rust-cssparser; extract more specific error types when ↵Josh Matthews2017-07-1014-34/+53
| | | | | | | | | | | | | | | | | | | | reporting (bug 1352669).
| * | | | stylo: Create error reporters linked to documents (bug 1352669)Josh Matthews2017-07-1015-1307/+2408
| | | | |
* | | | | Consider f64 epsilon for add_weighted portions.Hiroyuki Ikezoe2017-07-111-3/+5
|/ / / / | | | | | | | | | | | | | | | | This patch also degrade assert! to debug_assert! since crash reports don't show us useful information so far (no assertion messages at all).
* | | / Update bindings.Hiroyuki Ikezoe2017-07-113-6/+6
| |_|/ |/| |
* | | Pass through visited style for after changeJ. Ryan Stinnett2017-07-104-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a transition update is needed during restyling, `get_after_change_style` is called to re-cascade without transition rules, and this style is then used for primary styling instead of the style just computed. `get_after_change_style` used to ignore visited styles, so this meant that if a transition update was needed, visited styles were effectively dropped. To fix the crash here, we pass through the existing visited styles when re-cascading as part of `get_after_change_style`. MozReview-Commit-ID: 4HBQAdeJ38B
* | | Update bindings.Hiroyuki Ikezoe2017-07-104-77/+131
|/ /
* | Use ComputedValues rather than element to get style rule list.Xidorn Quan2017-07-101-5/+6
| |
* | Auto merge of #17505 - cbrewster:less_blocking, r=asajeffrey,glennwbors-servo2017-07-093-17/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary `recv` in the constellation <!-- 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 _____ <!-- 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/17505) <!-- Reviewable:end -->
| * | Remove unnecessary `recv` in the constellationConnor Brewster2017-06-233-17/+6
| | |
* | | stylo: Run the stylehseet invalidation pass also for stylesheet removals.Emilio Cobos Álvarez2017-07-091-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | People apparently do all sorts of silly stuff with stylesheets, see Google Inbox in bug 1379203. Bug: 1379433 Reviewed-By: heycam MozReview-Commit-ID: 4x2d3glOFu8
* | | Auto merge of #17640 - emilio:starts-with-ignore-ascii-case, r=stshinebors-servo2017-07-081-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Fix starts_with_ignore_ascii_case. In particular, fix a panic when the input is not ASCII and we happen to index in something that is not a char boundary. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1379380 <!-- 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/17640) <!-- Reviewable:end -->
| * | | style: Make starts_with_ignore_ascii_case not lie if the strings are the ↵Emilio Cobos Álvarez2017-07-081-1/+1
| | | | | | | | | | | | | | | | same length.
| * | | style: Fix starts_with_ignore_ascii_case.Emilio Cobos Álvarez2017-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, fix a panic when the input is not ASCII and we happen to index in something that is not a char boundary. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1379380
* | | | Auto merge of #17639 - emilio:gdcs-rem, r=heycambors-servo2017-07-082-13/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Avoid overriding the root font size from a getDefaultComputedStyle call <!-- 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/17639) <!-- Reviewable:end -->
| * | | | style: Avoid overriding the root font size from a getDefaultComputedStyle call.Emilio Cobos Álvarez2017-07-081-3/+6
| | | | | | | | | | | | | | | | | | | | MozReview-Commit-ID: 2WFyGj868fJ
| * | | | style: Move root font size handling outside of the cascade.Emilio Cobos Álvarez2017-07-082-10/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | And merge it with the rest of the code handling root font-size changes. MozReview-Commit-ID: 3rW1C3mXiMd
* | | | Better bindgen error message when files are missing.Ralph Giles2017-07-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is only slightly more informative because it doesn't give the filename, but I think it's an improvement on the simple unwrap() panic when we try to read a file which isn't there. See also [Gecko bug 1368083](https://bugzilla.mozilla.org/show_bug.cgi?id=1368083).
* | | | Read bindgen flags from a generated file.Ralph Giles2017-07-071-21/+36
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Bindgen needs some build-specific flags, like the -isysroot passed to clang for the C++ compilation. Try to read these from $objdir/layout/style/bindgen.toml which is created by the Firefox build system, and merge them into the config. See also [Gecko bug 1368083](https://bugzilla.mozilla.org/show_bug.cgi?id=1368083).
* | | Auto merge of #17632 - omakk:master, r=jdmbors-servo2017-07-072-32/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up HTMLImageElement::handle_event Reflects desired changes in #15832 <!-- Please describe your changes on the following line: --> Cleans up `HTMLImageElement::handle_event` located in `components/script/dom/htmlimageelement.rs` --- <!-- 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 #15832 - [X] These changes do not require tests because this change maintains the same logic <!-- 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/17632) <!-- Reviewable:end -->
| * | | Refactor HTMLImageElement::handle_event to be idiomaticOmar Akkila2017-07-072-32/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up HTMLImageElement::handle_event Area::hit_test now uses a reference instead of taking ownership Fix trailing whitespace Unalign => in match Fix Area::hit_test tests to reflect updated function signature
* | | | Upgrade to rustc 1.20.0-nightly (696412de7 2017-07-06)Simon Sapin2017-07-072-9/+12
|/ / /
* | | Auto merge of #17619 - clarcharr:master, r=SimonSapinbors-servo2017-07-062-14/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update parse-hosts. The `parse-hosts` crate was recently updated so that it doesn't use any unstable features. --- - [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 tests were already implemented. <!-- 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/17619) <!-- Reviewable:end -->
| * | | Update parse-hosts.Clar Charr2017-07-062-14/+5
| | | |
* | | | stylo: Properly serialize grid shorthandNazım Can Altınova2017-07-062-17/+28
|/ / /
* | | Auto merge of #17628 - hiikezoe:restyle-damage, r=heycambors-servo2017-07-061-9/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return no damage if there is no display property changes <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1374175 --- <!-- 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 <!-- 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/17628) <!-- Reviewable:end -->
| * | | Return no damage if there is no display property changesHiroyuki Ikezoe2017-07-071-9/+19
| | | |
* | | | Auto merge of #17430 - upsuper:font-weight-int, r=noxbors-servo2017-07-0611-194/+111
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store font-weight as integer directly It doesn't make much sense to store `font-weight` as separate enums, especially given that we would need to support (somehow) arbitrary font weight value when we implement CSS Fonts Level 4. This PR refactors the `font-weight` a bit to make it store as `u16` directly. <!-- 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/17430) <!-- Reviewable:end -->
| * | | | Use integer for specified and computed font-weightXidorn Quan2017-07-0611-194/+111
| | | | |
* | | | | Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout ↵Gecko Backout2017-07-0623-2910/+1363
| |/ / / |/| | | | | | | | | | | | | | | | | | | CLOSED TREE Backs out https://github.com/servo/servo/pull/17624
* | | | Auto merge of #17624 - jdm:stylo-error-reporter, r=emiliobors-servo2017-07-0623-1363/+2910
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hook up Stylo error reporter to Firefox devtools Reviewed by @emilio in https://bugzilla.mozilla.org/show_bug.cgi?id=1352669. --- - [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 <!-- 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/17624) <!-- Reviewable:end -->
| * | | | stylo: Update rust-cssparser; extract more specific error types when ↵Josh Matthews2017-07-0615-51/+286
| | | | | | | | | | | | | | | | | | | | reporting (bug 1352669).
| * | | | stylo: Create error reporters linked to documents (bug 1352669)Josh Matthews2017-07-0611-1329/+2641
| | | | |
* | | | | Auto merge of #17578 - pyfisch:input-event, r=jdmbors-servo2017-07-063-0/+95
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the InputEvent Add WebIDL, from UI Events working draft. Implement script type for event. Note that actually firing InputEvents is not part of this commit. <!-- Please describe your changes on the following line: --> As part of my effort to improve [keyboard handling](https://groups.google.com/forum/#!topic/mozilla.dev.servo/e6R7eBDjo4M) it is necessary to introduce the InputEvent. While I have a working prototype using the input event this still needs a lot of work before it can be merged into servo. cc @jdm <!-- 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/17578) <!-- Reviewable:end -->
| * | | | Implement the InputEventPyfisch2017-07-063-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WebIDL, from UI Events working draft. Implement script type for event. Note that actually firing InputEvents is not part of this commit.
* | | | | Auto merge of #17536 - ferjm:influxdb.profiler, r=jdmbors-servo2017-07-064-6/+76
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add cli options to write profiler output to InfluxDB - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors This patch adds the command line options and associated code to write the output of running the profiler to an InfluxDB instance, so we can create graphs like [1] with Grafana. This is part of the work required to record and watch PWM results during CI to catch performance regressions. [1] https://screenshots.firefox.com/j6sSZrN7pTuPK2kX/localhost <!-- 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/17536) <!-- Reviewable:end -->
| * | | | | Add option to write profiler output to InfluxDBFernando Jiménez Moreno2017-07-034-6/+76
| | | | | |
* | | | | | Auto merge of #17608 - MortimerGoro:webvr_11, r=jdmbors-servo2017-07-0615-38/+112
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebVR 1.1 spec compatibility <!-- Please describe your changes on the following line: --> Servo WebVR implementation started when WebVR spec 1.2 was about to be released. 1.2 API included some minor breaking changes from spec 1.1 in order to improve the support of the API in WebWorkers. But eventually the WebVR committee decided not to release 1.2 and make it a major version number with a lot more changes. WebVR API 2.0 is still under heavy churn. This PR removes the WebVR changes that non-released 1.2 version introduced to support full WebVR 1.1 spec. I pushed some GC fixes in a separate commit. See https://github.com/servo/servo/issues/17076 and https://github.com/servo/rust-mozjs/issues/351 --- <!-- 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/17608) <!-- Reviewable:end -->
| * | | | | | GC FixesImanol Fernandez2017-07-055-14/+30
| | | | | | |