mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #17788 - emilio:clean-cascade, r=heycam
style: Cleanup the cascade a good bit. Was about the time. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17788) <!-- Reviewable:end -->
This commit is contained in:
commit
f594ae58a6
20 changed files with 286 additions and 248 deletions
|
@ -1189,7 +1189,7 @@ fn static_assert() {
|
|||
}
|
||||
|
||||
if let Either::Second(image) = image {
|
||||
self.gecko.mBorderImageSource.set(image, &mut false)
|
||||
self.gecko.mBorderImageSource.set(image);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3423,7 +3423,7 @@ fn static_assert() {
|
|||
}
|
||||
|
||||
#[allow(unused_variables)]
|
||||
pub fn set_${shorthand}_image<I>(&mut self, images: I, cacheable: &mut bool)
|
||||
pub fn set_${shorthand}_image<I>(&mut self, images: I)
|
||||
where I: IntoIterator<Item = longhands::${shorthand}_image::computed_value::single_value::T>,
|
||||
I::IntoIter: ExactSizeIterator
|
||||
{
|
||||
|
@ -3446,7 +3446,7 @@ fn static_assert() {
|
|||
for (image, geckoimage) in images.zip(self.gecko.${image_layers_field}
|
||||
.mLayers.iter_mut()) {
|
||||
if let Either::Second(image) = image {
|
||||
geckoimage.mImage.set(image, cacheable)
|
||||
geckoimage.mImage.set(image)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue