aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list_builder.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-01-06 10:34:30 -0800
committerPatrick Walton <pcwalton@mimiga.net>2016-01-06 10:39:51 -0800
commitfdb791bdd5f40d6d25c9350b39ac400b72747826 (patch)
tree9ace9961a70ebaa27a3a5e845c490da56c324619 /components/layout/display_list_builder.rs
parentc9242309cbe38168b699dc6de13068009b5d4a6d (diff)
downloadservo-fdb791bdd5f40d6d25c9350b39ac400b72747826.tar.gz
servo-fdb791bdd5f40d6d25c9350b39ac400b72747826.zip
layout: Take the value of `background-clip` into account when
determining the painting area for background images and gradients. See: https://drafts.csswg.org/css-backgrounds-3/#the-background-clip
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r--components/layout/display_list_builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs
index 7cc1d3f6311..99f26266189 100644
--- a/components/layout/display_list_builder.rs
+++ b/components/layout/display_list_builder.rs
@@ -335,7 +335,7 @@ impl FragmentDisplayListBuilding for Fragment {
Some(computed::Image::LinearGradient(ref gradient)) => {
self.build_display_list_for_background_linear_gradient(display_list,
level,
- absolute_bounds,
+ &bounds,
&clip,
gradient,
style)
@@ -345,7 +345,7 @@ impl FragmentDisplayListBuilding for Fragment {
display_list,
layout_context,
level,
- absolute_bounds,
+ &bounds,
&clip,
image_url)
}