File tree Expand file tree Collapse file tree
packages/blitz-paint/src/render Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3535markup5ever = " 0.16.1" # needs to match stylo web_atoms version
3636html5ever = " 0.31" # needs to match stylo web_atoms version
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ use style::{
2020 specified:: background:: BackgroundRepeatKeyword ,
2121 } ,
2222} ;
23+ use tracing:: warn;
2324
2425impl 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 ) ;
You can’t perform that action at this time.
0 commit comments