Skip to content

Commit 4e41839

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

File tree

3 files changed

+49
-29
lines changed

3 files changed

+49
-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: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use style::{
2020
specified::background::BackgroundRepeatKeyword,
2121
},
2222
};
23+
use tracing::warn;
2324

2425
impl ElementCx<'_> {
2526
pub(super) fn draw_background(&self, scene: &mut impl PaintScene) {
@@ -68,11 +69,22 @@ impl ElementCx<'_> {
6869
#[cfg(feature = "svg")]
6970
self.draw_svg_bg_image(scene, idx);
7071
}
72+
LightDark(_) => {
73+
#[cfg(feature = "tracing")]
74+
warn!("Implement background drawing for ImageLightDark")
75+
}
7176
PaintWorklet(_) => {
72-
todo!("Implement background drawing for Image::PaintWorklet")
77+
#[cfg(feature = "tracing")]
78+
warn!("Implement background drawing for Image::PaintWorklet")
79+
}
80+
CrossFade(_) => {
81+
#[cfg(feature = "tracing")]
82+
warn!("Implement background drawing for Image::CrossFade")
83+
}
84+
ImageSet(_) => {
85+
#[cfg(feature = "tracing")]
86+
warn!("Implement background drawing for Image::ImageSet")
7387
}
74-
CrossFade(_) => todo!("Implement background drawing for Image::CrossFade"),
75-
ImageSet(_) => todo!("Implement background drawing for Image::ImageSet"),
7688
}
7789
},
7890
);

0 commit comments

Comments
 (0)