Repository navigation
Commit dc2099e
committed
Make FragmentPainter the default paint path for WinForms/WPF (F2)
HtmlContainerInt.PerformPaint(RGraphics g) - the overload every
WinForms/WPF control (HtmlPanel, HtmlLabel, HtmlToolTip, HtmlControl,
HtmlRender's image/metafile renderers) ultimately calls - now paints
through FragmentPainter whenever the fragment tree has exactly one
fragmentainer, which is every case that reaches this overload today:
WinForms/WPF's continuous single-surface rendering has no real page
grid, so FragmentEmitter.Finish always gives it one fragmentainer
spanning the whole document (its no-real-page-grid path, built back
in D1). A caller with a real multi-page grid that somehow reaches this
overload instead of the fragmentainer-aware one PdfGenerator always
uses falls back to the old CssBox.Paint walk, unchanged - not a case
that exists in this codebase today, but a safe fallback rather than
silently truncating to one page's content if it ever did.
No new verification needed beyond what already exists: this is the
same swap Stage E1 already proved pixel-identical via a temporary
redirect (reverted after that stage's commit) across the entire
regression suite, now made permanent. The full existing suite (35
image-diff/fragment tests + 15 PDF/PdfSharp tests) stays green with
zero baseline changes, run directly against this as the real default
path for the first time - not a temporary redirect.
FragmentPainter is now the only paint implementation reached by any
of the three platform projects (WinForms/WPF via this overload,
PdfSharp via the fragmentainer-aware one from F1) for ordinary
content. CssBox.Paint/PaintImp remain as the one documented fallback
and are not yet retired - that's F3, once this has had time to prove
itself.1 parent 3b840f0 commit dc2099e
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
814 | 828 | | |
815 | 829 | | |
816 | 830 | | |
| |||
820 | 834 | | |
821 | 835 | | |
822 | 836 | | |
823 | | - | |
824 | | - | |
| 837 | + | |
825 | 838 | | |
826 | 839 | | |
827 | 840 | | |
| |||
0 commit comments