aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/display_list/mod.rs
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2017-12-27 22:15:58 +0100
committerPyfisch <pyfisch@gmail.com>2017-12-28 20:14:31 +0100
commit3b3d4a985315e91a339fb8e448f23b16b3be1ddc (patch)
tree9139532af613e01f6a5e316e10bcd8285ae4f287 /components/gfx/display_list/mod.rs
parentd96fb89c3118ff12142397f25d1546235515ec14 (diff)
downloadservo-3b3d4a985315e91a339fb8e448f23b16b3be1ddc.tar.gz
servo-3b3d4a985315e91a339fb8e448f23b16b3be1ddc.zip
Unify background placement code
Merges the implementations for background-image placement from gradients and images. Add missing parts and fix bugs. Now supported are the CSS properties: * background-attachment (except for local value) * background-clip * background-origin * background-position-x/y * background-repeat * background-size It should be noted that backgrounds are not clipped to rounded border corners.
Diffstat (limited to 'components/gfx/display_list/mod.rs')
-rw-r--r--components/gfx/display_list/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs
index 98b78ef5c5d..290b4aed059 100644
--- a/components/gfx/display_list/mod.rs
+++ b/components/gfx/display_list/mod.rs
@@ -729,6 +729,7 @@ pub struct GradientDisplayItem {
///
/// Without tiles, the tile will be the same size as the background.
pub tile: Size2D<Au>,
+ pub tile_spacing: Size2D<Au>,
}
/// Paints a radial gradient.
@@ -763,6 +764,7 @@ pub struct RadialGradientDisplayItem {
///
/// Without tiles, the tile will be the same size as the background.
pub tile: Size2D<Au>,
+ pub tile_spacing: Size2D<Au>,
}
/// A normal border, supporting CSS border styles.