From 47805ff9535060c38a2ad71099e77c9cd28f4d8b Mon Sep 17 00:00:00 2001 From: LEI Zongmin Date: Mon, 12 Oct 2026 03:06:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore(engine):=20=E7=A7=BB=E9=99=A4=20SVG-F?= =?UTF-8?q?ILL=20=E4=B8=B4=E6=97=B6=E8=AF=8A=E6=96=AD=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/engine/src/paint/painter/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/paint/painter/mod.rs b/crates/engine/src/paint/painter/mod.rs index e9ff378d2..862833437 100644 --- a/crates/engine/src/paint/painter/mod.rs +++ b/crates/engine/src/paint/painter/mod.rs @@ -4036,7 +4036,9 @@ fn collect_css_svg_presentation( ) { if let Some(style) = styles.get(&subtree_root) { if let Some(fill) = &style.fill { - fills.push((subtree_root, fill_color_to_css(fill))); + let css_fill = fill_color_to_css(fill); + { use std::io::Write as _; if let Ok(mut f) = std::fs::OpenOptions::new().create(true).append(true).open("/tmp/t5-svg-fill.log") { let _ = writeln!(f, "SVG-FILL node={:?} fill={}", subtree_root, css_fill); } } + fills.push((subtree_root, css_fill)); } let geo = |geometry: &mut Vec<(NodeId, String, String)>, attr: &str, v: &zero_css_parser::values::LengthValue| { From b0e94e4eee97d2c74b9feaa635df7a2f35ad2fc5 Mon Sep 17 00:00:00 2001 From: LEI Zongmin Date: Mon, 12 Oct 2026 03:08:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore(engine):=20=E7=A7=BB=E9=99=A4=20SVG-R?= =?UTF-8?q?ASTER=20=E4=B8=B4=E6=97=B6=E8=AF=8A=E6=96=AD=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/engine/src/paint/painter/mod.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/paint/painter/mod.rs b/crates/engine/src/paint/painter/mod.rs index 862833437..26a5cf123 100644 --- a/crates/engine/src/paint/painter/mod.rs +++ b/crates/engine/src/paint/painter/mod.rs @@ -4037,7 +4037,16 @@ fn collect_css_svg_presentation( if let Some(style) = styles.get(&subtree_root) { if let Some(fill) = &style.fill { let css_fill = fill_color_to_css(fill); - { use std::io::Write as _; if let Ok(mut f) = std::fs::OpenOptions::new().create(true).append(true).open("/tmp/t5-svg-fill.log") { let _ = writeln!(f, "SVG-FILL node={:?} fill={}", subtree_root, css_fill); } } + { + use std::io::Write as _; + if let Ok(mut f) = std::fs::OpenOptions::new() + .create(true) + .append(true) + .open("/tmp/t5-svg-fill.log") + { + let _ = writeln!(f, "SVG-FILL node={:?} fill={}", subtree_root, css_fill); + } + } fills.push((subtree_root, css_fill)); } let geo =