aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Return input as is when there is no cropping to be doneAnthony Ramine2018-10-091-0/+3
| | | | | | |
| * | | | | | Remove some condition in CanvasData::write_imageAnthony Ramine2018-10-091-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The surface creation should never fail.
| * | | | | | Share some code between 2D canvas and WebGLAnthony Ramine2018-10-096-84/+58
| | | | | | |
| * | | | | | Add a couple of bug linksAnthony Ramine2018-10-081-0/+2
| | | | | | |
| * | | | | | Avoid ctx.getImageData in canvas.toDataURLAnthony Ramine2018-10-082-22/+29
| | | | | | |
| * | | | | | Abstract some stuff common to ctx.getImageData and ctx.putImageDataAnthony Ramine2018-10-084-147/+97
| | | | | | |
| * | | | | | Handle some transparent black cases in ctx.getImageDataAnthony Ramine2018-10-076-49/+72
| | | | | | |
| * | | | | | Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-0610-81/+54
| | | | | | |
| * | | | | | Always make sure we get a surface in CanvasData::put_image_dataAnthony Ramine2018-10-061-11/+11
| | | | | | |
| * | | | | | Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-066-41/+53
| | | | | | |
| * | | | | | Introduce ImageData::get_rectAnthony Ramine2018-10-065-55/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use that to send only the pixels that will be actually drawn to the canvas thread in CanvasRenderingContext2d::PutImageData. We also make the canvas thread byte swap and premultiply colours in-place.
| * | | | | | Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-0618-96/+85
| | | | | | |
| * | | | | | Rename byte_swap_and_premultiply to byte_swap_colors_inplaceAnthony Ramine2018-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The function did not actually premultiply.
* | | | | | | Auto merge of #21897 - emilio:gecko-sync, r=emiliobors-servo2018-10-0922-482/+398
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style: Sync changes from mozilla-central. See each individual commit 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/21897) <!-- Reviewable:end -->
| * | | | | | style: fix tidy issues and update test expectations.Emilio Cobos Álvarez2018-10-097-56/+3
| | | | | | |
| * | | | | | style: Remove some more leftover code.Emilio Cobos Álvarez2018-10-092-54/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://phabricator.services.mozilla.com/D7755
| * | | | | | style: Remove nsCSSValue usage from font code.Emilio Cobos Álvarez2018-10-097-219/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Really sorry for the size of the patch. Differential Revision: https://phabricator.services.mozilla.com/D7753
| * | | | | | style: Serialize a bunch of image properties with Servo.Emilio Cobos Álvarez2018-10-094-19/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had to fix the conversion for BackgroundSize too, hopefully we can simplify all this using cbindgen in the future instead of CalcValue. Differential Revision: https://phabricator.services.mozilla.com/D7580
| * | | | | | style: Make static atom pointers `constexpr`.Nicholas Nethercote2018-10-092-45/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves one word per static atom, per process. The `nsGkAtoms` change is only a small part of this commit. In regen_atoms.py: - There is now only one link name per platform: nsGkAtoms::sAtoms[]. - But there is a new constant per atom, giving the index into nsGkAtoms::sAtoms[]. - And the `atom!` macro for each atom indexes into nsGkAtoms::sAtoms[] using the index constant. - A couple of `*mut` pointers are now `*const`. Elsewhere, the `(nsStaticAtom*)` casts within the `AppendElement()` calls are necessary to avoid link errors, presumably due to some template instantiation wrinkle. Bug: 1449787 Reviewed-by: froydnj,emilio
| * | | | | | style: Tweak regen_atoms.py.Nicholas Nethercote2018-10-091-34/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, give all the string templates the ''' form, and give them all `_TEMPLATE` suffixes. This requires slightly changing the newline handling. Bug: 1449787 Reviewed-by: emilio
| * | | | | | style: Implement multi-position gradient color-stops syntax.Ryan Hunt2018-10-091-9/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds the multi-position gradient color-stops syntax. GradientItem::parse_comma_separated is extended to attempt to parse a LengthOrPercent after each color stop. If it succeeds, it appends an additional color stop with a duplicate color and the specified position. This change is only to the parsing, serialization is left unchanged as per [1]. [1] https://github.com/w3c/csswg-drafts/issues/2714 Differential Revision: https://phabricator.services.mozilla.com/D7380
| * | | | | | style: Serialize -moz-image-region and clip with Servo.Emilio Cobos Álvarez2018-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the serialization of -moz-image-region to be consistent with that of clip(), but it's an internal property and the specified value is already serialized by Servo so I think it's the right thing to do. There are also no internal callers of the getter. Differential Revision: https://phabricator.services.mozilla.com/D7069
| * | | | | | style: Rename pref "layout.css.scrollbar-colors.enabled" to ↵Xidorn Quan2018-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "layout.css.scrollbar-color.enabled". Differential Revision: https://phabricator.services.mozilla.com/D7030
| * | | | | | style: [CSD] Enable round corners by default by ↵Martin Stransky2018-10-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -moz-gtk-csd-transparent-background media query. Replace mozilla.widget.use-argb-visuals pref by -moz-gtk-csd-transparent-background media query at browser.css to draw transparent background. The media query is set by toolkit code and enabled when compatible window manager is detected. Differential Revision: https://phabricator.services.mozilla.com/D6658
| * | | | | | style: Don't apply containing shadow-host rules to NAC.Emilio Cobos Álvarez2018-10-091-48/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression from bug 1487856. Differential Revision: https://phabricator.services.mozilla.com/D6700
| * | | | | | style: Remove an outdated comment.Emilio Cobos Álvarez2018-10-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was fixed, css/css-scoping/shadow-cascade-order-001.html tests it.
| * | | | | | style: Avoid walking the rule tree three times from apply_declarations.Emilio Cobos Álvarez2018-10-091-3/+6
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just once is slow enough. Differential Revision: https://phabricator.services.mozilla.com/D6574
* | | | | | Auto merge of #21543 - ceyusa:wip-player, r=<try>bors-servo2018-10-0929-169/+504
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add <audio> and <video> player backends These patches enables audio and video playing inside Servo. It is bit hackish way to enable it, thus the purpose of this pull request is for an early request for comments. It is tested with the current servo-media GStreamer backend in Linux. ~~The produced layout is not correct, since the elements after the video seems to be stacked behind, and the same with the scrolling bars.~~ ~~There is no JavaScript interface yet~~, neither controls. --- <!-- 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 #6711 <!-- 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/21543) <!-- Reviewable:end -->
| * | | | | | Disable event_timeupdate_noautoplay test on macFernando Jiménez Moreno2018-10-091-0/+2
| | | | | | |
| * | | | | | Update tests expectationsFernando Jiménez Moreno2018-10-082-33/+9
| | | | | | |
| * | | | | | Make sure we do not skip the HaveMetadata state. Fixes a bunch of testsFernando Jiménez Moreno2018-10-085-0/+21
| | | | | | |
| * | | | | | Handle Player errorsFernando Jiménez Moreno2018-10-083-20/+33
| | | | | | |
| * | | | | | Update servo-media: handle decoder errors and use safer/nicer player APIFernando Jiménez Moreno2018-10-083-11/+10
| | | | | | |
| * | | | | | Move player setup to common path, deal with setup error and clean debug msgsFernando Jiménez Moreno2018-10-081-12/+10
| | | | | | |
| * | | | | | Fix Travis complains about lock fileFernando Jiménez Moreno2018-10-081-2/+2
| | | | | | |
| * | | | | | Network EOF does't imply media processing EOSVíctor Manuel Jáquez Leal2018-10-081-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since media processing is highly asynchronous, there is no need to match one event with the other. Then error handling is done when the player emits the EOS event. The have_metadata attribute is not required anymore.
| * | | | | | Fix HAVE_METADATA and HAVE_CURRENT_DATA state transitionsFernando Jiménez Moreno2018-10-082-37/+47
| | | | | | |
| * | | | | | Do not set metadata until we have enough dataFernando Jiménez Moreno2018-10-081-1/+1
| | | | | | |
| * | | | | | Set input sizeFernando Jiménez Moreno2018-10-081-1/+9
| | | | | | |
| * | | | | | Rustfmt and make tidy happyFernando Jiménez Moreno2018-10-085-40/+44
| | | | | | |
| * | | | | | Media element duration paramFernando Jiménez Moreno2018-10-084-10/+30
| | | | | | |
| * | | | | | videoWidth and videoHeight paramsFernando Jiménez Moreno2018-10-084-6/+69
| | | | | | |
| * | | | | | Cancel fetch in some media data processing stepsFernando Jiménez Moreno2018-10-081-3/+6
| | | | | | |
| * | | | | | Player pauseFernando Jiménez Moreno2018-10-083-16/+13
| | | | | | |
| * | | | | | Add show poster flagFernando Jiménez Moreno2018-10-081-5/+21
| | | | | | |
| * | | | | | Abort in-progress fetching process during load algorithmFernando Jimenez Moreno2018-10-081-5/+10
| | | | | | |
| * | | | | | Clarify some FIXMEs and bail out if we fail pushing data to playerFernando Jiménez Moreno2018-10-081-5/+14
| | | | | | |
| * | | | | | Revert import style formatFernando Jiménez Moreno2018-10-083-14/+8
| | | | | | |
| * | | | | | Move unsafe_no_jsmanaged_fields to traceFernando Jiménez Moreno2018-10-083-17/+9
| | | | | | |
| * | | | | | Do not share entire FrameRenderer with layout, only current frameFernando Jiménez Moreno2018-10-088-149/+102
| | | | | | |