Extract canvas mask modes, preview draw pass, and node style shell

This commit is contained in:
2026-06-16 21:50:12 +02:00
parent c25af6f493
commit a2a67960c8
12 changed files with 916 additions and 557 deletions

View File

@@ -152,6 +152,10 @@ Current slice:
in `src/legacy_canvas_mode_pen_line.cpp` instead of staying inline in
`src/canvas_modes.cpp`, which materially thins another retained pen/line
interaction pocket from the broader canvas/render hotspot family.
- The `CanvasModeMaskFree` and `CanvasModeMaskLine` interaction families now
also live in `src/legacy_canvas_mode_mask.cpp` instead of staying inline in
`src/canvas_modes.cpp`, which materially thins another retained mask-tool
interaction pocket from the broader canvas/render hotspot family.
Write scope:
- `src/canvas.cpp`
@@ -326,6 +330,11 @@ Current slice:
inline in `src/node_stroke_preview.cpp`, which materially thins the preview
node around its runtime-facing shell even though live pass execution still
remains.
- The remaining live render/pass orchestration in
`NodeStrokePreview::draw_stroke_immediate()` now also lives in
`src/legacy_node_stroke_preview_draw_services.*` instead of staying inline in
`src/node_stroke_preview.cpp`, which trims another coherent preview
draw-pass pocket while preserving the current runtime-facing shell.
- `NodeCanvas::init()` plus the remaining `NodeCanvas::draw()` outer shell now
also live in `src/legacy_node_canvas_draw_services.*` instead of staying
inline in `src/node_canvas.cpp`, which materially reduces the live node to a
@@ -778,6 +787,10 @@ Current slice:
`src/legacy_ui_node_tree_services.cpp` instead of staying inline in
`src/node.cpp`, which materially thins the remaining generic scene-graph
lifecycle/tree shell without changing the public surface.
- The generic Yoga style/visibility pocket from `Node::SetWidth(...)` through
`Node::GetRTL()` now also lives in `src/legacy_ui_node_style.*` instead of
staying inline in `src/node.cpp`, which trims another coherent generic node
shell pocket without changing the public surface.
Write scope:
- `src/node.cpp`