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
This commit is contained in:
Patrick Walton 2016-01-06 10:34:30 -08:00
parent c9242309cb
commit fdb791bdd5

View file

@ -335,7 +335,7 @@ impl FragmentDisplayListBuilding for Fragment {
Some(computed::Image::LinearGradient(ref gradient)) => { Some(computed::Image::LinearGradient(ref gradient)) => {
self.build_display_list_for_background_linear_gradient(display_list, self.build_display_list_for_background_linear_gradient(display_list,
level, level,
absolute_bounds, &bounds,
&clip, &clip,
gradient, gradient,
style) style)
@ -345,7 +345,7 @@ impl FragmentDisplayListBuilding for Fragment {
display_list, display_list,
layout_context, layout_context,
level, level,
absolute_bounds, &bounds,
&clip, &clip,
image_url) image_url)
} }