gecko-dev/servo/components/gfx
Pyfisch b2df8f0384 servo: Merge #19554 - layout: support tiled gradients (from pyfisch:tiled-gradients1); r=mbrubeck
Use background-size, background-position properties to render
CSS gradients.

Some cleanup in display_list_builder.rs related to gradient
calculations.

Adds two wpt tests for tiled gradients.

Note: For now even gradients with background-repeat: no-repeat
are repeated. Sometimes the gradient is not repeated everywhere.

Resolves partially #19482. (See the mentioned website for example gradients with these features)
See also: #16657 and #10412

Some glitches can be seen in the attached file. I am unsure what the exact intended semantics of [`push_gradient`](https://doc.servo.org/webrender_api/struct.DisplayListBuilder.html#method.push_gradient) are and want to ask the webrender team before building in "workarounds" for the missing gradients.
![half-rhombes](https://user-images.githubusercontent.com/2781017/33958051-b16f964a-e043-11e7-8218-b28388e2cf8d.png)

Source-Repo: https://github.com/servo/servo
Source-Revision: 6ee8e6a1684d6dbc65933da11ce1a2c8ba660442

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 96cc2524eaba5602eba84d6aa314e5ddaa9a9dc1
2017-12-14 13:20:34 -06:00
..
display_list servo: Merge #19554 - layout: support tiled gradients (from pyfisch:tiled-gradients1); r=mbrubeck 2017-12-14 13:20:34 -06:00
platform servo: Merge #19538 - Use ? in Option more often (from emilio:questions-questions-questions); r=mbrubeck 2017-12-09 13:58:25 -06:00
text servo: Merge #19538 - Use ? in Option more often (from emilio:questions-questions-questions); r=mbrubeck 2017-12-09 13:58:25 -06:00
Cargo.toml servo: Merge #19510 - Update some dependencies, remove heapsize from the build (from servo:heapsize); r=nox 2017-12-08 07:49:54 -06:00
font_cache_thread.rs servo: Merge #19366 - style: Move font-family outside of mako (from CYBAI:font-family-out-of-mako); r=emilio 2017-11-25 13:06:31 -06:00
font_context.rs servo: Merge #19500 - style: Make all keywords CamelCase for consistency (from emilio:camel-case-all-the-way); r=nox 2017-12-05 19:35:25 -06:00
font_template.rs servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
font.rs servo: Merge #19500 - style: Make all keywords CamelCase for consistency (from emilio:camel-case-all-the-way); r=nox 2017-12-05 19:35:25 -06:00
lib.rs servo: Merge #18944 - Stop relying on linking details of std’s default allocator (from servo:jemallocator2); r=nox 2017-10-19 09:15:17 -05:00