From c01c4b41e2e61eaa04470b56c2ff3cc0e6ab1fb0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Aug 2023 15:52:40 +0200 Subject: [PATCH] LibWeb: Add ViewportPaintable to represent viewports in the paint tree This patch just adds the new root paintable and updates the tests expectations. The next patch will move painting logic from the layout viewport to the paint viewport. --- .../abspos-box-with-replaced-element.txt | 2 +- ...abspos-flex-container-with-auto-height.txt | 2 +- ...bspos-image-with-min-height-constraint.txt | 2 +- ...os-not-replaced-multiple-auto-variants.txt | 2 +- .../abspos-with-percentage-insets.txt | 2 +- Tests/LibWeb/Layout/expected/acid1.txt | 2 +- ...continue-to-inherit-style-after-change.txt | 2 +- .../expected/aspect-ratio-auto-and-ratio.txt | 2 +- .../Layout/expected/aspect-ratio-auto.txt | 2 +- .../Layout/expected/aspect-ratio-ratio.txt | 2 +- ...ed-abspos-element-must-not-be-negative.txt | 2 +- ...ed-abspos-element-must-not-be-negative.txt | 2 +- Tests/LibWeb/Layout/expected/blank.txt | 2 +- ...bspos-with-auto-margins-in-inline-axis.txt | 2 +- ...gainst-padding-box-of-containing-block.txt | 2 +- ...-inline-with-percentage-vertical-align.txt | 2 +- ...e-children-and-nonempty-floating-child.txt | 2 +- ...-consider-all-currently-stacked-floats.txt | 2 +- .../bfc-float-left-break-vertically-2.txt | 2 +- .../bfc-float-left-break-vertically.txt | 2 +- ...ock-with-fit-content-width-constraints.txt | 2 +- .../block-with-fit-content-width.txt | 2 +- ...block-with-hidden-overflow-after-float.txt | 2 +- ...th-hidden-overflow-after-sibling-float.txt | 2 +- .../block-with-max-content-width.txt | 2 +- .../block-with-min-content-width.txt | 2 +- ...egative-margin-and-no-intruding-floats.txt | 2 +- .../box-with-clearance-and-margin-top.txt | 2 +- ...should-have-vertically-aligned-content.txt | 2 +- ...on-with-multiple-words-text-node-label.txt | 2 +- ...ton-with-text-node-label-and-font-size.txt | 2 +- .../button-with-text-node-label.txt | 2 +- ...ar-both-from-inline-formatting-context.txt | 2 +- ...ear-both-without-introducing-clearance.txt | 2 +- .../expected/block-and-inline/clearfix.txt | 2 +- .../expected/block-and-inline/float-1.txt | 2 +- .../expected/block-and-inline/float-2.txt | 2 +- .../expected/block-and-inline/float-3.txt | 2 +- .../expected/block-and-inline/float-4.txt | 2 +- .../float-clear-by-line-break.txt | 2 +- ...d-right-with-justified-text-in-between.txt | 2 +- ...at-left-and-right-with-text-in-between.txt | 2 +- ...-content-containing-block-flex-display.txt | 2 +- .../float-max-content-containing-block.txt | 2 +- .../block-and-inline/float-stress-1.txt | 2 +- .../block-and-inline/float-stress-2.txt | 2 +- .../block-and-inline/float-stress-3.txt | 2 +- .../floats-and-negative-margins.txt | 2 +- ...loat-left-and-sibling-with-margin-left.txt | 2 +- .../inline-block-baseline-1.txt | 2 +- .../inline-block-baseline-2.txt | 2 +- .../inline-block-percentage-max-width.txt | 2 +- ...nline-block-with-max-width-fit-content.txt | 2 +- ...ht-and-auto-height-of-containing-block.txt | 2 +- .../inline-box-positioned-with-top-left.txt | 2 +- ...th-vertical-margins-vertical-align-top.txt | 2 +- .../inline-box-with-vertical-margins.txt | 2 +- ...rinsic-sizing-with-min-width-specified.txt | 2 +- ...us-sibling-if-wrapped-in-anonymous-box.txt | 2 +- .../block-and-inline/margin-collapse-1.txt | 2 +- .../block-and-inline/margin-collapse-2.txt | 2 +- .../block-and-inline/margin-collapse-3.txt | 2 +- .../block-and-inline/margin-collapse-4.txt | 2 +- .../block-and-inline/margin-collapse-5.txt | 2 +- .../block-and-inline/margin-collapse-6.txt | 2 +- ...in-must-not-collapse-across-nested-bfc.txt | 2 +- .../margin-padding-block-inline-start.txt | 2 +- .../margin-padding-block-inline.txt | 2 +- ...max-width-for-box-with-inline-children.txt | 2 +- .../max-width-must-not-expand-element.txt | 2 +- ...ontributes-to-intrinsic-size-of-parent.txt | 2 +- .../max-width-percentage-100-border-box.txt | 2 +- .../max-width-percentage-100.txt | 2 +- ...min-width-for-box-with-inline-children.txt | 2 +- ...bfc-width-to-avoid-overlap-with-floats.txt | 2 +- ...n-height-with-containing-block-padding.txt | 2 +- .../percentage-min-height.txt | 2 +- ...ith-max-content-containing-block-width.txt | 2 +- ...-with-indefinite-containing-block-size.txt | 2 +- .../block-and-inline/relpos-block.txt | 2 +- .../block-and-inline/relpos-float.txt | 2 +- .../relpos-inline-element-js-offsets.txt | 2 +- .../relpos-inline-elements.txt | 2 +- .../single-br-inline-layout.txt | 2 +- ...ns-set-zero-if-containing-size-smaller.txt | 2 +- ...y-layout-internal-box-without-crashing.txt | 2 +- ...-box-for-definite-sizes-without-layout.txt | 2 +- .../Layout/expected/calc-negate-length.txt | 2 +- .../LibWeb/Layout/expected/css-all-unset.txt | 2 +- .../Layout/expected/css-calc-border-width.txt | 2 +- Tests/LibWeb/Layout/expected/css-ex-unit.txt | 2 +- .../Layout/expected/css-font-size-calc.txt | 2 +- .../css-host-selector-gets-parsed.txt | 2 +- .../Layout/expected/css-import-rule.txt | 2 +- .../css-imported-sheet-with-media-rule.txt | 2 +- .../css-invalid-psuedo-compound-selector.txt | 2 +- ...css-line-height-percentage-inheritance.txt | 2 +- .../expected/css-logical-inset-properties.txt | 2 +- .../expected/css-namespace-rule-matches.txt | 2 +- .../expected/css-namespace-rule-no-match.txt | 2 +- .../css-namespace-tag-name-selector.txt | 2 +- .../css-namespace-universal-selector.txt | 2 +- .../css-pseudo-element-blockification.txt | 2 +- ...should-not-be-affected-by-inline-style.txt | 2 +- ...ot-be-affected-by-presentational-hints.txt | 2 +- Tests/LibWeb/Layout/expected/css-revert.txt | 2 +- .../css-snap-a-length-as-a-border-width.txt | 2 +- .../css-values/comparison-functions.txt | 2 +- .../css-values/exponential-functions.txt | 2 +- .../expected/css-values/numeric-constants.txt | 2 +- .../css-values/sign-related-functions.txt | 2 +- .../css-values/stepped-value-functions.txt | 2 +- .../css-values/trigonometric-functions.txt | 2 +- .../Layout/expected/css-var-in-calc-block.txt | 2 +- .../display-table-inline-children.txt | 2 +- Tests/LibWeb/Layout/expected/div_align.txt | 2 +- .../Layout/expected/div_align_nested.txt | 2 +- ...-abspos-item-with-preceding-whitespace.txt | 2 +- Tests/LibWeb/Layout/expected/flex-auto.txt | 2 +- .../expected/flex-column-constained-wrap.txt | 2 +- .../flex-column-constrained-nowrap.txt | 2 +- ...n-height-constrained-width-constrained.txt | 2 +- .../flex-column-height-constrained.txt | 2 +- .../flex-column-height-unconstrained.txt | 2 +- ...mn-item-with-auto-height-and-max-width.txt | 2 +- ...g-auto-width-with-max-width-constraint.txt | 2 +- ...th-auto-height-depending-on-auto-width.txt | 2 +- .../flex-container-constrained-nowrap.txt | 2 +- .../flex-container-constrained-wrap.txt | 2 +- .../flex-container-width-constrained.txt | 2 +- .../flex-frozen-items-should-be-respected.txt | 2 +- .../Layout/expected/flex-grow-0-column.txt | 2 +- Tests/LibWeb/Layout/expected/flex-grow-1.txt | 2 +- Tests/LibWeb/Layout/expected/flex-grow-2.txt | 2 +- .../flex-item-auto-height-with-wrap.txt | 2 +- ...tem-on-row-with-intrinsic-aspect-ratio.txt | 2 +- ...dding-relative-to-flex-container-width.txt | 2 +- ...lex-item-with-cyclic-percentage-height.txt | 2 +- .../flex-item-with-intrinsic-aspect-ratio.txt | 2 +- .../flex-margin-auto-justify-content.txt | 2 +- Tests/LibWeb/Layout/expected/flex-row.txt | 2 +- .../LibWeb/Layout/expected/flex-shrink-1.txt | 2 +- .../LibWeb/Layout/expected/flex-shrink-2.txt | 2 +- .../LibWeb/Layout/expected/flex-shrink-3.txt | 2 +- ...child-static-position-with-align-items.txt | 2 +- ...d-static-position-with-justify-content.txt | 2 +- .../flex/align-keywords-start-and-end.txt | 2 +- .../expected/flex/align-self-end-crash.txt | 2 +- ...x-container-with-max-content-main-size.txt | 2 +- ...-baseline-with-inline-flex-empty-child.txt | 2 +- .../Layout/expected/flex/calc-flex-basis.txt | 2 +- ...-sizing-border-box-and-nonzero-padding.txt | 2 +- ...n-container-with-max-width-max-content.txt | 2 +- ...-aspect-ratio-and-percentage-max-width.txt | 2 +- ...-aspect-ratio-and-automatic-cross-size.txt | 2 +- ...-column-item-with-percentage-max-width.txt | 2 +- ...-cross-size-with-max-content-main-size.txt | 2 +- ...width-and-negative-margin-in-same-axis.txt | 2 +- .../flex/flex-gap-between-items-and-lines.txt | 2 +- .../flex/flex-item-min-width-fit-content.txt | 2 +- ...layout-dependent-containing-block-size.txt | 2 +- ...-intrinsic-aspect-ratio-and-max-height.txt | 2 +- ...flex-row-reverse-with-centered-content.txt | 2 +- ...flex-shorthand-flex-basis-zero-percent.txt | 2 +- .../inf-available-space-with-auto-margins.txt | 2 +- ...ith-main-axis-margin-on-flex-container.txt | 2 +- ...mn-items-with-different-kinds-of-width.txt | 2 +- ...tem-that-only-has-natural-aspect-ratio.txt | 2 +- .../expected/flex/justify-content-1.txt | 2 +- ...tify-content-space-between-single-item.txt | 2 +- ...justify-content-with-margin-auto-child.txt | 2 +- .../flex/list-container-display-contents.txt | 2 +- ...column-container-with-automatic-height.txt | 2 +- ...is-with-indefinite-flex-container-size.txt | 2 +- .../Layout/expected/flex/relpos-flex-item.txt | 2 +- ...ut-with-space-between-and-space-around.txt | 2 +- ...-suggestion-with-box-sizing-border-box.txt | 2 +- .../flex/stretch-alignment-with-cross-gap.txt | 2 +- ...ntage-padding-against-indefinite-width.txt | 2 +- ...ntage-padding-against-indefinite-width.txt | 2 +- .../expected/font-with-many-normal-values.txt | 2 +- ...etComputedStyle-on-unconnected-element.txt | 2 +- .../Layout/expected/grid/abspos-item.txt | 2 +- .../Layout/expected/grid/align-items.txt | 2 +- .../Layout/expected/grid/align-self.txt | 2 +- .../expected/grid/all-implicit-rows.txt | 2 +- .../expected/grid/anonymous-inline-child.txt | 2 +- .../LibWeb/Layout/expected/grid/auto-fill.txt | 2 +- .../grid/auto-fit-collapse-empty-tracks.txt | 2 +- .../LibWeb/Layout/expected/grid/auto-fit.txt | 2 +- .../Layout/expected/grid/auto-track-sizes.txt | 2 +- Tests/LibWeb/Layout/expected/grid/basic-2.txt | 2 +- Tests/LibWeb/Layout/expected/grid/basic.txt | 2 +- Tests/LibWeb/Layout/expected/grid/borders.txt | 2 +- .../Layout/expected/grid/calc-track-size.txt | 2 +- .../Layout/expected/grid/column-1fr-1fr.txt | 2 +- .../Layout/expected/grid/column-auto-auto.txt | 2 +- .../expected/grid/different-column-sizes.txt | 2 +- ...bute-extra-space-across-spanned-tracks.txt | 2 +- .../grid/float-container-columns-1fr-1fr.txt | 2 +- .../grid/floating-table-wrapper-width.txt | 2 +- .../Layout/expected/grid/grid-gap-1.txt | 2 +- .../Layout/expected/grid/grid-gap-2.txt | 2 +- .../Layout/expected/grid/grid-gap-3.txt | 2 +- .../grid/grid-item-fixed-paddings.txt | 2 +- .../expected/grid/grid-item-fixed-size.txt | 2 +- .../grid-item-horizontal-margins-auto.txt | 2 +- .../expected/grid/grid-item-min-size.txt | 2 +- .../grid/grid-item-percentage-margins.txt | 2 +- .../grid/grid-item-percentage-width-2.txt | 2 +- .../grid/grid-item-percentage-width.txt | 2 +- .../grid/grid-item-with-fit-content-width.txt | 2 +- ...id-row-height-affected-by-item-margins.txt | 2 +- .../expected/grid/grid-shorthand-property.txt | 2 +- .../Layout/expected/grid/grid-span-4.txt | 2 +- .../grid/grid-template-areas-basics.txt | 2 +- ...template-columns-with-min-css-function.txt | 2 +- .../Layout/expected/grid/grid-template.txt | 2 +- .../expected/grid/grow-beyond-limits.txt | 2 +- .../Layout/expected/grid/image-in-grid.txt | 2 +- .../expected/grid/inline-grid-simple.txt | 2 +- .../expected/grid/intrinsic-sized-column.txt | 2 +- .../expected/grid/intrinsic-sized-grid-2.txt | 2 +- .../expected/grid/intrinsic-sized-grid.txt | 2 +- .../expected/grid/item-column-span-2.txt | 2 +- .../grid/item-min-max-percentage-width.txt | 2 +- .../grid/item-span-exceeds-columns-size.txt | 2 +- .../Layout/expected/grid/justify-items.txt | 2 +- .../Layout/expected/grid/justify-self.txt | 2 +- .../expected/grid/justify-start-min-width.txt | 2 +- .../Layout/expected/grid/min-max-content.txt | 2 +- .../LibWeb/Layout/expected/grid/minmax-1.txt | 2 +- .../LibWeb/Layout/expected/grid/minmax-2.txt | 2 +- .../LibWeb/Layout/expected/grid/minmax-3.txt | 2 +- .../grid/minmax-auto-track-definition.txt | 2 +- .../Layout/expected/grid/minmax-invalid-1.txt | 2 +- .../grid/minmax-with-max-function-inside.txt | 2 +- .../Layout/expected/grid/named-tracks.txt | 2 +- .../grid/negative-grid-item-column-index.txt | 2 +- Tests/LibWeb/Layout/expected/grid/order.txt | 2 +- .../expected/grid/place-items-center.txt | 2 +- .../Layout/expected/grid/place-self.txt | 2 +- .../expected/grid/positions-and-spans.txt | 2 +- .../Layout/expected/grid/relpos-grid-item.txt | 2 +- Tests/LibWeb/Layout/expected/grid/repeat.txt | 2 +- Tests/LibWeb/Layout/expected/grid/row-1fr.txt | 2 +- .../Layout/expected/grid/row-height.txt | 2 +- .../expected/grid/row-span-2-maxcontent.txt | 2 +- .../expected/grid/row-span-2-mincontent.txt | 2 +- .../expected/grid/row-span-2-with-gaps.txt | 2 +- .../Layout/expected/grid/row-span-2.txt | 2 +- .../Layout/expected/grid/rows-1fr-1fr.txt | 2 +- ...nfinite-spinning-in-space-distribution.txt | 2 +- .../grid/template-lines-and-areas.txt | 2 +- .../grid/track-size-calc-with-percentage.txt | 2 +- .../grid/two-items-spanning-one-1fr-row.txt | 2 +- .../grid/unresolvable-percentage-track.txt | 2 +- .../expected/grid/valid-grid-areas-1.txt | 2 +- .../expected/grid/vertical-margins-auto.txt | 2 +- ...-of-absolute-position-box-with-padding.txt | 2 +- .../image-display-block-margin-auto.txt | 2 +- ...ge-with-multiple-constraint-violations.txt | 2 +- ...with-box-sizing-border-box-and-padding.txt | 2 +- ...-and-indefinite-containing-block-width.txt | 2 +- ...and-min-content-containing-block-width.txt | 2 +- Tests/LibWeb/Layout/expected/inline-size.txt | 2 +- .../input-element-with-display-inline.txt | 2 +- ...text-node-invalidation-on-value-change.txt | 2 +- .../expected/inset-shorthand-property.txt | 2 +- Tests/LibWeb/Layout/expected/lh-1.txt | 2 +- Tests/LibWeb/Layout/expected/lh-2.txt | 2 +- .../expected/line-height-calc-number.txt | 2 +- Tests/LibWeb/Layout/expected/link-sheet.txt | 2 +- ...late-block-components-whitespace-crash.txt | 2 +- .../misc/percentage-stroke-width-crash.txt | 2 +- Tests/LibWeb/Layout/expected/misc/scroll.txt | 2 +- .../Layout/expected/negative-max-size.txt | 2 +- ...ntage-padding-against-indefinite-width.txt | 2 +- .../overflow-x-hidden-with-border-radius.txt | 2 +- ...containing-block-has-indefinite-height.txt | 2 +- .../expected/picture-source-media-query.txt | 2 +- .../place-content-shorthand-property.txt | 2 +- .../expected/position-absolute-from-edges.txt | 2 +- ...g-of-position-relative-floating-parent.txt | 2 +- .../expected/position-absolute-top-left.txt | 2 +- .../position-empty-pseudo-elements.txt | 2 +- Tests/LibWeb/Layout/expected/pre.txt | 2 +- ...seudo-element-with-custom-properties-2.txt | 2 +- .../pseudo-element-with-custom-properties.txt | 2 +- .../replaced-box-with-vertical-margins.txt | 2 +- ...ero-when-available-size-is-min-content.txt | 2 +- .../resolve-height-of-containing-block.txt | 2 +- .../expected/set-margin-of-floating-box.txt | 2 +- .../expected/svg-preserve-aspect-ratio.txt | 2 +- .../expected/svg-transforms-and-viewboxes.txt | 2 +- ...with-indefinite-containing-block-width.txt | 2 +- ...ement-should-not-participate-in-layout.txt | 2 +- .../svg/svg-as-image-implicit-viewbox.txt | 2 +- .../expected/svg/svg-as-image-invalid.txt | 2 +- .../Layout/expected/svg/svg-as-image.txt | 2 +- .../svg/svg-different-types-of-opacity.txt | 2 +- .../expected/svg/svg-fill-with-bogus-url.txt | 2 +- .../expected/svg/svg-g-with-opacity.txt | 2 +- .../Layout/expected/svg/svg-inside-svg.txt | 2 +- .../svg-intrinsic-size-in-one-dimension.txt | 2 +- .../svg-negative-elliptical-arg-number.txt | 2 +- .../svg/svg-path-with-implicit-lineto.txt | 2 +- .../expected/svg/svg-symbol-with-viewbox.txt | 2 +- ...with-css-variable-in-presentation-hint.txt | 2 +- .../expected/svg/svg-with-display-block.txt | 2 +- ...ith-zero-intrinsic-size-and-no-viewbox.txt | 2 +- .../Layout/expected/svg/text-fill-none.txt | 2 +- .../expected/table/align-top-and-bottom.txt | 2 +- .../Layout/expected/table/auto-height.txt | 2 +- .../Layout/expected/table/auto-margins.txt | 2 +- .../avoid-div-by-zero-in-table-measures.txt | 2 +- Tests/LibWeb/Layout/expected/table/basic.txt | 2 +- .../table/border-collapse-is-inherited.txt | 2 +- .../border-conflict-resolution-with-cell.txt | 2 +- .../border-conflict-resolution-with-col.txt | 2 +- .../border-conflict-resolution-with-row.txt | 2 +- ...rder-conflict-resolution-with-rowgroup.txt | 2 +- ...border-spacing-and-borders-table-width.txt | 2 +- .../expected/table/border-spacing-colspan.txt | 2 +- .../expected/table/border-spacing-rowspan.txt | 2 +- .../border-spacing-with-percentage-width.txt | 2 +- .../Layout/expected/table/border-spacing.txt | 2 +- .../LibWeb/Layout/expected/table/borders.txt | 2 +- .../Layout/expected/table/bottom-caption.txt | 2 +- ...-auto-max-width-table-percentage-width.txt | 2 +- .../Layout/expected/table/cell-px-height.txt | 2 +- ...cell-relative-to-specified-table-width.txt | 2 +- .../table/clip-spans-to-table-end.txt | 2 +- .../table/colspan-percentage-width.txt | 2 +- .../colspan-weighted-width-distribution.txt | 2 +- .../table/colspan-width-distribution.txt | 2 +- .../table/columns-width-distribution-1.txt | 2 +- ...ed-layout-percentage-width-all-columns.txt | 2 +- .../table/fixed-layout-percentage-width.txt | 2 +- .../fixed-layout-pixel-width-all-columns.txt | 2 +- .../table/fixed-layout-pixel-width.txt | 2 +- .../Layout/expected/table/fixed-layout.txt | 2 +- .../Layout/expected/table/fixed-margins.txt | 2 +- .../table/in-auto-height-flex-item.txt | 2 +- .../expected/table/infinite-padding.txt | 2 +- .../expected/table/inline-table-width.txt | 2 +- .../table/long-caption-increases-width.txt | 2 +- .../Layout/expected/table/multi-line-cell.txt | 2 +- .../expected/table/nested-table-box-width.txt | 2 +- .../table/percentage-width-columns.txt | 2 +- ...ge-width-for-nested-table-is-like-auto.txt | 2 +- .../percentage-width-max-width-columns.txt | 2 +- .../propagate-style-update-to-wrapper.txt | 2 +- .../row-outer-size-with-computed-size.txt | 2 +- .../Layout/expected/table/row-px-height.txt | 2 +- .../table/row-span-and-nested-tables.txt | 2 +- .../table/rows-height-distribution-1.txt | 2 +- .../table/rows-height-distribution-2.txt | 2 +- .../table/rows-height-distribution-3.txt | 2 +- .../table/rows-height-distribution-4.txt | 2 +- .../LibWeb/Layout/expected/table/rowspan.txt | 2 +- Tests/LibWeb/Layout/expected/table/size.txt | 2 +- .../table/stretch-to-fixed-height.txt | 2 +- ...percentage-column-widths-less-than-100.txt | 2 +- .../table/table-cell-not-paintable.txt | 2 +- ...e-formation-with-rowspan-in-the-middle.txt | 2 +- .../table/table-header-and-footer-groups.txt | 2 +- .../Layout/expected/table/table-width.txt | 2 +- .../Layout/expected/table/td-valign.txt | 2 +- .../table/top-caption-with-padding.txt | 2 +- ...strained-columns-increased-size-on-col.txt | 2 +- ...on-and-constrained-columns-size-on-col.txt | 2 +- ...h-distribution-and-constrained-columns.txt | 2 +- ...th-distribution-of-max-width-increment.txt | 2 +- .../expected/table/zero-columns-gridmax.txt | 2 +- .../text-align-justify-with-forced-break.txt | 2 +- .../Layout/expected/text-align-overflow.txt | 2 +- Tests/LibWeb/Layout/expected/text-indent.txt | 2 +- .../tolerate-css-percentage-overshoot.txt | 2 +- .../expected/transform-calc-length-values.txt | 2 +- .../vertical-padding-relative-to-cb-width.txt | 2 +- .../viewport-overflow-propagation-1.txt | 2 +- .../viewport-overflow-propagation-2.txt | 2 +- Userland/Libraries/LibWeb/CMakeLists.txt | 1 + Userland/Libraries/LibWeb/Layout/Viewport.cpp | 6 +++++ Userland/Libraries/LibWeb/Layout/Viewport.h | 2 ++ .../Libraries/LibWeb/Painting/PaintableBox.h | 2 +- .../LibWeb/Painting/ViewportPaintable.cpp | 24 +++++++++++++++++++ .../LibWeb/Painting/ViewportPaintable.h | 24 +++++++++++++++++++ 389 files changed, 441 insertions(+), 384 deletions(-) create mode 100644 Userland/Libraries/LibWeb/Painting/ViewportPaintable.cpp create mode 100644 Userland/Libraries/LibWeb/Painting/ViewportPaintable.h diff --git a/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt b/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt index a2c7bd3268..2d5f6823f7 100644 --- a/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt +++ b/Tests/LibWeb/Layout/expected/abspos-box-with-replaced-element.txt @@ -6,7 +6,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline frag 0 from ImageBox start: 0, length: 0, rect: [262,12 248x26.46875] ImageBox at (262,12) content-size 248x26.46875 children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x2] overflow: [9,9 502x102] PaintableWithLines (BlockContainer) [9,9 502x102] PaintableWithLines (BlockContainer
.image-container) [260,10 250x30.46875] overflow: [261,11 249x28.46875] diff --git a/Tests/LibWeb/Layout/expected/abspos-flex-container-with-auto-height.txt b/Tests/LibWeb/Layout/expected/abspos-flex-container-with-auto-height.txt index c3a759ea2e..9cced02978 100644 --- a/Tests/LibWeb/Layout/expected/abspos-flex-container-with-auto-height.txt +++ b/Tests/LibWeb/Layout/expected/abspos-flex-container-with-auto-height.txt @@ -7,7 +7,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline "Diese Website nutzt Cookies und vergleichbare Funktionen zur" TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x2] overflow: [8,8 514.859375x21.46875] PaintableBox (Box) [8,8 514.859375x21.46875] PaintableWithLines (BlockContainer
) [9,9 512.859375x19.46875] diff --git a/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt b/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt index cd4f5d6c95..1e0e3d92c8 100644 --- a/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt +++ b/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt @@ -3,7 +3,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,8) content-size 784x0 children: not-inline ImageBox at (8,8) content-size 800x600 positioned children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] overflow: [0,0 808x608] +ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 808x608] PaintableWithLines (BlockContainer) [0,0 800x16] overflow: [0,0 808x608] PaintableWithLines (BlockContainer) [8,8 784x0] overflow: [8,8 800x600] ImagePaintable (ImageBox#zero-dimensions-but-min-percentages) [8,8 800x600] diff --git a/Tests/LibWeb/Layout/expected/abspos-not-replaced-multiple-auto-variants.txt b/Tests/LibWeb/Layout/expected/abspos-not-replaced-multiple-auto-variants.txt index e164088059..b4e1dfd50e 100644 --- a/Tests/LibWeb/Layout/expected/abspos-not-replaced-multiple-auto-variants.txt +++ b/Tests/LibWeb/Layout/expected/abspos-not-replaced-multiple-auto-variants.txt @@ -9,7 +9,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (11,11) content-size 10x10 positioned [BFC] children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602] +ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602] PaintableWithLines (BlockContainer) [0,0 800x602] PaintableWithLines (BlockContainer) [9,9 782x2] PaintableWithLines (BlockContainer
.only-t-l) [5,5 12x12] diff --git a/Tests/LibWeb/Layout/expected/abspos-with-percentage-insets.txt b/Tests/LibWeb/Layout/expected/abspos-with-percentage-insets.txt index 95542ace12..d8f2c76386 100644 --- a/Tests/LibWeb/Layout/expected/abspos-with-percentage-insets.txt +++ b/Tests/LibWeb/Layout/expected/abspos-with-percentage-insets.txt @@ -13,7 +13,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline TextNode <#text> TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x2] overflow: [9,9 502x402] PaintableWithLines (BlockContainer) [9,9 502x402] PaintableWithLines (BlockContainer
.one) [310,210 30.6875x19.46875] diff --git a/Tests/LibWeb/Layout/expected/acid1.txt b/Tests/LibWeb/Layout/expected/acid1.txt index c5cceb8795..d76ed21f4a 100644 --- a/Tests/LibWeb/Layout/expected/acid1.txt +++ b/Tests/LibWeb/Layout/expected/acid1.txt @@ -134,7 +134,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (20,400) content-size 480x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x420] PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0] PaintableWithLines (BlockContainer) [15,15 490x390] diff --git a/Tests/LibWeb/Layout/expected/anonymous-wrappers-continue-to-inherit-style-after-change.txt b/Tests/LibWeb/Layout/expected/anonymous-wrappers-continue-to-inherit-style-after-change.txt index 313f98bafe..5fd59e8a9f 100644 --- a/Tests/LibWeb/Layout/expected/anonymous-wrappers-continue-to-inherit-style-after-change.txt +++ b/Tests/LibWeb/Layout/expected/anonymous-wrappers-continue-to-inherit-style-after-change.txt @@ -12,7 +12,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline "anonymously wrapped text" TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x89.84375] overflow: [0,0 800x95.28125] PaintableWithLines (BlockContainer) [8,21.4375 784x73.84375] PaintableWithLines (BlockContainer

) [8,21.4375 784x34.9375] diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt index 68f2e0c0fd..d1c1f82863 100644 --- a/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt +++ b/Tests/LibWeb/Layout/expected/aspect-ratio-auto-and-ratio.txt @@ -8,7 +8,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline ImageBox at (9,111) content-size 200x200 children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x320] PaintableWithLines (BlockContainer) [8,8 784x304] PaintableWithLines (BlockContainer
) [8,8 202x102] diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt index 3adbcc1b0c..e9ab58b41a 100644 --- a/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt +++ b/Tests/LibWeb/Layout/expected/aspect-ratio-auto.txt @@ -8,7 +8,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline ImageBox at (9,11) content-size 200x200 children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x220] PaintableWithLines (BlockContainer) [8,8 784x204] PaintableWithLines (BlockContainer
) [8,8 202x2] diff --git a/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt b/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt index 1c2d1fbeba..d8107c8e02 100644 --- a/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt +++ b/Tests/LibWeb/Layout/expected/aspect-ratio-ratio.txt @@ -8,7 +8,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline ImageBox at (9,111) content-size 200x100 children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x220] PaintableWithLines (BlockContainer) [8,8 784x204] PaintableWithLines (BlockContainer
) [8,8 202x102] diff --git a/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt b/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt index 726b1c9152..167d21cfc9 100644 --- a/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt +++ b/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt @@ -4,7 +4,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (9,9) content-size 0x0 positioned [BFC] children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x0] overflow: [8,8 2x2] PaintableWithLines (BlockContainer.outer) [8,8 0x0] overflow: [8,8 2x2] PaintableWithLines (BlockContainer
.inner) [8,8 2x2] diff --git a/Tests/LibWeb/Layout/expected/automatic-width-of-non-replaced-abspos-element-must-not-be-negative.txt b/Tests/LibWeb/Layout/expected/automatic-width-of-non-replaced-abspos-element-must-not-be-negative.txt index 0e104822b1..00b7734dec 100644 --- a/Tests/LibWeb/Layout/expected/automatic-width-of-non-replaced-abspos-element-must-not-be-negative.txt +++ b/Tests/LibWeb/Layout/expected/automatic-width-of-non-replaced-abspos-element-must-not-be-negative.txt @@ -3,7 +3,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,8) content-size 0x0 positioned [BFC] children: not-inline BlockContainer at (9,9) content-size 0x0 positioned [BFC] children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x0] overflow: [8,8 2x2] PaintableWithLines (BlockContainer.outer) [8,8 0x0] overflow: [8,8 2x2] PaintableWithLines (BlockContainer
.inner) [8,8 2x2] diff --git a/Tests/LibWeb/Layout/expected/blank.txt b/Tests/LibWeb/Layout/expected/blank.txt index b9fb27d151..e3bc5878a3 100644 --- a/Tests/LibWeb/Layout/expected/blank.txt +++ b/Tests/LibWeb/Layout/expected/blank.txt @@ -5,7 +5,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,8) content-size 784x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x16] PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0] PaintableWithLines (BlockContainer) [8,8 784x0] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-auto-margins-in-inline-axis.txt b/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-auto-margins-in-inline-axis.txt index 4191b2d995..2e88d26a20 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-auto-margins-in-inline-axis.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-auto-margins-in-inline-axis.txt @@ -5,7 +5,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (699,101) content-size 100x100 positioned [BFC] children: not-inline BlockContainer at (1,201) content-size 100x100 positioned [BFC] children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x20] overflow: [0,0 800x302] PaintableWithLines (BlockContainer) [9,9 782x2] overflow: [0,0 800x302] PaintableWithLines (BlockContainer
#foo) [349,0 102x102] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-percentage-height-resolved-against-padding-box-of-containing-block.txt b/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-percentage-height-resolved-against-padding-box-of-containing-block.txt index 758d7e8153..2659c8440a 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-percentage-height-resolved-against-padding-box-of-containing-block.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/abspos-with-percentage-height-resolved-against-padding-box-of-containing-block.txt @@ -3,7 +3,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,248) content-size 784x0 positioned children: not-inline BlockContainer at (8,8) content-size 784x240 positioned [BFC] children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x256] PaintableWithLines (BlockContainer) [8,8 784x240] PaintableWithLines (BlockContainer
.abspos) [8,8 784x240] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/atomic-inline-with-percentage-vertical-align.txt b/Tests/LibWeb/Layout/expected/block-and-inline/atomic-inline-with-percentage-vertical-align.txt index 5f78f71504..d7dff8d373 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/atomic-inline-with-percentage-vertical-align.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/atomic-inline-with-percentage-vertical-align.txt @@ -9,7 +9,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BreakNode
BlockContainer at (3,35) content-size 30x30 inline-block [BFC] children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x64.5] overflow: [1,1 798x64] PaintableWithLines (BlockContainer) [1,1 798x62.5] overflow: [2,2 796x63] PaintableWithLines (BlockContainer
.clump) [3,2 32x32] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.txt b/Tests/LibWeb/Layout/expected/block-and-inline/automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.txt index d303b2cb6a..9db911b247 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.txt @@ -5,7 +5,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (78,78) content-size 0x0 floating [BFC] children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x0] overflow: [8,8 140x100] PaintableWithLines (BlockContainer) [8,8 140x100] PaintableWithLines (BlockContainer
.black) [8,8 140x100] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-consider-all-currently-stacked-floats.txt b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-consider-all-currently-stacked-floats.txt index 27246ba4da..fdaa11b127 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-consider-all-currently-stacked-floats.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-consider-all-currently-stacked-floats.txt @@ -29,7 +29,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (8,42.9375) content-size 784x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x108] PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0] PaintableWithLines (BlockContainer) [8,8 784x34.9375] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically-2.txt b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically-2.txt index c25d1efb3c..43b2f8d724 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically-2.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically-2.txt @@ -9,7 +9,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (0,0) content-size 200x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x150] PaintableWithLines (BlockContainer) [0,0 200x0] overflow: [0,0 200x150] PaintableWithLines (BlockContainer
    ) [0,0 200x0] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically.txt b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically.txt index b5ad17327e..6c3f7b1efd 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/bfc-float-left-break-vertically.txt @@ -16,7 +16,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (3,56) content-size 100x50 floating [BFC] children: not-inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x108] PaintableWithLines (BlockContainer(anonymous)) [1,1 798x0] PaintableWithLines (BlockContainer) [1,1 402x4] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width-constraints.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width-constraints.txt index cceb3112a5..80c227e3ea 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width-constraints.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width-constraints.txt @@ -14,7 +14,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (10,48.9375) content-size 780x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x58.9375] PaintableWithLines (BlockContainer) [9,9 782x40.9375] PaintableWithLines (BlockContainer
    .box) [10,10 140.28125x19.46875] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width.txt index 75e02f0112..a80515740f 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-fit-content-width.txt @@ -9,7 +9,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (10,29.46875) content-size 780x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x39.46875] PaintableWithLines (BlockContainer) [9,9 782x21.46875] PaintableWithLines (BlockContainer
    .box) [10,10 140.28125x19.46875] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-float.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-float.txt index c02f5a71ca..ebb5313cc4 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-float.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-float.txt @@ -28,7 +28,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (8,25.46875) content-size 784x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x33.46875] PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0] PaintableWithLines (BlockContainer) [8,8 784x17.46875] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-sibling-float.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-sibling-float.txt index d5e6162b13..be7ace39c5 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-sibling-float.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-hidden-overflow-after-sibling-float.txt @@ -46,7 +46,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (8,42.9375) content-size 784x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x600] PaintableWithLines (BlockContainer) [8,8 784x34.9375] PaintableWithLines (BlockContainer
    ) [8,8 784x34.9375] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-max-content-width.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-max-content-width.txt index 8b83f8ed5c..648423c0a9 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-max-content-width.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-max-content-width.txt @@ -23,7 +23,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (10,68.40625) content-size 780x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x78.40625] PaintableWithLines (BlockContainer) [9,9 782x60.40625] PaintableWithLines (BlockContainer
    .foo) [10,10 152.21875x19.46875] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-min-content-width.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-min-content-width.txt index edc9f21a36..e8145108e5 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-min-content-width.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-min-content-width.txt @@ -32,7 +32,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (10,122.21875) content-size 780x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x132.21875] PaintableWithLines (BlockContainer) [9,9 782x114.21875] PaintableWithLines (BlockContainer
    .foo) [10,10 95.765625x37.40625] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-negative-margin-and-no-intruding-floats.txt b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-negative-margin-and-no-intruding-floats.txt index b787acaf2b..52137702e3 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/block-with-negative-margin-and-no-intruding-floats.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/block-with-negative-margin-and-no-intruding-floats.txt @@ -10,7 +10,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline "intruding on this div" TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x57.40625] PaintableWithLines (BlockContainer) [109,9 302x39.40625] overflow: [60,10 350x37.40625] PaintableWithLines (BlockContainer
    ) [60,10 202x37.40625] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/box-with-clearance-and-margin-top.txt b/Tests/LibWeb/Layout/expected/block-and-inline/box-with-clearance-and-margin-top.txt index c7c0a7db9a..8bffb30adc 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/box-with-clearance-and-margin-top.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/box-with-clearance-and-margin-top.txt @@ -6,7 +6,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer at (8,108) content-size 10x10 children: not-inline BlockContainer at (8,218) content-size 49x49 floating [BFC] children: not-inline -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x600] PaintableWithLines (BlockContainer) [8,8 784x110] overflow: [8,8 784x259] PaintableWithLines (BlockContainer
    ) [8,8 784x110] overflow: [8,8 784x259] diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt b/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt index 9d6237d5ac..bf0c5c5a6e 100644 --- a/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt +++ b/Tests/LibWeb/Layout/expected/block-and-inline/button-should-have-vertically-aligned-content.txt @@ -26,7 +26,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline BlockContainer <(anonymous)> at (22,186.734375) content-size 48.6875x0 children: inline TextNode <#text> -PaintableWithLines (Viewport<#document>) [0,0 800x600] +ViewportPaintable (Viewport<#document>) [0,0 800x600] PaintableWithLines (BlockContainer) [0,0 800x600] PaintableWithLines (BlockContainer) [8,8 784x200] PaintableWithLines (BlockContainer