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)) => {
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)
}