Skip to content

Commit b6f40e5

Browse files
committed
Upgrade Stylo to v0.4
Signed-off-by: Nico Burns <[email protected]>
1 parent 1893300 commit b6f40e5

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

Cargo.lock

Lines changed: 29 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ license = "MIT OR Apache-2.0"
2626

2727
[workspace.dependencies]
2828
# Servo dependencies
29-
style = { version = "0.3", package = "stylo" }
30-
style_traits = { version = "0.3", package = "stylo_traits" }
31-
style_config = { version = "0.3", package = "stylo_config" }
32-
style_dom = { version = "0.3", package = "stylo_dom" }
33-
selectors = { version = "0.28", package = "selectors" }
29+
style = { version = "0.4", package = "stylo" }
30+
style_traits = { version = "0.4", package = "stylo_traits" }
31+
style_config = { version = "0.4", package = "stylo_config" }
32+
style_dom = { version = "0.4", package = "stylo_dom" }
33+
selectors = { version = "0.29", package = "selectors" }
3434

3535
markup5ever = "0.16.1" # needs to match stylo web_atoms version
3636
html5ever = "0.31" # needs to match stylo web_atoms version

packages/blitz-paint/src/render/background.rs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ use style::{
2121
},
2222
};
2323

24+
#[cfg(feature = "tracing")]
25+
use tracing::warn;
26+
2427
impl ElementCx<'_> {
2528
pub(super) fn draw_background(&self, scene: &mut impl PaintScene) {
2629
use GenericImage::*;
@@ -68,11 +71,22 @@ impl ElementCx<'_> {
6871
#[cfg(feature = "svg")]
6972
self.draw_svg_bg_image(scene, idx);
7073
}
74+
LightDark(_) => {
75+
#[cfg(feature = "tracing")]
76+
warn!("Implement background drawing for ImageLightDark")
77+
}
7178
PaintWorklet(_) => {
72-
todo!("Implement background drawing for Image::PaintWorklet")
79+
#[cfg(feature = "tracing")]
80+
warn!("Implement background drawing for Image::PaintWorklet")
81+
}
82+
CrossFade(_) => {
83+
#[cfg(feature = "tracing")]
84+
warn!("Implement background drawing for Image::CrossFade")
85+
}
86+
ImageSet(_) => {
87+
#[cfg(feature = "tracing")]
88+
warn!("Implement background drawing for Image::ImageSet")
7389
}
74-
CrossFade(_) => todo!("Implement background drawing for Image::CrossFade"),
75-
ImageSet(_) => todo!("Implement background drawing for Image::ImageSet"),
7690
}
7791
},
7892
);

0 commit comments

Comments
 (0)