aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added AudioTrack, AudioTrackList, VideoTrack, VideoTrackList, and TrackEvent ↵sreeise2019-03-0319-138/+974
| | | | interfaces
* Auto merge of #22933 - pngai:implement-returnValue-attribute, r=jdmbors-servo2019-03-016-42/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement historical returnValue attribute for Event interface <!-- Please describe your changes on the following line: --> Implementation of `returnValue` attribute for Event interface. --- <!-- 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 #22881 (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/22933) <!-- Reviewable:end -->
| * Implement historical returnValue attribute for Event interfacePatrick Ngai2019-02-286-42/+13
| |
* | Auto merge of #22934 - Manishearth:update-webidl, r=noxbors-servo2019-03-0112-76/+201
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update WebIDL.py I'm working on getting [attributes on types landed in upstream webidl](https://bugzilla.mozilla.org/show_bug.cgi?id=1359269). In preparation for that, I'd like to update WebIDL.py and deal with all the conflicts first so that updating for that bug is easier. (This PR doesn't need to be reviewed and landed right now, I can just roll it into the PR for implementing attributes on types, but I suspect it would be easier to land this first) Probably should squash before landing, the steps are separated out for ease of review. r? @nox @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/22934) <!-- Reviewable:end -->
| * | Update webidl.py from upstreamManish Goregaokar2019-03-0112-76/+201
| |/
* | Auto merge of #22954 - Manishearth:tc-docs-split, r=jdmbors-servo2019-03-011-6/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put the docs task into its own builder until it learns to behave The latest rust update regressed rustdoc performance on servo a lot (6min to 37min), and now the tidy+unit+docs builder keeps timing out. This splits out the doc task into its own thing until we can fix this. r? @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/22954) <!-- Reviewable:end -->
| * | Temporarily move docs task to its own builderManish Goregaokar2019-03-011-6/+14
|/ /
* | Auto merge of #22948 - shanavas786:niko-master, r=jdmbors-servo2019-02-283-43/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move RenderNotifier from compositing component to servo component <!-- Please describe your changes on the following line: --> I have absorbed #22713 into 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] These changes fix #22707 <!-- 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/22948) <!-- Reviewable:end -->
| * | Move RenderNotifier from compositing to servoNiko Pen2019-02-283-43/+45
|/ /
* | Auto merge of #22945 - peterjoel:patch-1, r=jdmbors-servo2019-02-271-2/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed inconsistency in import of gl::Gl All other uses of `Gl` in this file use the qualified path `gl::Gl`. <!-- Please describe your changes on the following line: --> Fixed a small inconsistency with qualified import. --- <!-- 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: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it is a minor syntactic change <!-- 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/22945) <!-- Reviewable:end -->
| * | Fixed inconsistency in import of gl::GlPeter Hall2019-02-271-2/+6
|/ / | | | | | | All other uses of `Gl` in this file use the qualified path `gl::Gl`.
* | Auto merge of #22939 - asajeffrey:vrdisplay-gets-gl-bindings, r=jdmbors-servo2019-02-277-22/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the GL context to the VRDisplay when rendering <!-- Please describe your changes on the following line: --> Allow the VRDisplay access to the WebGL thread's GL bindings. --- <!-- 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 it's behind-the-scenes plumbing <!-- 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/22939) <!-- Reviewable:end -->
| * | Pass the GL context to the VRDisplay when renderingAlan Jeffrey2019-02-277-22/+34
| | |
* | | Auto merge of #22941 - servo-wpt-sync:wpt_update_25-02-2019, r=jdmbors-servo2019-02-27165-2644/+2144
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync WPT with upstream (25-02-2019) Automated downstream sync of changes from upstream as of 25-02-2019. [no-wpt-sync] <!-- 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/22941) <!-- Reviewable:end -->
| * | Update web-platform-tests to revision 38bd28fe2368c650cf6e57be205cf3118dbd4997WPT Sync Bot2019-02-25165-2644/+2144
| | |
* | | Auto merge of #22917 - ksqsf:master, r=KiChjangbors-servo2019-02-273-7/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add optional annotations for initEvent method of Event interface Added `optional` and default values to parameters `bubbles` and `cancelable` of `initEvent` of `Event`. I tried to update test results, but there seem to be no differences at all. I checked similar code where `optional` is used, and there seems to be no special handling in Rust. If that is not the case with this issue, please let me know and I'll commit more follow-ups. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22883 <!-- Either: --> - [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/22917) <!-- Reviewable:end -->
| * | | Add optional annotations for initEvent method of Event interface_rika2019-02-263-7/+1
| | | |
* | | | Auto merge of #22938 - asajeffrey:webvr-future-frame-data, r=paulrougetbors-servo2019-02-277-17/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use webvr future_frame_data to avoid blocking the WebGL thread <!-- Please describe your changes on the following line: --> This PR fixes a potential deadlock caused by the WebGL thread being blocked on a VR device. Rather than blocking on the VR device, it forwards a future to the script thread, and then then script thread blocks. --- <!-- 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 it's fixing a potential deadlock <!-- 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/22938) <!-- Reviewable:end -->
| * | | | Use webvr future_frame_data to avoid blocking the WebGL threadAlan Jeffrey2019-02-267-17/+23
| | |/ / | |/| |
* | | | Auto merge of #22937 - servo:rustup, r=noxbors-servo2019-02-2611-31/+52
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.34.0-nightly (097c04cf4 2019-02-24) <!-- 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/22937) <!-- Reviewable:end -->
| * | | | ReformatSimon Sapin2019-02-2610-21/+42
| | | | |
| * | | | Upgrade to rustc 1.34.0-nightly (097c04cf4 2019-02-24)Simon Sapin2019-02-252-11/+11
| |/ / /
* | | | Auto merge of #22940 - asajeffrey:webvr-start-stop, r=Manishearthbors-servo2019-02-261-9/+18
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call start_present and stop_present on VRDisplay <!-- Please describe your changes on the following line: --> We never call `start_present` or `stop_present` on `VRDisplay`s. Not calling `start_present` isn't so bad, since displays can keep track of their own state, but not calling `stop_present` means the display never gets told to reclaim resources. --- <!-- 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 #22924 - [X] These changes do not require tests because it's all internal APIs <!-- 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/22940) <!-- Reviewable:end -->
| * | | Call start_present and stop_present on VRDisplayAlan Jeffrey2019-02-251-9/+18
|/ / /
* | | Auto merge of #22347 - stevesweetney:master, r=ferjmbors-servo2019-02-255-109/+44
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement HTMLMediaElement muted and defaultMuted attributes <!-- Please describe your changes on the following line: --> PR for issue #22291 --- <!-- 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 #22291 (github issue number if applicable). - [X] There are tests for these changes OR <!-- 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/22347) <!-- Reviewable:end -->
| * | Implement HTMLMediaElement muted and defaultMuted attributesSteve Sweetney2019-02-185-109/+44
| | |
* | | Auto merge of #22930 - emilio:gecko-sync, r=emiliobors-servo2019-02-2472-1174/+845
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Sync changes from mozilla-central. See individual commits for details. <!-- 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/22930) <!-- Reviewable:end -->
| * | | style: Appease tidy.Emilio Cobos Álvarez2019-02-231-1/+1
| | | |
| * | | Fix servo build.Emilio Cobos Álvarez2019-02-234-35/+23
| | | |
| * | | style: Remove unnecessary derive.Emilio Cobos Álvarez2019-02-231-1/+0
| | | |
| * | | style: Rustfmt recent changes.Emilio Cobos Álvarez2019-02-2315-37/+41
| | | |
| * | | style: Use Rust types from transform-origin / perspective-origin.Emilio Cobos Álvarez2019-02-234-86/+11
| | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D20382
| * | | style: Use Rust types for perspective and z-index.Emilio Cobos Álvarez2019-02-238-87/+17
| | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D20381
| * | | style: Convert NS_STYLE_FLEX_DIRECTION to an enum class in nsStyleConsts.hAsfiya2019-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Converted the #define variable NS_STYLE_FLEX_DIRECTION to an enum class in nsStyleConsts.h and made changes in other files that access it Differential Revision: https://phabricator.services.mozilla.com/D20291
| * | | style: Convert NS_STYLE_MASK_MODE_* to enum class.scharing2019-02-231-0/+1
| | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D20063
| * | | style: Improve #[derive(Parse)].Emilio Cobos Álvarez2019-02-2324-362/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I want to do this so that I can get rid of Either<>. The reasons for getting rid of either are multiple: * It doesn't generate as nice C++ code using cbindgen. * It isn't that nice to use either from Rust. * cbindgen has bugs with zero-sized types. I started using this for ColorOrAuto and a few others, for now. Differential Revision: https://phabricator.services.mozilla.com/D19844
| * | | style: Use Rust types for some misc properties.Emilio Cobos Álvarez2019-02-2316-184/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -moz-tab-size, border-image-outset and border-image-slice. This is not a particularly interesting patch, just removes some code. We can remove way more code when a few related properties are also ported. Differential Revision: https://phabricator.services.mozilla.com/D19825
| * | | style: Remove nsFont::featureValueLookup.Emilio Cobos Álvarez2019-02-232-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a global object, it doesn't have to be stored in nsFont. Pass it from the caller like the user font set and co. Depends on D20141 Differential Revision: https://phabricator.services.mozilla.com/D20142
| * | | style: Remove a couple trivial dependencies on nsPresContext.Emilio Cobos Álvarez2019-02-239-34/+32
| | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D20141
| * | | style: Include anon boxes in CSSPseudoElementType, to remove ↵Emilio Cobos Álvarez2019-02-236-94/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ComputedStyle::mPseudoTag. This is more consistent with what the Rust bits of the style system do, and removes a pointer from ComputedStyle which is always nice. This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those. Can't wait for XUL trees to die. Differential Revision: https://phabricator.services.mozilla.com/D19002
| * | | style: Implement scroll-snap-align parser and serializer.Hiroyuki Ikezoe2019-02-238-3/+97
| | | | | | | | | | | | | | | | | | | | | | | | https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align Differential Revision: https://phabricator.services.mozilla.com/D20205
| * | | style: Implement scroll-padding parser and serializer.Hiroyuki Ikezoe2019-02-235-2/+50
| | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D20103
| * | | style: Implement scroll-margin parser and serializer.Hiroyuki Ikezoe2019-02-233-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason why we use RelaxedAtomBool is that ScrollSnapUtils::GetSnapPointForDestination() is called both from the main and the compositor threads, and the function will have a branch depending on the pref value. Differential Revision: https://phabricator.services.mozilla.com/D20101
| * | | style: Add support for CSS prefers-color-scheme media feature.Jonathan Kingston2019-02-232-1/+28
| | | | | | | | | | | | | | | | | | | | Bug: 1494034 Reviewed-by: emilio
| * | | style: Don't share styles when an element has animations applied to it.Brian Birtles2019-02-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already avoid putting styles in the shared style cache for an element that has animations[1] but if we are doing the initial style of two siblings where the _second_ has animations applied, there is nothing to stop us from trying to share with the first (un-animated) element. This patch adds a check to prevent sharing in that case since sharing style between animated elements is unsound for the reasons described in [1]. A number of tests including: testing/web-platform/tests/web-animations/animation-model/animation-types/visibility.html will fail without this fix once we remove the style flush from KeyframeEffect::SetKeyframes later in this patch series. [1] https://searchfox.org/mozilla-central/rev/6e3cc153566f5f288ae768a2172385b8436d61dd/servo/components/style/sharing/mod.rs#597 Differential Revision: https://phabricator.services.mozilla.com/D18913
| * | | style: Use rust types for background-size.Emilio Cobos Álvarez2019-02-236-137/+27
| | | | | | | | | | | | | | | | | | | | | | | | Hopefully straight-forward. Differential Revision: https://phabricator.services.mozilla.com/D19625
| * | | style: Use Rust types for Position.Emilio Cobos Álvarez2019-02-234-58/+26
| | | | | | | | | | | | | | | | | | | | | | | | This one should be much easier to review / much more pleasant to see :-) Differential Revision: https://phabricator.services.mozilla.com/D19563
| * | | style: Preserve calc() rounding behavior.Emilio Cobos Álvarez2019-02-231-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See the comment. I don't really this is ideal, I filed bug 1528114 to investigate changing that. Differential Revision: https://phabricator.services.mozilla.com/D19584
| * | | style: Use Rust sizes for flex-basis, width, height, and their min/max ↵Emilio Cobos Álvarez2019-02-239-105/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | properties. Really sorry for the size of the patch :( Only intentional behavior change is in the uses of HasLengthAndPercentage(), where it's easier to do the right thing. The checks that used to check for (IsCalcUnit() && CalcHasPercentage()) are wrong since bug 957915. Differential Revision: https://phabricator.services.mozilla.com/D19553
* | | | Auto merge of #22929 - servo-wpt-sync:wpt_update_23-02-2019, r=jdmbors-servo2019-02-242211-6798/+4485
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync WPT with upstream (23-02-2019) Automated downstream sync of changes from upstream as of 23-02-2019. [no-wpt-sync] <!-- 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/22929) <!-- Reviewable:end -->