refactor: split three oversized files (display_list, paint, tv_controller) - #168
Conversation
…ller) paint/display_list.rs (4022 lines, one file) → display_list/ submodule: - mod.rs (667): DisplayItem enum + DisplayList struct + public dispatchers - mask.rs (869): MaskParams + apply_mask + gradient/url rasterizers - optimize.rs (787): compact + optimize + merge/eliminate passes - replay.rs (1753): replay_inner + replay_dirty_inner + helpers paint/mod.rs (2584 lines) → 1022: - Tests extracted to sibling tests.rs (1265 lines). tv_controller/mod.rs (1946 lines) → 56: - Tests extracted to sibling tests.rs (1887 lines). The decomposition into per-concern submodules (streaming_buffer, cdn_failover, seek, download, etc.) was already done; mod.rs was dominated by tests. Pure code motion, no behavior change. All 1235 workspace tests pass; clippy clean under -D warnings; fmt clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Claude AI Architecture & Quality ReviewIssues
Previous IssuesNone on record for this branch. Suggestions
Notes
Generated by Claude AI (sonnet). Supplementary to human reviews. |
Claude AI Incremental Security & Correctness ReviewThis is an incremental review focusing on changes since the last review. Issues (if any)(none — no new issues found in TIER 1 files) Previous Issues (for incremental reviews)
Suggestions (if any)(none beyond the unresolved items above) Notes
Generated by Claude AI (sonnet). Supplementary to human reviews. |
Openrouter AI General ReviewIssues (if any)
Previous Issues (for incremental reviews)(none) Suggestions (if any)
Notes
Generated by Openrouter AI (qwen/qwen3.6-plus). Supplementary to human reviews. |
Automated fix by Claude in response to AI review feedback. Iteration: 1/5 Co-Authored-By: AI Review Agent <noreply@anthropic.com>
Review Response Agent (Iteration 1)Status: Changes committed, pushing... Commit: Fixed Issues
Ignored Issues
Deferred to Human
Notes
Automated summary of agent fixes. |
Claude AI Incremental Security & Correctness ReviewThis is an incremental review focusing on changes since the last review. Issues (if any)(none) Previous Issues (for incremental reviews)
Suggestions (if any)(none) Notes
Generated by Claude AI (sonnet). Supplementary to human reviews. |
Claude AI Incremental Architecture & Quality ReviewThis is an incremental review focusing on changes since the last review. IssuesNone. Previous Issues
SuggestionsNone. Notes
Generated by Claude AI (sonnet). Supplementary to human reviews. |
Openrouter AI Incremental General ReviewThis is an incremental review focusing on changes since the last review. Issues (if any)(none) Previous Issues (for incremental reviews)
Suggestions (if any)(none) Notes
Generated by Openrouter AI (qwen/qwen3.6-plus). Supplementary to human reviews. |
Review Response Agent (Iteration 2)Status: Hallucination detected — no commit
Stream log: Fixed Issues
Ignored Issues
Deferred to Human
Notes
No file modifications were performed; this iteration produced no commit. |



Summary
Pure code-motion refactor to bring three large files under the 2500-line target. No behavior change.
paint/display_list.rs(4022 lines) ->display_list/directorymod.rs(667):DisplayItemenum +DisplayListstruct + publicreplay/replay_dirtydispatchersmask.rs(869):MaskParams+apply_mask+ linear/radial/url mask rasterizersoptimize.rs(787):compact()+optimize()+merge_vertical_strips+eliminate_occludedreplay.rs(1753):replay_inner+replay_dirty_inner+ActiveLayer+ helpers (clip intersection, sticky offset, border-edge styling)#[cfg(test)] mod tests)paint/mod.rs(2584 -> 1022): extracted the inlinemod testsblock to a siblingtests.rs(1265 lines). The integration tests can still reach private helpers viasuper::*.tv_controller/mod.rs(1946 -> 56): same treatment -- extracted the inlinemod testsblock totests.rs(1887 lines). The per-concern submodules (streaming_buffer,cdn_failover,seek,download,player,tune,catalog) were already split out in earlier PRs; mod.rs was dominated by tests for those submodules.Test plan
cargo build --workspacecargo clippy --workspace -- -D warnings(matches CI)cargo fmt --all -- --checkcargo test --workspace-- 1235 tests pass, 0 failGenerated with Claude Code