| Issue | Symptom in a repeated header | CL | State |
|---|---|---|---|
| 400996807 | <button>, <select>, <input>, <textarea> paint on the first page only | 8650938 | Fixed |
| 350858753 | <g transform> inside <svg> paints on one page only | 8654238 | Fixed |
| 434108536 | painting and hit-testing fall back to LayoutObject traversal | 8654438 | Fixed |
RepeatableFormControls · RepeatableSvgContent
· ReplacedContentFragmentTraversal. Every
Before image below is the same binary with that flag off.
Click any image for full size.CanPaintMultipleFragments() refused every form control.LayoutTextControl*::NodeAtPoint() overrides are gone, and both
exceptions with them.The inner editor is a scroll container, and
CanPaintMultipleFragments() refuses repeated scroll containers
outside printing. Untouched by this stack; the box repeats, the value does
not.
PrePaintTreeWalk skipped
them, so every SVG object had one FragmentData and the transform
node stayed anchored to one page. The others painted outside their page
clip.PaintInfo.Printed with Page.printToPDF, no patches. Page one has all
three rects, the repeated header on page two keeps only the untransformed
one.
Walking the SVG subtree per fragment alone is not a fix: there is still
one FragmentData to write into, so the last fragment wins and
the bug flips to page one.
CanTraversePhysicalFragments().ReplacedPainter and EmbeddedContentPainter know
nothing about fragments; deleting the exception alone fails 190 paint unit
tests, because they then paint nothing.BoxFragmentPainter hands them the fragment to paint or hit
test. What is still excluded generates no fragments at all: table columns and
non-block SVG.CanPaintMultipleFragments() allows repeated images and SVG
roots but not other replaced content, so an <iframe> in a
repeated header is unchanged by this stack (diff 0). Lifting that restriction
was tried: the embedded view then painted on no page at all, so it is left to
the owners.
BoxFragmentPainterTest.{Button,TextControl,ReplacedContent}InRepeatedTableHeader
plus a kill-switch variant each.PaintPropertyTreeBuilderTest.RepeatedSvgTransformWhenPrinting
plus kill-switch variant.LayoutTextControlTest.HitTest{SearchInput,TextArea,RepeatedInputInTableHeader}
for the moved inner-editor redirection.css-break/table/repeated-section/form-control-in-repeated-header.tentative.html.blink_unittests on CL 1, targeted paint/SVG/layout
suites on CL 2 and 3, web tests over svg, printing,
fast/multicol, css-break, fast/forms,
editing, paint. Two reds
(grid-lanes-fragmentation-002,
svg/W3C-SVG-1.1/extend-namespace-01-f.svg) reproduce on a
pristine build. Rest on the bots.node capture.mjs after # screen, 3 column fragments
node capture.mjs before # same binary, kill switch off
# printed pages, via the web test runner
cp print-cases/*.html third_party/blink/web_tests/printing/scratch/
run_web_tests.py -t Default --reset-results printing/scratch
run_web_tests.py -t Default --reset-results \
--additional-driver-flag=--disable-blink-features=RepeatableFormControls \
printing/scratch