Truly independent web browser
LibWeb: Print every display list command field in the dump
Aliaksandr Kalenik782821cc70cf
diff --git a/Libraries/LibCompositing/Rust/src/display_list/commands.rs b/Libraries/LibCompositing/Rust/src/display_list/commands.rsindex e6213c62ac7..fdfc1fc2c40 100644--- a/Libraries/LibCompositing/Rust/src/display_list/commands.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/commands.rs@@ -6,6 +6,7 @@use super::builder::read_command;use crate::display_list::ffi_bytes::FfiBytes;+use crate::display_list_record_fields;use crate::ffi_bytes_fields;use crate::ffi_enum_bytes;use libgfx_rust::*;@@ -224,9 +225,10 @@ pub struct ContextRef {}ffi_bytes_fields!(ContextRef { spatial, clip, effect });-#[derive(Clone, Copy, Debug, PartialEq, Eq)]+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]#[repr(u8)]pub enum ClipMode {+ #[default]Intersect,Difference,}@@ -557,7 +559,7 @@ pub struct DisplayListGlyph {pub position: FloatPoint,pub glyph_id: u32,}-ffi_bytes_fields!(DisplayListGlyph { position, glyph_id });+display_list_record_fields!(DisplayListGlyph { position, glyph_id });impl From<text_layout::PlacedGlyph> for DisplayListGlyph {fn from(placed: text_layout::PlacedGlyph) -> Self {@@ -609,7 +611,7 @@ pub struct DisplayListGradientPaintStyle {pub color_space: InterpolationColorSpace,pub color_stops: DisplayListGradientColorStops,}-ffi_bytes_fields!(DisplayListGradientPaintStyle {+display_list_record_fields!(DisplayListGradientPaintStyle {gradient_transform,spread_method,color_space,@@ -632,7 +634,7 @@ pub struct DisplayListPaintStyle {pub pattern_content_scale: FloatSize,pub pattern_transform: OptionalAffineTransform,}-ffi_bytes_fields!(DisplayListPaintStyle {+display_list_record_fields!(DisplayListPaintStyle {paint_style_type,gradient,linear_gradient_start_point,@@ -643,7 +645,10 @@ ffi_bytes_fields!(DisplayListPaintStyle {radial_gradient_end_radius,pattern_tile,pattern_tile_rect,- pattern_content_scale,+ pattern_content_scale = FloatSize {+ width: 1.0,+ height: 1.0+ },pattern_transform});@@ -675,9 +680,9 @@ pub struct Repeat {pub x: bool,pub y: bool,}-ffi_bytes_fields!(Repeat { x, y });+display_list_record_fields!(Repeat { x, y });-pub trait DisplayListCommand: Copy + FfiBytes {+pub trait DisplayListCommand: Copy + FfiBytes + super::record_fields::RecordFields {const COMMAND_TYPE: DisplayListCommandType;// Encloses everything the command draws. Only compositor metadata, which draws nothing, and the commands of the// canvas 2D stream, which draw under state that only replay knows, have none.@@ -768,14 +773,14 @@ pub struct DrawGlyphRun {pub orientation: Orientation,pub font_smoothing: u8,}-ffi_bytes_fields!(DrawGlyphRun {+display_list_record_fields!(DrawGlyphRun {stroke_width,font_id,glyphs,rect,glyph_bounding_rect,translation,- scale,+ scale = 1.0,color,orientation,font_smoothing@@ -796,7 +801,7 @@ pub struct FillRect {pub compositing_and_blending_operator: CompositingAndBlendingOperator,pub background_color_animation_effect: EffectNodeIndex,}-ffi_bytes_fields!(FillRect {+display_list_record_fields!(FillRect {rect,color,compositing_and_blending_operator,@@ -818,7 +823,7 @@ pub struct PaintCaret {pub blink_cycle_start_time_ns: i64,pub should_blink: bool,}-ffi_bytes_fields!(PaintCaret {+display_list_record_fields!(PaintCaret {rect,color,blink_cycle_start_time_ns,@@ -843,7 +848,7 @@ pub struct DrawScaledDecodedImageFrame {pub isolated_backdrop_color: OptionalColor,pub apply_force_dark: bool,}-ffi_bytes_fields!(DrawScaledDecodedImageFrame {+display_list_record_fields!(DrawScaledDecodedImageFrame {dst_rect,src_rect,frame_id,@@ -872,7 +877,7 @@ pub struct DrawRepeatedDecodedImageFrame {pub isolated_backdrop_color: OptionalColor,pub apply_force_dark: bool,}-ffi_bytes_fields!(DrawRepeatedDecodedImageFrame {+display_list_record_fields!(DrawRepeatedDecodedImageFrame {dst_rect,clip_rect,frame_id,@@ -903,7 +908,7 @@ pub struct DrawRepeatedTile {pub compositing_and_blending_operator: CompositingAndBlendingOperator,pub repeat: Repeat,}-ffi_bytes_fields!(DrawRepeatedTile {+display_list_record_fields!(DrawRepeatedTile {dst_rect,clip_rect,tile_size,@@ -934,7 +939,7 @@ pub struct DrawTiledDecodedImageFrame {pub tile_count_y: OptionalU32,pub apply_force_dark: bool,}-ffi_bytes_fields!(DrawTiledDecodedImageFrame {+display_list_record_fields!(DrawTiledDecodedImageFrame {tile_rect,clip_rect,src_rect,@@ -962,7 +967,7 @@ pub struct DrawCompositedContext {pub spatial_node_index: SpatialNodeIndex,pub snap_origin_if_untransformed: bool,}-ffi_bytes_fields!(DrawCompositedContext {+display_list_record_fields!(DrawCompositedContext {dst_rect,child_context_id,scaling_mode,@@ -984,7 +989,7 @@ pub struct DrawCanvas {pub canvas_id: CanvasId,pub scaling_mode: ScalingMode,}-ffi_bytes_fields!(DrawCanvas {+display_list_record_fields!(DrawCanvas {dst_rect,canvas_id,scaling_mode@@ -1004,7 +1009,7 @@ pub struct DrawVideoFrame {pub video_sink_handle: VideoSinkHandle,pub scaling_mode: ScalingMode,}-ffi_bytes_fields!(DrawVideoFrame {+display_list_record_fields!(DrawVideoFrame {dst_rect,video_sink_handle,scaling_mode@@ -1028,7 +1033,7 @@ pub struct PaintLinearGradient {pub interpolation_method: GradientInterpolationMethod,pub compositing_and_blending_operator: CompositingAndBlendingOperator,}-ffi_bytes_fields!(PaintLinearGradient {+display_list_record_fields!(PaintLinearGradient {gradient_rect,gradient_angle,color_stops,@@ -1055,7 +1060,7 @@ pub struct PaintOuterBoxShadow {pub shadow_rect: IntRect,pub shadow_corner_radii: CornerRadii,}-ffi_bytes_fields!(PaintOuterBoxShadow {+display_list_record_fields!(PaintOuterBoxShadow {color,blur_radius,device_content_rect,@@ -1086,7 +1091,7 @@ pub struct PaintInnerBoxShadow {pub inner_shadow_rect: IntRect,pub inner_shadow_corner_radii: CornerRadii,}-ffi_bytes_fields!(PaintInnerBoxShadow {+display_list_record_fields!(PaintInnerBoxShadow {color,blur_radius,device_content_rect,@@ -1117,7 +1122,7 @@ pub struct PaintPathBoxShadow {pub shape_path_data: DisplayListDataSpan,pub inner: bool,}-ffi_bytes_fields!(PaintPathBoxShadow {+display_list_record_fields!(PaintPathBoxShadow {color,blur_radius,spread_distance,@@ -1157,7 +1162,7 @@ pub struct TextShadowLayer {pub blur_radius: i32,pub color: Color,}-ffi_bytes_fields!(TextShadowLayer {+display_list_record_fields!(TextShadowLayer {offset,rounded_offset,blur_radius,@@ -1178,14 +1183,14 @@ pub struct PaintTextShadow {pub orientation: Orientation,pub font_smoothing: u8,}-ffi_bytes_fields!(PaintTextShadow {+display_list_record_fields!(PaintTextShadow {font_id,glyphs,layers,shadows_bounding_rect,rect,translation,- scale,+ scale = 1.0,orientation,font_smoothing});@@ -1205,7 +1210,7 @@ pub struct FillRectWithRoundedCorners {pub corner_radii: CornerRadii,pub background_color_animation_effect: EffectNodeIndex,}-ffi_bytes_fields!(FillRectWithRoundedCorners {+display_list_record_fields!(FillRectWithRoundedCorners {rect,color,corner_radii,@@ -1233,7 +1238,7 @@ pub struct FillRoundedRectRing {pub left_width: i32,pub color: Color,}-ffi_bytes_fields!(FillRoundedRectRing {+display_list_record_fields!(FillRoundedRectRing {rect,corner_radii,top_width,@@ -1263,10 +1268,10 @@ pub struct FillPath {pub should_anti_alias: ShouldAntiAlias,pub compositing_and_blending_operator: CompositingAndBlendingOperator,}-ffi_bytes_fields!(FillPath {+display_list_record_fields!(FillPath {path_bounding_rect,path_data,- opacity,+ opacity = 1.0,paint_kind,color,paint_style,@@ -1299,15 +1304,15 @@ pub struct StrokePath {pub thickness: f32,pub should_anti_alias: ShouldAntiAlias,}-ffi_bytes_fields!(StrokePath {+display_list_record_fields!(StrokePath {cap_style,join_style,- miter_limit,+ miter_limit = 4.0,dash_array,dash_offset,path_bounding_rect,path_data,- opacity,+ opacity = 1.0,paint_kind,color,paint_style,@@ -1343,7 +1348,7 @@ pub struct DrawEllipse {pub color: Color,pub thickness: i32,}-ffi_bytes_fields!(DrawEllipse { rect, color, thickness });+display_list_record_fields!(DrawEllipse { rect, color, thickness });impl DisplayListCommand for DrawEllipse {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::DrawEllipse;@@ -1362,13 +1367,13 @@ pub struct DrawLine {pub style: LineStyle,pub alternate_color: Color,}-ffi_bytes_fields!(DrawLine {+display_list_record_fields!(DrawLine {color,from,to,thickness,style,- alternate_color+ alternate_color = Color::TRANSPARENT});impl DisplayListCommand for DrawLine {@@ -1385,7 +1390,7 @@ impl DisplayListCommand for DrawLine {pub struct BackdropFilterRegion {pub rect: IntRect,}-ffi_bytes_fields!(BackdropFilterRegion { rect });+display_list_record_fields!(BackdropFilterRegion { rect });impl DisplayListCommand for BackdropFilterRegion {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::BackdropFilterRegion;@@ -1401,7 +1406,7 @@ pub struct DrawRect {pub color: Color,pub rough: bool,}-ffi_bytes_fields!(DrawRect { rect, color, rough });+display_list_record_fields!(DrawRect { rect, color, rough });impl DisplayListCommand for DrawRect {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::DrawRect;@@ -1420,7 +1425,7 @@ pub struct PaintRadialGradient {pub size: IntSize,pub compositing_and_blending_operator: CompositingAndBlendingOperator,}-ffi_bytes_fields!(PaintRadialGradient {+display_list_record_fields!(PaintRadialGradient {rect,color_stops,interpolation_method,@@ -1446,7 +1451,7 @@ pub struct PaintConicGradient {pub position: IntPoint,pub compositing_and_blending_operator: CompositingAndBlendingOperator,}-ffi_bytes_fields!(PaintConicGradient {+display_list_record_fields!(PaintConicGradient {rect,start_angle,color_stops,@@ -1477,7 +1482,7 @@ pub struct PaintVectorImage {// or draw content that changes under them.pub requires_direct_replay: bool,}-ffi_bytes_fields!(PaintVectorImage {+display_list_record_fields!(PaintVectorImage {vector_image_id,rect,recorded_size,@@ -1508,12 +1513,12 @@ pub struct DrawIsolatedGroup {pub compositing_and_blending_operator: CompositingAndBlendingOperator,pub mask_kind: MaskKind,}-ffi_bytes_fields!(DrawIsolatedGroup {+display_list_record_fields!(DrawIsolatedGroup {clip_rect,content,mask,filter,- opacity,+ opacity = 1.0,compositing_and_blending_operator,mask_kind});@@ -1532,7 +1537,7 @@ pub struct DeclareMaskContent {pub effect: EffectNodeIndex,pub content: DisplayListDataSpan,}-ffi_bytes_fields!(DeclareMaskContent { rect, effect, content });+display_list_record_fields!(DeclareMaskContent { rect, effect, content });impl DisplayListCommand for DeclareMaskContent {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::DeclareMaskContent;@@ -1546,7 +1551,7 @@ impl DisplayListCommand for DeclareMaskContent {pub struct CompositorBlockingWheelEventRegion {pub rect: FloatRect,}-ffi_bytes_fields!(CompositorBlockingWheelEventRegion { rect });+display_list_record_fields!(CompositorBlockingWheelEventRegion { rect });impl DisplayListCommand for CompositorBlockingWheelEventRegion {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::CompositorBlockingWheelEventRegion;@@ -1558,7 +1563,7 @@ pub struct CompositorWheelHitTestTarget {pub target_scroll_node_index: SpatialNodeIndex,pub rect: FloatRect,}-ffi_bytes_fields!(CompositorWheelHitTestTarget {+display_list_record_fields!(CompositorWheelHitTestTarget {target_scroll_node_index,rect});@@ -1574,7 +1579,7 @@ pub struct CompositorWheelHitTestTargetWithCornerRadii {pub rect: FloatRect,pub corner_radii: CornerRadii,}-ffi_bytes_fields!(CompositorWheelHitTestTargetWithCornerRadii {+display_list_record_fields!(CompositorWheelHitTestTargetWithCornerRadii {target_scroll_node_index,rect,corner_radii@@ -1593,7 +1598,7 @@ pub struct CompositorNestedContextWheelRegion {pub corner_radii: CornerRadii,pub child_context_id: CompositorContextId,}-ffi_bytes_fields!(CompositorNestedContextWheelRegion {+display_list_record_fields!(CompositorNestedContextWheelRegion {rect,corner_radii,child_context_id@@ -1608,7 +1613,7 @@ impl DisplayListCommand for CompositorNestedContextWheelRegion {pub struct CompositorMainThreadWheelEventRegion {pub rect: FloatRect,}-ffi_bytes_fields!(CompositorMainThreadWheelEventRegion { rect });+display_list_record_fields!(CompositorMainThreadWheelEventRegion { rect });impl DisplayListCommand for CompositorMainThreadWheelEventRegion {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::CompositorMainThreadWheelEventRegion;@@ -1633,7 +1638,7 @@ pub struct CompositorScrollbar {pub vertical: bool,pub is_painted_by_compositor: bool,}-ffi_bytes_fields!(CompositorScrollbar {+display_list_record_fields!(CompositorScrollbar {scroll_node_index,gutter_rect,thumb_rect,@@ -1670,7 +1675,7 @@ pub struct PaintScrollBar {pub track_color: Color,pub vertical: bool,}-ffi_bytes_fields!(PaintScrollBar {+display_list_record_fields!(PaintScrollBar {scroll_node_index,gutter_rect,thumb_rect,@@ -1736,7 +1741,7 @@ pub struct Canvas2DPaint {pub pattern_image_id: ImageFrameResourceId,pub pattern_transform: OptionalAffineTransform,}-ffi_bytes_fields!(Canvas2DPaint {+display_list_record_fields!(Canvas2DPaint {kind,pattern_repetition,pattern_has_image,@@ -1761,7 +1766,7 @@ pub struct Canvas2DShadow {pub offset_y: f32,pub blur: f32,}-ffi_bytes_fields!(Canvas2DShadow {+display_list_record_fields!(Canvas2DShadow {color,offset_x,offset_y,@@ -1781,10 +1786,10 @@ pub struct Canvas2DCompositing {pub has_shadow: bool,pub shadow: Canvas2DShadow,}-ffi_bytes_fields!(Canvas2DCompositing {+display_list_record_fields!(Canvas2DCompositing {filter,has_filter,- global_alpha,+ global_alpha = 1.0,compositing_and_blending_operator,has_shadow,shadow@@ -1798,7 +1803,7 @@ pub struct Canvas2DFillPath {pub winding_rule: WindingRule,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DFillPath {+display_list_record_fields!(Canvas2DFillPath {path_data,paint,winding_rule,@@ -1822,7 +1827,7 @@ pub struct Canvas2DStrokePath {pub dash_offset: f32,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DStrokePath {+display_list_record_fields!(Canvas2DStrokePath {path_data,paint,thickness,@@ -1845,7 +1850,7 @@ pub struct Canvas2DGlyphRun {pub font_id: FontResourceId,pub glyph_count: u64,}-ffi_bytes_fields!(Canvas2DGlyphRun { font_id, glyph_count });+display_list_record_fields!(Canvas2DGlyphRun { font_id, glyph_count });// The glyphs of a text, positioned relative to the translation, with the top of the line box at the glyph position.// The text is a single draw, so that its runs of different fonts share one shadow and one composite. The horizontal@@ -1860,11 +1865,11 @@ pub struct Canvas2DDrawGlyphRuns {pub paint: Canvas2DPaint,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DDrawGlyphRuns {+display_list_record_fields!(Canvas2DDrawGlyphRuns {runs,glyphs,translation,- horizontal_scale,+ horizontal_scale = 1.0,paint,compositing});@@ -1879,7 +1884,7 @@ pub struct Canvas2DClearRect {pub rect: FloatRect,pub color: Color,}-ffi_bytes_fields!(Canvas2DClearRect { rect, color });+display_list_record_fields!(Canvas2DClearRect { rect, color });impl DisplayListCommand for Canvas2DClearRect {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DClearRect;@@ -1894,7 +1899,7 @@ pub struct Canvas2DDrawImageFrame {pub scaling_mode: ScalingMode,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DDrawImageFrame {+display_list_record_fields!(Canvas2DDrawImageFrame {frame_id,dst_rect,src_rect,@@ -1916,7 +1921,7 @@ pub struct Canvas2DDrawCanvas {pub scaling_mode: ScalingMode,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DDrawCanvas {+display_list_record_fields!(Canvas2DDrawCanvas {source_canvas_id,dst_rect,src_rect,@@ -1939,7 +1944,7 @@ pub struct Canvas2DDrawVideoFrame {pub scaling_mode: ScalingMode,pub compositing: Canvas2DCompositing,}-ffi_bytes_fields!(Canvas2DDrawVideoFrame {+display_list_record_fields!(Canvas2DDrawVideoFrame {video_sink_handle,generation,dst_rect,@@ -1957,7 +1962,7 @@ impl DisplayListCommand for Canvas2DDrawVideoFrame {pub struct Canvas2DSetTransform {pub transform: AffineTransform,}-ffi_bytes_fields!(Canvas2DSetTransform { transform });+display_list_record_fields!(Canvas2DSetTransform { transform });impl DisplayListCommand for Canvas2DSetTransform {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DSetTransform;@@ -1970,7 +1975,7 @@ impl DisplayListCommand for Canvas2DSetTransform {pub struct Canvas2DSave {pub padding: u32,}-ffi_bytes_fields!(Canvas2DSave { padding });+display_list_record_fields!(Canvas2DSave { padding });impl DisplayListCommand for Canvas2DSave {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DSave;@@ -1981,7 +1986,7 @@ impl DisplayListCommand for Canvas2DSave {pub struct Canvas2DRestore {pub padding: u32,}-ffi_bytes_fields!(Canvas2DRestore { padding });+display_list_record_fields!(Canvas2DRestore { padding });impl DisplayListCommand for Canvas2DRestore {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DRestore;@@ -1993,7 +1998,7 @@ pub struct Canvas2DClipPath {pub path_data: DisplayListDataSpan,pub winding_rule: WindingRule,}-ffi_bytes_fields!(Canvas2DClipPath {+display_list_record_fields!(Canvas2DClipPath {path_data,winding_rule});@@ -2008,7 +2013,7 @@ impl DisplayListCommand for Canvas2DClipPath {pub struct Canvas2DReset {pub padding: u32,}-ffi_bytes_fields!(Canvas2DReset { padding });+display_list_record_fields!(Canvas2DReset { padding });impl DisplayListCommand for Canvas2DReset {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DReset;@@ -2020,7 +2025,7 @@ impl DisplayListCommand for Canvas2DReset {pub struct Canvas2DClearCanvas {pub color: Color,}-ffi_bytes_fields!(Canvas2DClearCanvas { color });+display_list_record_fields!(Canvas2DClearCanvas { color });impl DisplayListCommand for Canvas2DClearCanvas {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DClearCanvas;@@ -2034,7 +2039,7 @@ pub struct Canvas2DPutImageFrame {pub frame_id: ImageFrameResourceId,pub position: IntPoint,}-ffi_bytes_fields!(Canvas2DPutImageFrame { frame_id, position });+display_list_record_fields!(Canvas2DPutImageFrame { frame_id, position });impl DisplayListCommand for Canvas2DPutImageFrame {const COMMAND_TYPE: DisplayListCommandType = DisplayListCommandType::Canvas2DPutImageFrame;diff --git a/Libraries/LibCompositing/Rust/src/display_list/mod.rs b/Libraries/LibCompositing/Rust/src/display_list/mod.rsindex 830ad700782..74d7fcafd1e 100644--- a/Libraries/LibCompositing/Rust/src/display_list/mod.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/mod.rs@@ -18,6 +18,7 @@ pub mod ffi_bytes;pub mod ids;pub mod layers;pub mod nested_records;+pub mod record_fields;pub mod replay;pub mod storage;pub mod summary;diff --git a/Libraries/LibCompositing/Rust/src/display_list/record_fields.rs b/Libraries/LibCompositing/Rust/src/display_list/record_fields.rsnew file mode 100644index 00000000000..6e6453939e6--- /dev/null+++ b/Libraries/LibCompositing/Rust/src/display_list/record_fields.rs@@ -0,0 +1,388 @@+/*+ * Copyright (c) 2026-present, the Ladybird developers.+ *+ * SPDX-License-Identifier: BSD-2-Clause+ */++//! Every field of a display list command, by name, with its value, as the display list dump lists them. The command+//! structs list their fields once, for both their bytes and this, and a list that leaves out a field does not compile.++use super::builder::read_command;+use super::commands::*;+use libgfx_rust::*;++#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]+pub enum ResourceKind {+ Font,+ ImageFrame,+ VideoSink,+ VectorImage,+ Canvas,+ CompositorContext,+}++/// The value of one field, as a dump reads it. A span names bytes of the command's payload, which only the reader of+/// the payload can tell the meaning of by the field's name.+#[derive(Clone, Copy)]+pub enum RecordFieldValue<'a> {+ Bool(bool),+ Integer(i64),+ Float(f32),+ Double(f64),+ Color(Color),+ IntPoint(IntPoint),+ FloatPoint(FloatPoint),+ IntSize(IntSize),+ FloatSize(FloatSize),+ IntRect(IntRect),+ FloatRect(FloatRect),+ CornerRadii(CornerRadii),+ AffineTransform(AffineTransform),+ Enum(&'a dyn std::fmt::Debug),+ SpatialNode(SpatialNodeIndex),+ EffectNode(EffectNodeIndex),+ Resource(ResourceKind, u64),+ Span(DisplayListDataSpan),+ GradientColorStops(DisplayListGradientColorStops),+ Fields(&'a dyn RecordFields),+}++pub trait RecordField {+ fn record_field_value(&self) -> RecordFieldValue<'_>;+ /// Whether the value is the one a field of its type holds when it says nothing, which a dump leaves out.+ fn holds_neutral_value(&self) -> bool;+}++pub trait RecordFields {+ /// Hands `visit` each field in declaration order: its name, its value and whether that is the field's neutral value.+ fn visit_record_fields(&self, visit: &mut dyn FnMut(&'static str, RecordFieldValue<'_>, bool));+}++/// Lists the fields of a command struct, or of a struct a command holds, for both its bytes and its dump. A field whose+/// neutral value is not the one of its type names it after `=`.+#[macro_export]+macro_rules! display_list_record_fields {+ ($name:ident { $($field:ident $(= $neutral:expr)?),* $(,)? }) => {+ $crate::ffi_bytes_fields!($name { $($field),* });++ impl $crate::display_list::record_fields::RecordFields for $name {+ fn visit_record_fields(+ &self,+ visit: &mut dyn FnMut(&'static str, $crate::display_list::record_fields::RecordFieldValue<'_>, bool),+ ) {+ let Self { $($field),* } = self;+ $(+ visit(+ stringify!($field),+ $crate::display_list::record_fields::RecordField::record_field_value($field),+ $crate::display_list_field_holds_neutral_value!($field $(, $neutral)?),+ );+ )*+ }+ }+ };+}++#[doc(hidden)]+#[macro_export]+macro_rules! display_list_field_holds_neutral_value {+ ($field:ident) => {+ $crate::display_list::record_fields::RecordField::holds_neutral_value($field)+ };+ ($field:ident, $neutral:expr) => {+ *$field == $neutral+ };+}++macro_rules! record_field_via {+ ($($type:ty => |$value:ident| $field_value:expr, neutral: |$neutral_value:ident| $neutral:expr;)+) => {+ $(impl RecordField for $type {+ fn record_field_value(&self) -> RecordFieldValue<'_> {+ let $value = self;+ $field_value+ }+ fn holds_neutral_value(&self) -> bool {+ let $neutral_value = self;+ $neutral+ }+ })++ };+}++record_field_via! {+ bool => |value| RecordFieldValue::Bool(*value), neutral: |value| !*value;+ u8 => |value| RecordFieldValue::Integer(i64::from(*value)), neutral: |value| *value == 0;+ i32 => |value| RecordFieldValue::Integer(i64::from(*value)), neutral: |value| *value == 0;+ u32 => |value| RecordFieldValue::Integer(i64::from(*value)), neutral: |value| *value == 0;+ i64 => |value| RecordFieldValue::Integer(*value), neutral: |value| *value == 0;+ u64 => |value| RecordFieldValue::Integer(*value as i64), neutral: |value| *value == 0;+ f32 => |value| RecordFieldValue::Float(*value), neutral: |value| *value == 0.0;+ f64 => |value| RecordFieldValue::Double(*value), neutral: |value| *value == 0.0;+ // Transparent is a color that is painted, as the fills that trigger filters or carry animated backgrounds are.+ Color => |value| RecordFieldValue::Color(*value), neutral: |_value| false;+ IntPoint => |value| RecordFieldValue::IntPoint(*value), neutral: |value| *value == IntPoint::default();+ FloatPoint => |value| RecordFieldValue::FloatPoint(*value), neutral: |value| *value == FloatPoint::default();+ IntSize => |value| RecordFieldValue::IntSize(*value), neutral: |value| *value == IntSize::default();+ FloatSize => |value| RecordFieldValue::FloatSize(*value), neutral: |value| *value == FloatSize::default();+ IntRect => |value| RecordFieldValue::IntRect(*value), neutral: |value| *value == IntRect::default();+ FloatRect => |value| RecordFieldValue::FloatRect(*value), neutral: |value| *value == FloatRect::default();+ CornerRadii => |value| RecordFieldValue::CornerRadii(*value), neutral: |value| !value.has_any_radius();+ AffineTransform => |value| RecordFieldValue::AffineTransform(*value), neutral: |value| value.is_identity();+ SpatialNodeIndex => |value| RecordFieldValue::SpatialNode(*value), neutral: |_value| false;+ EffectNodeIndex => |value| RecordFieldValue::EffectNode(*value), neutral: |value| value.is_none();+ FontResourceId => |value| RecordFieldValue::Resource(ResourceKind::Font, value.0), neutral: |_value| false;+ ImageFrameResourceId => |value| RecordFieldValue::Resource(ResourceKind::ImageFrame, value.0), neutral: |_value| false;+ VideoSinkHandle => |value| RecordFieldValue::Resource(ResourceKind::VideoSink, value.0), neutral: |_value| false;+ DisplayListResourceId => |value| RecordFieldValue::Resource(ResourceKind::VectorImage, value.0), neutral: |_value| false;+ CanvasId => |value| RecordFieldValue::Resource(ResourceKind::Canvas, value.0), neutral: |_value| false;+ CompositorContextId => |value| RecordFieldValue::Resource(ResourceKind::CompositorContext, value.0), neutral: |_value| false;+ DisplayListDataSpan => |value| RecordFieldValue::Span(*value), neutral: |value| value.is_empty();+}++macro_rules! record_field_enum {+ ($($type:ty),+ $(,)?) => {+ $(impl RecordField for $type {+ fn record_field_value(&self) -> RecordFieldValue<'_> {+ RecordFieldValue::Enum(self)+ }+ fn holds_neutral_value(&self) -> bool {+ *self == <$type>::default()+ }+ })++ };+}++record_field_enum!(+ CapStyle,+ ClipMode,+ CompositingAndBlendingOperator,+ InterpolationColorSpace,+ JoinStyle,+ LineStyle,+ MaskKind,+ Orientation,+ ScalingMode,+ ShouldAntiAlias,+ WindingRule,+ GradientInterpolationType,+ RectangularColorSpace,+ PolarColorSpace,+ HueInterpolationMethod,+ PathPaintKind,+ DisplayListPaintStyleType,+ DisplayListGradientSpreadMethod,+ Canvas2DPaintKind,+ Canvas2DPatternRepetition,+);++// The optional values hold their value or nothing, which is neutral.+macro_rules! record_field_optional {+ ($($type:ty),+ $(,)?) => {+ $(impl RecordField for $type {+ fn record_field_value(&self) -> RecordFieldValue<'_> {+ let Self { value, has_value: _ } = self;+ value.record_field_value()+ }+ fn holds_neutral_value(&self) -> bool {+ !self.has_value+ }+ })++ };+}++record_field_optional!(+ OptionalFloatRect,+ OptionalColor,+ OptionalU32,+ OptionalF32,+ OptionalAffineTransform+);++impl RecordField for DisplayListGradientColorStops {+ fn record_field_value(&self) -> RecordFieldValue<'_> {+ let Self {+ colors: _,+ positions: _,+ repeating: _,+ } = self;+ RecordFieldValue::GradientColorStops(*self)+ }+ fn holds_neutral_value(&self) -> bool {+ self.colors.is_empty() && self.positions.is_empty() && !self.repeating+ }+}++macro_rules! record_field_with_fields {+ ($($type:ty),+ $(,)?) => {+ $(impl RecordField for $type {+ fn record_field_value(&self) -> RecordFieldValue<'_> {+ RecordFieldValue::Fields(self)+ }+ fn holds_neutral_value(&self) -> bool {+ let mut holds_neutral_values = true;+ self.visit_record_fields(&mut |_, _, holds_neutral_value| holds_neutral_values &= holds_neutral_value);+ holds_neutral_values+ }+ })++ };+}++record_field_with_fields!(+ GradientInterpolationMethod,+ DisplayListGradientPaintStyle,+ DisplayListPaintStyle,+ Repeat,+ TextShadowLayer,+ Canvas2DPaint,+ Canvas2DShadow,+ Canvas2DCompositing,+);++impl RecordFields for GradientInterpolationMethod {+ fn visit_record_fields(&self, visit: &mut dyn FnMut(&'static str, RecordFieldValue<'_>, bool)) {+ let Self {+ interpolation_type,+ rectangular_color_space,+ polar_color_space,+ hue_interpolation_method,+ } = self;+ visit(+ "interpolation_type",+ interpolation_type.record_field_value(),+ interpolation_type.holds_neutral_value(),+ );+ visit(+ "rectangular_color_space",+ rectangular_color_space.record_field_value(),+ rectangular_color_space.holds_neutral_value(),+ );+ visit(+ "polar_color_space",+ polar_color_space.record_field_value(),+ polar_color_space.holds_neutral_value(),+ );+ visit(+ "hue_interpolation_method",+ hue_interpolation_method.record_field_value(),+ hue_interpolation_method.holds_neutral_value(),+ );+ }+}++/// Hands `visit` the fields of the command of `command_type` whose payload starts at `payload`.+pub fn visit_command_fields(+ command_type: DisplayListCommandType,+ payload: &[u8],+ visit: &mut dyn FnMut(&'static str, RecordFieldValue<'_>, bool),+) {+ fn of<C: DisplayListCommand>(payload: &[u8], visit: &mut dyn FnMut(&'static str, RecordFieldValue<'_>, bool)) {+ read_command::<C>(payload).visit_record_fields(visit);+ }+ use DisplayListCommandType as T;+ match command_type {+ T::DrawGlyphRun => of::<DrawGlyphRun>(payload, visit),+ T::FillRect => of::<FillRect>(payload, visit),+ T::PaintCaret => of::<PaintCaret>(payload, visit),+ T::DrawScaledDecodedImageFrame => of::<DrawScaledDecodedImageFrame>(payload, visit),+ T::DrawRepeatedDecodedImageFrame => of::<DrawRepeatedDecodedImageFrame>(payload, visit),+ T::DrawRepeatedTile => of::<DrawRepeatedTile>(payload, visit),+ T::DrawTiledDecodedImageFrame => of::<DrawTiledDecodedImageFrame>(payload, visit),+ T::DrawCompositedContext => of::<DrawCompositedContext>(payload, visit),+ T::DrawCanvas => of::<DrawCanvas>(payload, visit),+ T::DrawVideoFrame => of::<DrawVideoFrame>(payload, visit),+ T::PaintLinearGradient => of::<PaintLinearGradient>(payload, visit),+ T::PaintRadialGradient => of::<PaintRadialGradient>(payload, visit),+ T::PaintConicGradient => of::<PaintConicGradient>(payload, visit),+ T::PaintOuterBoxShadow => of::<PaintOuterBoxShadow>(payload, visit),+ T::PaintInnerBoxShadow => of::<PaintInnerBoxShadow>(payload, visit),+ T::PaintPathBoxShadow => of::<PaintPathBoxShadow>(payload, visit),+ T::PaintTextShadow => of::<PaintTextShadow>(payload, visit),+ T::FillRectWithRoundedCorners => of::<FillRectWithRoundedCorners>(payload, visit),+ T::FillRoundedRectRing => of::<FillRoundedRectRing>(payload, visit),+ T::FillPath => of::<FillPath>(payload, visit),+ T::StrokePath => of::<StrokePath>(payload, visit),+ T::DrawEllipse => of::<DrawEllipse>(payload, visit),+ T::DrawLine => of::<DrawLine>(payload, visit),+ T::BackdropFilterRegion => of::<BackdropFilterRegion>(payload, visit),+ T::DrawRect => of::<DrawRect>(payload, visit),+ T::PaintVectorImage => of::<PaintVectorImage>(payload, visit),+ T::DrawIsolatedGroup => of::<DrawIsolatedGroup>(payload, visit),+ T::DeclareMaskContent => of::<DeclareMaskContent>(payload, visit),+ T::CompositorWheelHitTestTarget => of::<CompositorWheelHitTestTarget>(payload, visit),+ T::CompositorWheelHitTestTargetWithCornerRadii => {+ of::<CompositorWheelHitTestTargetWithCornerRadii>(payload, visit);+ }+ T::CompositorMainThreadWheelEventRegion => of::<CompositorMainThreadWheelEventRegion>(payload, visit),+ T::CompositorScrollbar => of::<CompositorScrollbar>(payload, visit),+ T::CompositorBlockingWheelEventRegion => of::<CompositorBlockingWheelEventRegion>(payload, visit),+ T::PaintScrollBar => of::<PaintScrollBar>(payload, visit),+ T::CompositorNestedContextWheelRegion => of::<CompositorNestedContextWheelRegion>(payload, visit),+ T::Canvas2DFillPath => of::<Canvas2DFillPath>(payload, visit),+ T::Canvas2DStrokePath => of::<Canvas2DStrokePath>(payload, visit),+ T::Canvas2DDrawGlyphRuns => of::<Canvas2DDrawGlyphRuns>(payload, visit),+ T::Canvas2DClearRect => of::<Canvas2DClearRect>(payload, visit),+ T::Canvas2DDrawImageFrame => of::<Canvas2DDrawImageFrame>(payload, visit),+ T::Canvas2DDrawCanvas => of::<Canvas2DDrawCanvas>(payload, visit),+ T::Canvas2DDrawVideoFrame => of::<Canvas2DDrawVideoFrame>(payload, visit),+ T::Canvas2DSetTransform => of::<Canvas2DSetTransform>(payload, visit),+ T::Canvas2DSave => of::<Canvas2DSave>(payload, visit),+ T::Canvas2DRestore => of::<Canvas2DRestore>(payload, visit),+ T::Canvas2DClipPath => of::<Canvas2DClipPath>(payload, visit),+ T::Canvas2DReset => of::<Canvas2DReset>(payload, visit),+ T::Canvas2DClearCanvas => of::<Canvas2DClearCanvas>(payload, visit),+ T::Canvas2DPutImageFrame => of::<Canvas2DPutImageFrame>(payload, visit),+ }+}++#[cfg(test)]+mod tests {+ use super::*;++ fn visited_fields(fields: &dyn RecordFields) -> Vec<(&'static str, bool)> {+ let mut visited = Vec::new();+ fields.visit_record_fields(&mut |name, _, holds_neutral_value| visited.push((name, holds_neutral_value)));+ visited+ }++ #[test]+ fn a_command_lists_every_field_in_declaration_order_with_its_neutral_value() {+ let fill = FillRect {+ rect: IntRect::new(1, 2, 3, 4),+ color: Color::TRANSPARENT,+ compositing_and_blending_operator: CompositingAndBlendingOperator::Normal,+ background_color_animation_effect: EffectNodeIndex::NONE,+ };+ assert_eq!(+ visited_fields(&fill),+ [+ ("rect", false),+ ("color", false),+ ("compositing_and_blending_operator", true),+ ("background_color_animation_effect", true),+ ]+ );+ }++ #[test]+ fn a_field_with_a_neutral_value_of_its_own_is_neutral_only_at_that_value() {+ let mut group = DrawIsolatedGroup {+ clip_rect: FloatRect::default(),+ content: DisplayListDataSpan::default(),+ mask: DisplayListDataSpan::default(),+ filter: DisplayListDataSpan::default(),+ opacity: 1.0,+ compositing_and_blending_operator: CompositingAndBlendingOperator::Multiply,+ mask_kind: MaskKind::Alpha,+ };+ let opacity_is_neutral = |group: &DrawIsolatedGroup| {+ visited_fields(group)+ .into_iter()+ .find(|(name, _)| *name == "opacity")+ .unwrap()+ .1+ };+ assert!(opacity_is_neutral(&group));+ group.opacity = 0.0;+ assert!(!opacity_is_neutral(&group));+ }+}diff --git a/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs b/Libraries/LibWeb/Rust/src/painting/display_list/dump.rsindex 6a1d53fe0bb..b74fdf113e9 100644--- a/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs+++ b/Libraries/LibWeb/Rust/src/painting/display_list/dump.rs@@ -6,18 +6,18 @@use super::builder::{HEADER_SIZE, for_each_command, inline_transform_of, read_command};use super::commands::*;+use super::dump_format::{+ DumpNames, DumpValue, dumped_record_field, path_description, push_clip_radii, push_fields, push_value,+};use super::effect_clip_plan::EffectClipPlan;use super::layers::{LayerPlan, LayerPlanInputs, build_layer_plan};use super::nested_records::{NestedRecordsRole, for_each_nested_record_span, span_bytes};+use super::record_fields::visit_command_fields;use super::storage::DisplayListStorage;use super::summary::{LiveContent, summarize};-use crate::css::color_resolution::format_to_8bit_compatible;use crate::layout::LayoutNodeArena;use crate::layout::node_data::NodeSlotId;-use crate::painting::dump::{- format_float_like_ak, push_affine_transform, push_float_like_ak, push_float_point, push_float_rect,- push_float_size, push_int_point, push_int_rect, push_int_size,-};+use crate::painting::dump::{push_affine_transform, push_float_rect};use crate::painting::paint_read::PaintRead;use crate::painting::vector_image_records::display_list_holding_vector_image_records;use crate::painting::visual_context::VisualContextTree;@@ -26,10 +26,7 @@ use crate::painting::visual_context::dump::SlotKind;use crate::stage::MainThread;use libcompositing_rust::visual_context::CompositorScrollTable;use libgfx_rust::path::Path;-use libgfx_rust::{- Color, CompositingAndBlendingOperator, CornerRadii, FloatPoint, FloatRect, FloatSize, IntPoint, IntRect, IntSize,- LineStyle, ScalingMode,-};+use libgfx_rust::{FloatPoint, FloatRect, IntRect};use std::collections::HashMap;use std::ffi::c_void;use std::fmt::Write;@@ -214,11 +211,12 @@ pub unsafe extern "C" fn painting_dump(owners})};- let mut output = visual_context_tree.dump_nodes_reachable_from_runs(command_runs, |kind, index| {+ let mut names = DumpNames::default();+ let mut output = visual_context_tree.dump_nodes_reachable_from_runs(command_runs, &mut names, |kind, index| {let owner = owners.owner(kind, index)?;Some(callbacks.debug_description(&main_thread, owner))});- dump_compositor_scroll_table(&mut output, visual_context_tree.compositor_scroll_table());+ dump_compositor_scroll_table(&mut output, &mut names, visual_context_tree.compositor_scroll_table());let layer_plan = dump_layers_if_every_canvas_and_video_kept_updating(&mut output,tape,@@ -228,11 +226,13 @@ pub unsafe extern "C" fn painting_dump(device_viewport_rect,);output.push_str("\nDisplayList:\n");+ let mut records = RecordDump {+ output: &mut output,+ names: &mut names,+ };match layer_plan {- Some(layer_plan) => {- dump_top_level_commands_with_their_layers(&main_thread, &mut output, &display_list, &layer_plan);- }- None => dump_commands(&main_thread, &mut output, &display_list, 0),+ Some(layer_plan) => records.dump_top_level_commands_with_their_layers(&display_list, &layer_plan),+ None => records.dump_commands(&display_list),}callbacks.append_text(&main_thread, &output);}@@ -241,19 +241,65 @@ fn push_indent(output: &mut String, indent: usize) {output.extend(std::iter::repeat_n(' ', indent * 2));}+fn css_pixel_point(point: crate::layout::used_values::FfiCssPixelPoint) -> FloatPoint {+ FloatPoint {+ x: point.x.to_float(),+ y: point.y.to_float(),+ }+}++fn css_pixel_rect(rect: crate::layout::used_values::FfiCssPixelRect) -> FloatRect {+ FloatRect::new(+ rect.x.to_float(),+ rect.y.to_float(),+ rect.width.to_float(),+ rect.height.to_float(),+ )+}++fn push_field(output: &mut String, names: &mut DumpNames, name: &str, value: DumpValue) {+ write!(output, " {name}=").unwrap();+ push_value(output, &value, names);+}+// Lists every row, unlike the tree section above it, which shows only the nodes that command runs reach.-fn dump_compositor_scroll_table(output: &mut String, table: &CompositorScrollTable) {+fn dump_compositor_scroll_table(output: &mut String, names: &mut DumpNames, table: &CompositorScrollTable) {if table.nodes.is_empty() {return;}output.push_str("\nScrollNodes:\n");for node in table.nodes.iter() {output.push_str("ScrollNode");- write_field(output, "scroll_node_index", node.scroll_node_index);- write_field(output, "parent_scroll_node_index", node.parent_scroll_node_index);- write_field(output, "scrollport_rect", node.scrollport_rect);- write_field(output, "min_scroll_offset", node.min_scroll_offset);- write_field(output, "max_scroll_offset", node.max_scroll_offset);+ push_field(+ output,+ names,+ "scroll_node_index",+ DumpValue::SpatialNode(node.scroll_node_index),+ );+ push_field(+ output,+ names,+ "parent_scroll_node_index",+ DumpValue::SpatialNode(node.parent_scroll_node_index),+ );+ push_field(+ output,+ names,+ "scrollport_rect",+ DumpValue::IntRect(node.scrollport_rect),+ );+ push_field(+ output,+ names,+ "min_scroll_offset",+ DumpValue::FloatPoint(node.min_scroll_offset),+ );+ push_field(+ output,+ names,+ "max_scroll_offset",+ DumpValue::FloatPoint(node.max_scroll_offset),+ );writeln!(output, " is_viewport={}", node.is_viewport).unwrap();let Ok(container_index) = table.snap_containers@@ -264,9 +310,24 @@ fn dump_compositor_scroll_table(output: &mut String, table: &CompositorScrollTablet container = &table.snap_containers[container_index];push_indent(output, 1);output.push_str("SnapContainer");- write_field(output, "snapport", container.snapport);- write_field(output, "min_scroll_offset", container.min_scroll_offset);- write_field(output, "max_scroll_offset", container.max_scroll_offset);+ push_field(+ output,+ names,+ "snapport",+ DumpValue::FloatRect(css_pixel_rect(container.snapport)),+ );+ push_field(+ output,+ names,+ "min_scroll_offset",+ DumpValue::FloatPoint(css_pixel_point(container.min_scroll_offset)),+ );+ push_field(+ output,+ names,+ "max_scroll_offset",+ DumpValue::FloatPoint(css_pixel_point(container.max_scroll_offset)),+ );writeln!(output," strictness={} snaps_x={} snaps_y={} horizontal_writing_mode={}",@@ -278,7 +339,7 @@ fn dump_compositor_scroll_table(output: &mut String, table: &CompositorScrollTabpush_indent(output, 2);output.push_str("SnapArea");write!(output, " pseudo_element_type={}", area.pseudo_element_type).unwrap();- write_field(output, "rect", area.rect);+ push_field(output, names, "rect", DumpValue::FloatRect(css_pixel_rect(area.rect)));writeln!(output," align_x={} align_y={} always_stop={}",@@ -289,14 +350,6 @@ fn dump_compositor_scroll_table(output: &mut String, table: &CompositorScrollTab}}-fn dump_commands(main_thread: &MainThread, output: &mut String, display_list: &DisplayListStorage, base_indent: usize) {- let (bytes, command_runs) = (display_list.bytes(), display_list.command_runs());- for run in command_runs {- let run_bytes = &bytes[run.offset as usize..(run.offset + run.size) as usize];- dump_command_bytes(main_thread, output, run_bytes, run.context, base_indent);- }-}-// A list that draws no canvas, video or nested context gets no section.fn dump_layers_if_every_canvas_and_video_kept_updating(output: &mut String,@@ -342,482 +395,105 @@ fn dump_layers_if_every_canvas_and_video_kept_updating(}}-// Each top-level command starts with the layer it draws into. The records nested in it draw into the same layer.-fn dump_top_level_commands_with_their_layers(- main_thread: &MainThread,- output: &mut String,- display_list: &DisplayListStorage,- layer_plan: &LayerPlan,-) {- let (bytes, command_runs) = (display_list.bytes(), display_list.command_runs());- for run in command_runs {- let run_bytes = &bytes[run.offset as usize..(run.offset + run.size) as usize];- for_each_command(run_bytes, |_, offset_in_run, payload| {- let layer_label = format!("L{} ", layer_plan.layer_of_record(run.offset + offset_in_run as u32));- let record_bytes = &run_bytes[offset_in_run..offset_in_run + HEADER_SIZE + payload.len()];- let record_dump_start = output.len();- dump_command_bytes(main_thread, output, record_bytes, run.context, 0);- let record_dump = output.split_off(record_dump_start);- for (line_index, line) in record_dump.split_inclusive('\n').enumerate() {- if line_index == 0 {- output.push_str(&layer_label);- } else {- output.extend(std::iter::repeat_n(' ', layer_label.len()));- }- output.push_str(line);- }- });- }+/// Where the DisplayList section is written, with the names it gives what the records name.+struct RecordDump<'a> {+ output: &'a mut String,+ names: &'a mut DumpNames,}-fn dump_command_bytes(- main_thread: &MainThread,- output: &mut String,- command_bytes: &[u8],- context: ContextRef,- base_indent: usize,-) {- for_each_command(command_bytes, |header, _, payload| {- push_indent(output, base_indent);- write!(output, "{}@", header.command_type.name()).unwrap();- write_context(output, context);- dump_command(output, header.command_type, payload);- if header.inline_clip_count > 0 {- dump_inline_clips(output, header, payload);- }- if let Some(transform) = inline_transform_of(header, payload) {- output.push_str(" inline_transform=");- push_affine_transform(output, transform);+impl RecordDump<'_> {+ fn dump_commands(&mut self, display_list: &DisplayListStorage) {+ let (bytes, command_runs) = (display_list.bytes(), display_list.command_runs());+ for run in command_runs {+ let run_bytes = &bytes[run.offset as usize..(run.offset + run.size) as usize];+ self.dump_command_bytes(run_bytes, run.context, 0);}- output.push('\n');-- dump_records_inside(- main_thread,- output,- header.command_type,- payload,- context,- base_indent + 1,- );- });-}+ }-fn dump_records_inside(- main_thread: &MainThread,- output: &mut String,- command_type: DisplayListCommandType,- payload: &[u8],- context: ContextRef,- indent: usize,-) {- for_each_nested_record_span(command_type, payload, |role, span| {- let label = match role {- NestedRecordsRole::IsolatedGroupMask => Some("Mask:\n"),- NestedRecordsRole::PatternTile => Some("PatternTile:\n"),- NestedRecordsRole::IsolatedGroupContent- | NestedRecordsRole::RepeatedTile- | NestedRecordsRole::MaskContent- | NestedRecordsRole::VectorImage => None,- };- let mut nested_indent = indent;- if let Some(label) = label {- push_indent(output, indent);- output.push_str(label);- nested_indent += 1;+ // Each top-level command starts with the layer it draws into. The records nested in it draw into the same layer.+ fn dump_top_level_commands_with_their_layers(&mut self, display_list: &DisplayListStorage, layer_plan: &LayerPlan) {+ let (bytes, command_runs) = (display_list.bytes(), display_list.command_runs());+ for run in command_runs {+ let run_bytes = &bytes[run.offset as usize..(run.offset + run.size) as usize];+ for_each_command(run_bytes, |_, offset_in_run, payload| {+ let layer_label = format!("L{} ", layer_plan.layer_of_record(run.offset + offset_in_run as u32));+ let record_bytes = &run_bytes[offset_in_run..offset_in_run + HEADER_SIZE + payload.len()];+ let record_dump_start = self.output.len();+ self.dump_command_bytes(record_bytes, run.context, 0);+ let record_dump = self.output.split_off(record_dump_start);+ for (line_index, line) in record_dump.split_inclusive('\n').enumerate() {+ if line_index == 0 {+ self.output.push_str(&layer_label);+ } else {+ self.output.extend(std::iter::repeat_n(' ', layer_label.len()));+ }+ self.output.push_str(line);+ }+ });}- dump_command_bytes(main_thread, output, span_bytes(payload, span), context, nested_indent);- });-}--trait DumpValue {- fn push_dump(self, output: &mut String);-}+ }-macro_rules! dump_value_via {- ($($type:ty => $push:expr),+ $(,)?) => {- $(impl DumpValue for $type {- fn push_dump(self, output: &mut String) {- $push(output, self);+ fn dump_command_bytes(&mut self, command_bytes: &[u8], context: ContextRef, base_indent: usize) {+ for_each_command(command_bytes, |header, _, payload| {+ push_indent(self.output, base_indent);+ write!(self.output, "{}@", header.command_type.name()).unwrap();+ write_context(self.output, self.names, context);+ let fields = command_fields(header.command_type, payload);+ push_fields(self.output, &fields, self.names);+ if header.inline_clip_count > 0 {+ dump_inline_clips(self.output, self.names, header, payload);}- })+- };-}+ if let Some(transform) = inline_transform_of(header, payload) {+ self.output.push_str(" inline_transform=");+ push_affine_transform(self.output, transform);+ }+ self.output.push('\n');-impl DumpValue for crate::layout::used_values::FfiCssPixelPoint {- fn push_dump(self, output: &mut String) {- push_float_point(- output,- FloatPoint {- x: self.x.to_float(),- y: self.y.to_float(),- },- );+ self.dump_records_inside(header.command_type, payload, context, base_indent + 1);+ });}-}-impl DumpValue for crate::layout::used_values::FfiCssPixelRect {- fn push_dump(self, output: &mut String) {- push_float_rect(- output,- FloatRect::new(- self.x.to_float(),- self.y.to_float(),- self.width.to_float(),- self.height.to_float(),- ),- );+ fn dump_records_inside(+ &mut self,+ command_type: DisplayListCommandType,+ payload: &[u8],+ context: ContextRef,+ indent: usize,+ ) {+ for_each_nested_record_span(command_type, payload, |role, span| {+ let label = match role {+ NestedRecordsRole::IsolatedGroupMask => Some("Mask:\n"),+ NestedRecordsRole::PatternTile => Some("PatternTile:\n"),+ NestedRecordsRole::IsolatedGroupContent+ | NestedRecordsRole::RepeatedTile+ | NestedRecordsRole::MaskContent+ | NestedRecordsRole::VectorImage => None,+ };+ let mut nested_indent = indent;+ if let Some(label) = label {+ push_indent(self.output, indent);+ self.output.push_str(label);+ nested_indent += 1;+ }+ self.dump_command_bytes(span_bytes(payload, span), context, nested_indent);+ });}}-dump_value_via! {- IntPoint => push_int_point,- FloatPoint => push_float_point,- IntSize => push_int_size,- FloatSize => push_float_size,- IntRect => push_int_rect,- FloatRect => push_float_rect,- f32 => push_float_like_ak,- Color => write_color,- SpatialNodeIndex => write_spatial_node_index,-}--fn write_spatial_node_index(output: &mut String, index: SpatialNodeIndex) {- write!(output, "s{}", index.0).unwrap();-}--fn write_field(output: &mut String, label: &str, value: impl DumpValue) {- output.push(' ');- output.push_str(label);- output.push('=');- value.push_dump(output);-}--fn dump_command(output: &mut String, command_type: DisplayListCommandType, payload: &[u8]) {- match command_type {- DisplayListCommandType::DrawGlyphRun => {- let command = read_command::<DrawGlyphRun>(payload);- if command.stroke_width > 0.0 {- write_field(output, "stroke_width", command.stroke_width);- }- write_field(output, "rect", command.rect);- write_field(output, "translation", command.translation);- write_field(output, "color", command.color);- }- DisplayListCommandType::FillRect => {- let command = read_command::<FillRect>(payload);- write_field(output, "rect", command.rect);- write_field(output, "color", command.color);- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::PaintCaret => {- let command = read_command::<PaintCaret>(payload);- write_field(output, "rect", command.rect);- write_field(output, "color", command.color);- write!(output, " should_blink={}", command.should_blink).unwrap();- }- DisplayListCommandType::DrawScaledDecodedImageFrame => {- let command = read_command::<DrawScaledDecodedImageFrame>(payload);- write_field(output, "dst_rect", command.dst_rect);- if let Some(rect) = command.src_rect.get() {- write_field(output, "src_rect", rect);- }- write_blend_mode(output, command.compositing_and_blending_operator);- if let Some(color) = command.isolated_backdrop_color.get() {- write_field(output, "isolated_backdrop_color", color);- }+fn command_fields(command_type: DisplayListCommandType, payload: &[u8]) -> Vec<(&'static str, DumpValue)> {+ let mut fields = Vec::new();+ visit_command_fields(command_type, payload, &mut |name, value, holds_neutral_value| {+ if holds_neutral_value {+ return;}- DisplayListCommandType::DrawRepeatedDecodedImageFrame => {- let command = read_command::<DrawRepeatedDecodedImageFrame>(payload);- write_field(output, "dst_rect", command.dst_rect);- write_field(output, "clip_rect", command.clip_rect);- write_blend_mode(output, command.compositing_and_blending_operator);- if let Some(color) = command.isolated_backdrop_color.get() {- write_field(output, "isolated_backdrop_color", color);- }+ if let Some(name_and_value) = dumped_record_field(name, value, payload) {+ fields.push(name_and_value);}- DisplayListCommandType::DrawRepeatedTile => {- let command = read_command::<DrawRepeatedTile>(payload);- write_field(output, "dst_rect", command.dst_rect);- write_field(output, "clip_rect", command.clip_rect);- write_field(output, "tile_size", command.tile_size);- write_field(output, "tile_step", command.tile_step);- write!(output, " scaling_mode={}", scaling_mode_name(command.scaling_mode)).unwrap();- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::DrawTiledDecodedImageFrame => {- let command = read_command::<DrawTiledDecodedImageFrame>(payload);- write_field(output, "tile_rect", command.tile_rect);- write_field(output, "clip_rect", command.clip_rect);- write_field(output, "src_rect", command.src_rect);- write_field(output, "tile_step", command.tile_step);- if let Some(count) = command.tile_count_x.get() {- write!(output, " tile_count_x={count}").unwrap();- } else {- output.push_str(" tile_count_x=repeat");- }- if let Some(count) = command.tile_count_y.get() {- write!(output, " tile_count_y={count}").unwrap();- } else {- output.push_str(" tile_count_y=repeat");- }- }- DisplayListCommandType::DrawCompositedContext => {- let command = read_command::<DrawCompositedContext>(payload);- write_field(output, "dst_rect", command.dst_rect);- }- DisplayListCommandType::DrawCanvas => {- let command = read_command::<DrawCanvas>(payload);- write_field(output, "dst_rect", command.dst_rect);- }- DisplayListCommandType::DrawVideoFrame => {- let command = read_command::<DrawVideoFrame>(payload);- write_field(output, "dst_rect", command.dst_rect);- }- DisplayListCommandType::PaintLinearGradient => {- let command = read_command::<PaintLinearGradient>(payload);- write_field(output, "rect", command.gradient_rect);- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::PaintRadialGradient => {- let command = read_command::<PaintRadialGradient>(payload);- write_field(output, "rect", command.rect);- write_field(output, "center", command.center);- write_field(output, "size", command.size);- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::PaintConicGradient => {- let command = read_command::<PaintConicGradient>(payload);- write_field(output, "rect", command.rect);- write_field(output, "position", command.position);- write_field(output, "angle", command.start_angle);- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::PaintOuterBoxShadow => {- let command = read_command::<PaintOuterBoxShadow>(payload);- write_field(output, "content_rect", command.device_content_rect);- write_field(output, "shadow_rect", command.shadow_rect);- write!(output, " blur_radius={}", command.blur_radius).unwrap();- write_field(output, "color", command.color);- }- DisplayListCommandType::PaintInnerBoxShadow => {- let command = read_command::<PaintInnerBoxShadow>(payload);- write_field(output, "content_rect", command.device_content_rect);- write_field(output, "outer_shadow_rect", command.outer_shadow_rect);- write_field(output, "inner_shadow_rect", command.inner_shadow_rect);- write!(output, " blur_radius={}", command.blur_radius).unwrap();- write_field(output, "color", command.color);- }- DisplayListCommandType::PaintPathBoxShadow => {- let command = read_command::<PaintPathBoxShadow>(payload);- write_field(output, "shape_path_bounding_rect", command.shape_path_bounding_rect);- write_field(output, "offset", command.offset);- write!(- output,- " blur_radius={} spread_distance={}",- command.blur_radius, command.spread_distance- )- .unwrap();- write!(output, " inner={}", command.inner).unwrap();- write_field(output, "color", command.color);- }- DisplayListCommandType::PaintTextShadow => {- let command = read_command::<PaintTextShadow>(payload);- write_field(output, "shadows_rect", command.shadows_bounding_rect);- write_field(output, "rect", command.rect);- write_field(output, "translation", command.translation);- let orientation = match command.orientation {- libgfx_rust::Orientation::Horizontal => "Horizontal",- libgfx_rust::Orientation::Vertical => "Vertical",- };- write!(output, " orientation={orientation}").unwrap();- output.push_str(" layers=[");- let (layer_chunks, _) =- span_bytes(payload, command.layers).as_chunks::<{ std::mem::size_of::<TextShadowLayer>() }>();- for (index, layer_bytes) in layer_chunks.iter().enumerate() {- if index > 0 {- output.push_str(", ");- }- let layer = read_command::<TextShadowLayer>(layer_bytes);- output.push_str("offset=");- layer.offset.push_dump(output);- write!(output, " blur_radius={}", layer.blur_radius).unwrap();- write_field(output, "color", layer.color);- }- output.push(']');- }- DisplayListCommandType::FillRectWithRoundedCorners => {- let command = read_command::<FillRectWithRoundedCorners>(payload);- write_field(output, "rect", command.rect);- write_field(output, "color", command.color);- }- DisplayListCommandType::FillRoundedRectRing => {- let command = read_command::<FillRoundedRectRing>(payload);- write_field(output, "rect", command.rect);- write_corner_radii(output, command.corner_radii);- write!(- output,- " widths=[{},{},{},{}]",- command.top_width, command.right_width, command.bottom_width, command.left_width- )- .unwrap();- write_field(output, "color", command.color);- }- DisplayListCommandType::FillPath => {- let command = read_command::<FillPath>(payload);- write_field(output, "path_bounding_rect", command.path_bounding_rect);- write_blend_mode(output, command.compositing_and_blending_operator);- }- DisplayListCommandType::StrokePath => {- let command = read_command::<StrokePath>(payload);- write_field(output, "path_bounding_rect", command.path_bounding_rect);- write_field(output, "thickness", command.thickness);- if command.paint_kind == PathPaintKind::Color {- write_field(output, "color", command.color);- }- if !command.dash_array.is_empty() {- write!(- output,- " dash_array_size={} dash_offset={:.2}",- command.dash_array.size as usize / std::mem::size_of::<f32>(),- command.dash_offset- )- .unwrap();- }- }- DisplayListCommandType::DrawEllipse => {- let command = read_command::<DrawEllipse>(payload);- write_field(output, "rect", command.rect);- write_field(output, "color", command.color);- write!(output, " thickness={}", command.thickness).unwrap();- }- DisplayListCommandType::DrawLine => {- let command = read_command::<DrawLine>(payload);- write_field(output, "from", command.from);- write_field(output, "to", command.to);- write_field(output, "color", command.color);- write!(- output,- " thickness={} style={}",- command.thickness,- line_style_name(command.style)- )- .unwrap();- if command.style != LineStyle::Solid {- write_field(output, "alternate_color", command.alternate_color);- }- }- DisplayListCommandType::BackdropFilterRegion => {- let command = read_command::<BackdropFilterRegion>(payload);- write_field(output, "rect", command.rect);- }- DisplayListCommandType::DrawRect => {- let command = read_command::<DrawRect>(payload);- write_field(output, "rect", command.rect);- write_field(output, "color", command.color);- write!(output, " rough={}", command.rough).unwrap();- }- DisplayListCommandType::PaintVectorImage => {- let command = read_command::<PaintVectorImage>(payload);- write_field(output, "rect", command.rect);- }- DisplayListCommandType::DrawIsolatedGroup => {- let command = read_command::<DrawIsolatedGroup>(payload);- write_field(output, "clip_rect", command.clip_rect);- if command.opacity != 1.0 {- write!(output, " opacity={}", format_float_like_ak(command.opacity)).unwrap();- }- if !command.filter.is_empty() {- output.push_str(" has_filter=true");- }- write_blend_mode(output, command.compositing_and_blending_operator);- if !command.mask.is_empty() {- write!(- output,- " has_mask={}",- if command.mask_kind == libgfx_rust::MaskKind::Luminance {- "luminance"- } else {- "alpha"- }- )- .unwrap();- }- }- DisplayListCommandType::DeclareMaskContent => {- let command = read_command::<DeclareMaskContent>(payload);- write_field(output, "rect", command.rect);- write!(output, " effect=e{}", command.effect.0).unwrap();- }- DisplayListCommandType::CompositorBlockingWheelEventRegion => {- let command = read_command::<CompositorBlockingWheelEventRegion>(payload);- write_field(output, "rect", command.rect);- }- DisplayListCommandType::CompositorWheelHitTestTarget => {- let command = read_command::<CompositorWheelHitTestTarget>(payload);- write_field(output, "target_scroll_node_index", command.target_scroll_node_index);- write_field(output, "rect", command.rect);- }- DisplayListCommandType::CompositorWheelHitTestTargetWithCornerRadii => {- let command = read_command::<CompositorWheelHitTestTargetWithCornerRadii>(payload);- write_field(output, "target_scroll_node_index", command.target_scroll_node_index);- write_field(output, "rect", command.rect);- write_corner_radii(output, command.corner_radii);- }- DisplayListCommandType::CompositorMainThreadWheelEventRegion => {- let command = read_command::<CompositorMainThreadWheelEventRegion>(payload);- write_field(output, "rect", command.rect);- }- DisplayListCommandType::CompositorNestedContextWheelRegion => {- let command = read_command::<CompositorNestedContextWheelRegion>(payload);- write_field(output, "rect", command.rect);- write_corner_radii(output, command.corner_radii);- }- DisplayListCommandType::CompositorScrollbar => {- let command = read_command::<CompositorScrollbar>(payload);- write_field(output, "scroll_node_index", command.scroll_node_index);- write_field(output, "gutter_rect", command.gutter_rect);- write_field(output, "thumb_rect", command.thumb_rect);- write_field(output, "track_rect", command.track_rect);- write_field(output, "expanded_gutter_rect", command.expanded_gutter_rect);- write_field(output, "expanded_thumb_rect", command.expanded_thumb_rect);- write!(- output,- " scroll_size={} expanded_scroll_size={}",- command.scroll_size, command.expanded_scroll_size- )- .unwrap();- write_field(output, "min_scroll_offset", command.min_scroll_offset);- write_field(output, "max_scroll_offset", command.max_scroll_offset);- write_field(output, "thumb_color", command.thumb_color);- write_field(output, "thumb_outline_color", command.thumb_outline_color);- write_field(output, "track_color", command.track_color);- write!(- output,- " vertical={} is_painted_by_compositor={}",- command.vertical, command.is_painted_by_compositor- )- .unwrap();- }- DisplayListCommandType::PaintScrollBar => {}- // The display list of a page holds none of the commands of the canvas 2D stream.- DisplayListCommandType::Canvas2DFillPath- | DisplayListCommandType::Canvas2DStrokePath- | DisplayListCommandType::Canvas2DDrawGlyphRuns- | DisplayListCommandType::Canvas2DClearRect- | DisplayListCommandType::Canvas2DDrawImageFrame- | DisplayListCommandType::Canvas2DDrawCanvas- | DisplayListCommandType::Canvas2DDrawVideoFrame- | DisplayListCommandType::Canvas2DSetTransform- | DisplayListCommandType::Canvas2DSave- | DisplayListCommandType::Canvas2DRestore- | DisplayListCommandType::Canvas2DClipPath- | DisplayListCommandType::Canvas2DReset- | DisplayListCommandType::Canvas2DClearCanvas- | DisplayListCommandType::Canvas2DPutImageFrame => {}- }+ });+ fields}-fn dump_inline_clips(output: &mut String, header: &DisplayListCommandHeader, payload: &[u8]) {+fn dump_inline_clips(output: &mut String, names: &mut DumpNames, header: &DisplayListCommandHeader, payload: &[u8]) {output.push_str(" inline_clips=[");let count = header.inline_clip_count as usize;let entries_size = count * INLINE_CLIP_ENTRY_SIZE;@@ -833,118 +509,38 @@ fn dump_inline_clips(output: &mut String, header: &DisplayListCommandHeader, paylet size = clip.path_data.size as usize;assert!(start <= payload.len() && size <= payload.len() - start);let path = Path::from_serialized_bytes(&payload[start..start + size]);- let svg_path = path.to_svg_string();- let has_host_dependent_curves = svg_path.contains('Q') || svg_path.contains('C');output.push_str("clip_path=[bounds: ");push_float_rect(output, clip.clip_rect_or_path_device_bounds);- if has_host_dependent_curves {- let command_count = svg_path- .bytes()- .filter(|byte| matches!(byte, b'M' | b'L' | b'Q' | b'C' | b'Z'))- .count();- write!(output, ", curved path: {command_count} commands]").unwrap();- } else {- write!(output, ", path: {svg_path}]").unwrap();+ write!(output, ", {}]", path_description(&path)).unwrap();+ if clip.path_winding_rule != libgfx_rust::WindingRule::default() {+ write!(output, " winding_rule={:?}", clip.path_winding_rule).unwrap();}} else {output.push_str("clip=");push_float_rect(output, clip.clip_rect_or_path_device_bounds);- write_inline_clip_radii(output, clip.corner_radii);+ if clip.corner_radii.has_any_radius() {+ output.push_str(" radii=");+ push_clip_radii(output, clip.corner_radii);+ }}if clip.mode == ClipMode::Difference {output.push_str(" mode=difference");}if clip.has_own_space {- output.push_str(" in ");- write_spatial_node_index(output, clip.space);+ write!(output, " in {}", names.spatial(clip.space)).unwrap();}}output.push(']');}// A context prints its spatial, clip and effect nodes.-fn write_context(output: &mut String, context: ContextRef) {- write_spatial_node_index(output, context.spatial);+fn write_context(output: &mut String, names: &mut DumpNames, context: ContextRef) {+ output.push_str(&names.spatial(context.spatial));if !context.clip.is_none() {- write!(output, "/c{}", context.clip.0).unwrap();+ write!(output, "/{}", names.clip(context.clip)).unwrap();}if !context.effect.is_none() {- write!(output, "/e{}", context.effect.0).unwrap();- }-}--fn write_color(output: &mut String, color: Color) {- match color.alpha() {- 0 => write!(output, "rgba({}, {}, {}, 0)", color.red(), color.green(), color.blue()).unwrap(),- 255 => write!(output, "rgb({}, {}, {})", color.red(), color.green(), color.blue()).unwrap(),- alpha => {- let (digits, length) = format_to_8bit_compatible(alpha);- let fraction = std::str::from_utf8(&digits[..length]).expect("digits are ASCII");- write!(- output,- "rgba({}, {}, {}, 0.{fraction})",- color.red(),- color.green(),- color.blue()- )- .unwrap();- }- }-}--fn write_blend_mode(output: &mut String, operator: CompositingAndBlendingOperator) {- if operator != CompositingAndBlendingOperator::Normal {- write!(output, " blend_mode={}", operator as i32).unwrap();- }-}--fn line_style_name(style: LineStyle) -> &'static str {- match style {- LineStyle::Solid => "Solid",- LineStyle::Dotted => "Dotted",- LineStyle::Dashed => "Dashed",- }-}--fn scaling_mode_name(mode: ScalingMode) -> &'static str {- match mode {- ScalingMode::None => "None",- ScalingMode::Bilinear => "Bilinear",- ScalingMode::BilinearMipmap => "BilinearMipmap",- ScalingMode::NearestNeighbor => "NearestNeighbor",- }-}--fn write_corner_radii(output: &mut String, radii: CornerRadii) {- if !radii.has_any_radius() {- return;- }- write!(- output,- " corner_radii=[{}x{},{}x{},{}x{},{}x{}]",- radii.top_left.horizontal_radius,- radii.top_left.vertical_radius,- radii.top_right.horizontal_radius,- radii.top_right.vertical_radius,- radii.bottom_right.horizontal_radius,- radii.bottom_right.vertical_radius,- radii.bottom_left.horizontal_radius,- radii.bottom_left.vertical_radius- )- .unwrap();-}--fn write_inline_clip_radii(output: &mut String, radii: CornerRadii) {- if radii.has_any_radius() {- write!(- output,- " radii=({},{},{},{})",- radii.top_left.horizontal_radius,- radii.top_right.horizontal_radius,- radii.bottom_right.horizontal_radius,- radii.bottom_left.horizontal_radius- )- .unwrap();+ write!(output, "/{}", names.effect(context.effect)).unwrap();}}@@ -953,7 +549,7 @@ mod tests {use super::*;use crate::painting::display_list::builder::DisplayListBuilder;use crate::painting::display_list::builder::{HEADER_SIZE, read_header};- use libgfx_rust::IntRect;+ use libgfx_rust::{Color, CompositingAndBlendingOperator, IntRect};#[test]fn command_dump_matches_the_canonical_format() {@@ -1011,21 +607,22 @@ mod tests {let header = read_header(bytes);let payload = &bytes[HEADER_SIZE..HEADER_SIZE + header.payload_size as usize];let mut output = format!("{}@", header.command_type.name());- write_context(&mut output, builder.command_runs()[0].context);- dump_command(&mut output, header.command_type, payload);+ let mut names = DumpNames::default();+ write_context(&mut output, &mut names, builder.command_runs()[0].context);+ push_fields(&mut output, &command_fields(header.command_type, payload), &mut names);output};assert_eq!(dump(clip_and_effect),- "FillRect@s0/c0/e0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) blend_mode=2"+ "FillRect@s0/c0/e0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) compositing_and_blending_operator=Multiply");assert_eq!(dump(effect_only),- "FillRect@s0/e0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) blend_mode=2"+ "FillRect@s0/e0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) compositing_and_blending_operator=Multiply");assert_eq!(dump(ContextRef::default()),- "FillRect@s0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) blend_mode=2"+ "FillRect@s0 rect=[1,2 30x40] color=rgba(101, 2, 0, 0.8) compositing_and_blending_operator=Multiply");}}diff --git a/Libraries/LibWeb/Rust/src/painting/display_list/dump_format.rs b/Libraries/LibWeb/Rust/src/painting/display_list/dump_format.rsnew file mode 100644index 00000000000..af6eb6faa87--- /dev/null+++ b/Libraries/LibWeb/Rust/src/painting/display_list/dump_format.rs@@ -0,0 +1,596 @@+/*+ * Copyright (c) 2026-present, the Ladybird developers.+ *+ * SPDX-License-Identifier: BSD-2-Clause+ */++//! The values a display list dump prints, and the names it gives what the tape names by ids that differ from one run of+//! the process to the next.++use super::builder::read_command;+use super::commands::{+ ClipNodeIndex, DisplayListDataSpan, DisplayListGlyph, EffectNodeIndex, SpatialNodeIndex, TextShadowLayer,+};+use super::nested_records::span_bytes;+use super::record_fields::{RecordFieldValue, RecordFields, ResourceKind};+use crate::css::color_resolution::format_to_8bit_compatible;+use crate::painting::dump::{+ push_affine_transform, push_float_like_ak, push_float_point, push_float_rect, push_float_size, push_int_point,+ push_int_rect, push_int_size,+};+use libgfx_rust::filter::Filter;+use libgfx_rust::path::Path;+use libgfx_rust::{+ AffineTransform, Color, CornerRadii, FloatMatrix4x4, FloatPoint, FloatRect, FloatSize, IntPoint, IntRect, IntSize,+};+use std::collections::HashMap;+use std::fmt::Write;++/// Names the resources of a dump by the order it first prints them in, since their ids count up across the process.+#[derive(Default)]+pub(crate) struct DumpNames {+ resources: HashMap<(ResourceKind, u64), u32>,+ resource_counts: HashMap<ResourceKind, u32>,+ times_of_this_process: HashMap<i64, u32>,+}++fn resource_kind_name(kind: ResourceKind) -> &'static str {+ match kind {+ ResourceKind::Font => "font",+ ResourceKind::ImageFrame => "image",+ ResourceKind::VideoSink => "video",+ ResourceKind::VectorImage => "svg",+ ResourceKind::Canvas => "canvas",+ ResourceKind::CompositorContext => "context",+ }+}++impl DumpNames {+ pub(crate) fn resource(&mut self, kind: ResourceKind, raw: u64) -> String {+ let count = self.resource_counts.entry(kind).or_default();+ let number = *self.resources.entry((kind, raw)).or_insert_with(|| {+ *count += 1;+ *count+ });+ format!("{}{number}", resource_kind_name(kind))+ }++ /// A point in time of the process that recorded the list, which only another such point can be compared with.+ pub(crate) fn time_of_this_process(&mut self, raw: i64) -> String {+ let count = self.times_of_this_process.len() as u32;+ format!("t{}", self.times_of_this_process.entry(raw).or_insert(count + 1))+ }++ pub(crate) fn spatial(&mut self, index: SpatialNodeIndex) -> String {+ format!("s{}", index.0)+ }++ pub(crate) fn clip(&mut self, index: ClipNodeIndex) -> String {+ format!("c{}", index.0)+ }++ pub(crate) fn effect(&mut self, index: EffectNodeIndex) -> String {+ format!("e{}", index.0)+ }+}++/// A value of a dumped field, with what its bytes mean read out of the payload.+pub(crate) enum DumpValue {+ Bool(bool),+ Integer(i64),+ Float(f32),+ Double(f64),+ Color(Color),+ IntPoint(IntPoint),+ FloatPoint(FloatPoint),+ IntSize(IntSize),+ FloatSize(FloatSize),+ IntRect(IntRect),+ FloatRect(FloatRect),+ CornerRadii(CornerRadii),+ AffineTransform(AffineTransform),+ Name(String),+ SpatialNode(SpatialNodeIndex),+ EffectNode(EffectNodeIndex),+ Resource(ResourceKind, u64),+ TimeOfThisProcess(i64),+ Path(String),+ Filter(Box<Filter>),+ Unreadable(usize),+ Count(usize),+ List(Vec<DumpValue>),+ GradientColorStop(Color, f32),+ Fields(Vec<(&'static str, DumpValue)>),+}++/// The fields of a record or of a struct it holds that hold more than their neutral value, in declaration order. The+/// records nested in a command are left to the dump of those records.+pub(crate) fn dumped_fields(fields: &dyn RecordFields, payload: &[u8]) -> Vec<(&'static str, DumpValue)> {+ let mut dumped = Vec::new();+ fields.visit_record_fields(&mut |name, value, holds_neutral_value| {+ if holds_neutral_value {+ return;+ }+ if let Some(name_and_value) = dumped_record_field(name, value, payload) {+ dumped.push(name_and_value);+ }+ });+ dumped+}++fn is_time_of_this_process(name: &str) -> bool {+ name == "blink_cycle_start_time_ns"+}++fn is_span_of_nested_records(name: &str) -> bool {+ matches!(name, "content" | "mask" | "tile" | "records" | "pattern_tile")+}++pub(crate) fn dumped_record_field(+ name: &'static str,+ value: RecordFieldValue<'_>,+ payload: &[u8],+) -> Option<(&'static str, DumpValue)> {+ let value = match value {+ RecordFieldValue::Bool(value) => DumpValue::Bool(value),+ RecordFieldValue::Integer(value) if is_time_of_this_process(name) => DumpValue::TimeOfThisProcess(value),+ RecordFieldValue::Integer(value) => DumpValue::Integer(value),+ RecordFieldValue::Float(value) => DumpValue::Float(value),+ RecordFieldValue::Double(value) => DumpValue::Double(value),+ RecordFieldValue::Color(value) => DumpValue::Color(value),+ RecordFieldValue::IntPoint(value) => DumpValue::IntPoint(value),+ RecordFieldValue::FloatPoint(value) => DumpValue::FloatPoint(value),+ RecordFieldValue::IntSize(value) => DumpValue::IntSize(value),+ RecordFieldValue::FloatSize(value) => DumpValue::FloatSize(value),+ RecordFieldValue::IntRect(value) => DumpValue::IntRect(value),+ RecordFieldValue::FloatRect(value) => DumpValue::FloatRect(value),+ RecordFieldValue::CornerRadii(value) => DumpValue::CornerRadii(value),+ RecordFieldValue::AffineTransform(value) => DumpValue::AffineTransform(value),+ RecordFieldValue::Enum(value) => DumpValue::Name(format!("{value:?}")),+ RecordFieldValue::SpatialNode(value) => DumpValue::SpatialNode(value),+ RecordFieldValue::EffectNode(value) => DumpValue::EffectNode(value),+ RecordFieldValue::Resource(kind, raw) => DumpValue::Resource(kind, raw),+ RecordFieldValue::Span(_) if is_span_of_nested_records(name) => return None,+ RecordFieldValue::Span(span) => dumped_span(name, span, payload),+ RecordFieldValue::GradientColorStops(stops) => {+ let colors = span_bytes(payload, stops.colors)+ .as_chunks::<{ size_of::<u32>() }>()+ .0+ .iter()+ .map(|bytes| Color(u32::from_ne_bytes(*bytes)));+ let positions = span_bytes(payload, stops.positions)+ .as_chunks::<{ size_of::<f32>() }>()+ .0+ .iter()+ .map(|bytes| f32::from_ne_bytes(*bytes));+ let stops_list = colors+ .zip(positions)+ .map(|(color, position)| DumpValue::GradientColorStop(color, position))+ .collect();+ let name = if stops.repeating { "repeating_color_stops" } else { name };+ return Some((name, DumpValue::List(stops_list)));+ }+ RecordFieldValue::Fields(fields) => DumpValue::Fields(dumped_fields(fields, payload)),+ };+ Some((name, value))+}++fn dumped_span(name: &str, span: DisplayListDataSpan, payload: &[u8]) -> DumpValue {+ let bytes = span_bytes(payload, span);+ match name {+ "glyphs" => DumpValue::Count(bytes.len() / size_of::<DisplayListGlyph>()),+ "layers" => DumpValue::List(+ bytes+ .as_chunks::<{ size_of::<TextShadowLayer>() }>()+ .0+ .iter()+ .map(|layer| DumpValue::Fields(dumped_fields(&read_command::<TextShadowLayer>(layer), payload)))+ .collect(),+ ),+ "runs" => DumpValue::List(+ bytes+ .as_chunks::<{ size_of::<super::commands::Canvas2DGlyphRun>() }>()+ .0+ .iter()+ .map(|run| {+ DumpValue::Fields(dumped_fields(+ &read_command::<super::commands::Canvas2DGlyphRun>(run),+ payload,+ ))+ })+ .collect(),+ ),+ "path_data" | "shape_path_data" => DumpValue::Path(path_description(&Path::from_serialized_bytes(bytes))),+ "dash_array" => DumpValue::List(+ bytes+ .as_chunks::<{ size_of::<f32>() }>()+ .0+ .iter()+ .map(|value| DumpValue::Float(f32::from_ne_bytes(*value)))+ .collect(),+ ),+ "filter" => match Filter::deserialize(bytes) {+ Some(filter) => DumpValue::Filter(Box::new(filter)),+ None => DumpValue::Unreadable(bytes.len()),+ },+ _ => DumpValue::Unreadable(bytes.len()),+ }+}++/// A path as an SVG path, or as the number of its commands where it holds curves: their control points depend on how+/// the host builds the shapes they round.+pub(crate) fn path_description(path: &Path) -> String {+ let svg_path = path.to_svg_string();+ if svg_path.contains('Q') || svg_path.contains('C') {+ let command_count = svg_path+ .bytes()+ .filter(|byte| matches!(byte, b'M' | b'L' | b'Q' | b'C' | b'Z'))+ .count();+ format!("curved path: {command_count} commands")+ } else {+ format!("path: {svg_path}")+ }+}++pub(crate) fn push_color(output: &mut String, color: Color) {+ match color.alpha() {+ 0 => write!(output, "rgba({}, {}, {}, 0)", color.red(), color.green(), color.blue()).unwrap(),+ 255 => write!(output, "rgb({}, {}, {})", color.red(), color.green(), color.blue()).unwrap(),+ alpha => {+ let (digits, length) = format_to_8bit_compatible(alpha);+ let fraction = std::str::from_utf8(&digits[..length]).expect("digits are ASCII");+ write!(+ output,+ "rgba({}, {}, {}, 0.{fraction})",+ color.red(),+ color.green(),+ color.blue()+ )+ .unwrap();+ }+ }+}++pub(crate) fn push_corner_radii(output: &mut String, radii: CornerRadii) {+ write!(+ output,+ "[{}x{},{}x{},{}x{},{}x{}]",+ radii.top_left.horizontal_radius,+ radii.top_left.vertical_radius,+ radii.top_right.horizontal_radius,+ radii.top_right.vertical_radius,+ radii.bottom_right.horizontal_radius,+ radii.bottom_right.vertical_radius,+ radii.bottom_left.horizontal_radius,+ radii.bottom_left.vertical_radius+ )+ .unwrap();+}++/// The radii of a clip, by their horizontal radius where every corner is circular.+pub(crate) fn push_clip_radii(output: &mut String, radii: CornerRadii) {+ let corners = [radii.top_left, radii.top_right, radii.bottom_right, radii.bottom_left];+ output.push('(');+ for (index, corner) in corners.iter().enumerate() {+ if index > 0 {+ output.push(',');+ }+ if corners+ .iter()+ .all(|corner| corner.horizontal_radius == corner.vertical_radius)+ {+ write!(output, "{}", corner.horizontal_radius).unwrap();+ } else {+ write!(output, "{}x{}", corner.horizontal_radius, corner.vertical_radius).unwrap();+ }+ }+ output.push(')');+}++pub(crate) fn push_matrix(output: &mut String, matrix: &FloatMatrix4x4) {+ output.push('[');+ for (index, value) in matrix.elements.iter().flatten().enumerate() {+ if index > 0 {+ output.push(',');+ }+ push_float_like_ak(output, *value);+ }+ output.push(']');+}++fn push_float_list(output: &mut String, values: &[f32]) {+ for (index, value) in values.iter().enumerate() {+ if index > 0 {+ output.push(',');+ }+ push_float_like_ak(output, *value);+ }+}++/// A filter graph in the order it applies: a composition as its inner filter then its outer one, each other node as a+/// function of its arguments and its inputs, of which an absent one is what the filter is applied to.+pub(crate) fn push_filter(output: &mut String, filter: &Filter, names: &mut DumpNames) {+ let push_input = |output: &mut String, label: &str, input: &Option<Box<Filter>>, names: &mut DumpNames| {+ if let Some(input) = input {+ write!(output, " {label}=[").unwrap();+ push_filter(output, input, names);+ output.push(']');+ }+ };+ match filter {+ Filter::Compose { outer, inner } => {+ push_filter(output, inner, names);+ output.push(' ');+ push_filter(output, outer, names);+ }+ Filter::Arithmetic {+ background,+ foreground,+ k1,+ k2,+ k3,+ k4,+ } => {+ output.push_str("arithmetic(");+ push_float_list(output, &[*k1, *k2, *k3, *k4]);+ push_input(output, "background", background, names);+ push_input(output, "foreground", foreground, names);+ output.push(')');+ }+ Filter::Blend {+ background,+ foreground,+ mode,+ } => {+ write!(output, "blend({mode:?}").unwrap();+ push_input(output, "background", background, names);+ push_input(output, "foreground", foreground, names);+ output.push(')');+ }+ Filter::Flood { color, opacity } => {+ output.push_str("flood(");+ push_color(output, *color);+ output.push(',');+ push_float_like_ak(output, *opacity);+ output.push(')');+ }+ Filter::DisplacementMap {+ color,+ displacement,+ scale,+ x_channel_selector,+ y_channel_selector,+ } => {+ output.push_str("displacement-map(");+ push_float_like_ak(output, *scale);+ write!(output, ",{x_channel_selector:?},{y_channel_selector:?}").unwrap();+ push_input(output, "color", color, names);+ push_input(output, "displacement", displacement, names);+ output.push(')');+ }+ Filter::DropShadow {+ offset_x,+ offset_y,+ radius,+ color,+ input,+ } => {+ output.push_str("drop-shadow(");+ push_float_list(output, &[*offset_x, *offset_y, *radius]);+ output.push(',');+ push_color(output, *color);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Blur {+ radius_x,+ radius_y,+ mirrors_at_backdrop_edge,+ input,+ } => {+ output.push_str(if *mirrors_at_backdrop_edge {+ "blur("+ } else {+ "gaussian-blur("+ });+ push_float_list(output, &[*radius_x, *radius_y]);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::ColorFilter { kind, amount, input } => {+ write!(output, "{kind:?}(").unwrap();+ push_float_like_ak(output, *amount);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::ColorMatrix { matrix, input } => {+ output.push_str("color-matrix(");+ push_float_list(output, matrix);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::ColorTable { a, r, g, b, input } => {+ output.push_str("color-table(");+ for (channel, table) in [("a", a), ("r", r), ("g", g), ("b", b)] {+ if let Some(table) = table {+ write!(output, " {channel}=").unwrap();+ for value in table.iter() {+ write!(output, "{value:02x}").unwrap();+ }+ }+ }+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Saturate { value, input } => {+ output.push_str("saturate(");+ push_float_like_ak(output, *value);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::HueRotate { angle_degrees, input } => {+ output.push_str("hue-rotate(");+ push_float_like_ak(output, *angle_degrees);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Image {+ frame_id,+ src_rect,+ dest_rect,+ scaling_mode,+ } => {+ write!(output, "image({}", names.resource(ResourceKind::ImageFrame, *frame_id)).unwrap();+ output.push_str(" src_rect=");+ push_int_rect(output, *src_rect);+ output.push_str(" dest_rect=");+ push_int_rect(output, *dest_rect);+ write!(output, " {scaling_mode:?})").unwrap();+ }+ Filter::Merge { inputs } => {+ output.push_str("merge(");+ for (index, input) in inputs.iter().enumerate() {+ if index > 0 {+ output.push(',');+ }+ match input {+ Some(input) => {+ output.push('[');+ push_filter(output, input, names);+ output.push(']');+ }+ None => output.push_str("source"),+ }+ }+ output.push(')');+ }+ Filter::Offset { dx, dy, input } => {+ output.push_str("offset(");+ push_float_list(output, &[*dx, *dy]);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Erode {+ radius_x,+ radius_y,+ input,+ } => {+ output.push_str("erode(");+ push_float_list(output, &[*radius_x, *radius_y]);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Dilate {+ radius_x,+ radius_y,+ input,+ } => {+ output.push_str("dilate(");+ push_float_list(output, &[*radius_x, *radius_y]);+ push_input(output, "input", input, names);+ output.push(')');+ }+ Filter::Turbulence {+ kind,+ base_frequency_x,+ base_frequency_y,+ num_octaves,+ seed,+ tile_stitch_size,+ } => {+ write!(output, "turbulence({kind:?},").unwrap();+ push_float_list(output, &[*base_frequency_x, *base_frequency_y]);+ write!(output, ",{num_octaves},").unwrap();+ push_float_like_ak(output, *seed);+ output.push(',');+ push_int_size(output, *tile_stitch_size);+ output.push(')');+ }+ Filter::ColorSpaceConversion {+ source_color_space,+ destination_color_space,+ input,+ } => {+ write!(+ output,+ "color-space-conversion({source_color_space:?},{destination_color_space:?}"+ )+ .unwrap();+ push_input(output, "input", input, names);+ output.push(')');+ }+ }+}++/// A filter as its serialized bytes describe it, or the count of bytes that describe none.+pub(crate) fn push_filter_bytes(output: &mut String, bytes: &[u8], names: &mut DumpNames) {+ match Filter::deserialize(bytes) {+ Some(filter) => push_filter(output, &filter, names),+ None => write!(output, "unreadable {} bytes", bytes.len()).unwrap(),+ }+}++pub(crate) fn push_value(output: &mut String, value: &DumpValue, names: &mut DumpNames) {+ match value {+ DumpValue::Bool(value) => write!(output, "{value}").unwrap(),+ DumpValue::Integer(value) => write!(output, "{value}").unwrap(),+ DumpValue::Float(value) => push_float_like_ak(output, *value),+ DumpValue::Double(value) => write!(output, "{value}").unwrap(),+ DumpValue::Color(value) => push_color(output, *value),+ DumpValue::IntPoint(value) => push_int_point(output, *value),+ DumpValue::FloatPoint(value) => push_float_point(output, *value),+ DumpValue::IntSize(value) => push_int_size(output, *value),+ DumpValue::FloatSize(value) => push_float_size(output, *value),+ DumpValue::IntRect(value) => push_int_rect(output, *value),+ DumpValue::FloatRect(value) => push_float_rect(output, *value),+ DumpValue::CornerRadii(value) => push_corner_radii(output, *value),+ DumpValue::AffineTransform(value) => push_affine_transform(output, *value),+ DumpValue::Name(value) => output.push_str(value),+ DumpValue::SpatialNode(index) => output.push_str(&names.spatial(*index)),+ DumpValue::EffectNode(index) => output.push_str(&names.effect(*index)),+ DumpValue::Resource(kind, raw) => output.push_str(&names.resource(*kind, *raw)),+ DumpValue::TimeOfThisProcess(raw) => output.push_str(&names.time_of_this_process(*raw)),+ DumpValue::Path(description) => write!(output, "[{description}]").unwrap(),+ DumpValue::Filter(filter) => {+ output.push('[');+ push_filter(output, filter, names);+ output.push(']');+ }+ DumpValue::Unreadable(byte_count) => write!(output, "[unreadable {byte_count} bytes]").unwrap(),+ DumpValue::Count(count) => write!(output, "{count}").unwrap(),+ DumpValue::List(values) => {+ output.push('[');+ for (index, value) in values.iter().enumerate() {+ if index > 0 {+ output.push_str(", ");+ }+ push_value(output, value, names);+ }+ output.push(']');+ }+ DumpValue::GradientColorStop(color, position) => {+ push_color(output, *color);+ output.push(' ');+ push_float_like_ak(output, *position);+ }+ DumpValue::Fields(fields) => {+ output.push('{');+ for (index, (name, value)) in fields.iter().enumerate() {+ if index > 0 {+ output.push(' ');+ }+ write!(output, "{name}=").unwrap();+ push_value(output, value, names);+ }+ output.push('}');+ }+ }+}++/// Appends ` name=value` for each field.+pub(crate) fn push_fields(output: &mut String, fields: &[(&'static str, DumpValue)], names: &mut DumpNames) {+ for (name, value) in fields {+ write!(output, " {name}=").unwrap();+ push_value(output, value, names);+ }+}diff --git a/Libraries/LibWeb/Rust/src/painting/display_list/mod.rs b/Libraries/LibWeb/Rust/src/painting/display_list/mod.rsindex b3dcfc13335..cb8c870cf89 100644--- a/Libraries/LibWeb/Rust/src/painting/display_list/mod.rs+++ b/Libraries/LibWeb/Rust/src/painting/display_list/mod.rs@@ -7,6 +7,7 @@//! The recorder that produces display lists, on top of the display list code the compositor shares.pub mod dump;+pub mod dump_format;pub mod recorder;pub use libcompositing_rust::display_list::*;diff --git a/Libraries/LibWeb/Rust/src/painting/visual_context/dump.rs b/Libraries/LibWeb/Rust/src/painting/visual_context/dump.rsindex 26ae8405376..eb52d4347e7 100644--- a/Libraries/LibWeb/Rust/src/painting/visual_context/dump.rs+++ b/Libraries/LibWeb/Rust/src/painting/visual_context/dump.rs@@ -9,10 +9,15 @@ use super::{SpatialNodeIndex, TransformDataRole, VISUAL_VIEWPORT_NODE_INDEX, VisualContextTree,};use crate::painting::display_list::commands::DisplayListCommandRun;+use crate::painting::display_list::dump_format::{+ DumpNames, path_description, push_clip_radii, push_corner_radii, push_filter_bytes, push_matrix,+};use crate::painting::dump::{format_float_like_ak, push_float_point, push_float_rect, push_float_size, push_int_rect_components,};-use libgfx_rust::{CompositingAndBlendingOperator, FloatPoint, FloatRect, FloatSize, IntRect, MaskKind};+use libgfx_rust::{+ CompositingAndBlendingOperator, FloatMatrix4x4, FloatPoint, FloatRect, FloatSize, IntRect, MaskKind,+};use std::collections::{HashMap, HashSet};use std::fmt::Write;@@ -41,52 +46,99 @@ fn format_rect(rect: FloatRect) -> String {text}-fn format_spatial_node_index(index: SpatialNodeIndex) -> String {- format!("s{}", index.0)-}-fn format_int_rect_components(rect: IntRect) -> String {let mut text = String::new();push_int_rect_components(&mut text, rect);text}+// A 2D affine matrix as its six components, any other as all sixteen in row order.+fn push_transform_matrix(text: &mut String, keyword: &str, matrix: &FloatMatrix4x4) {+ if matrix.is_2d_affine() {+ let elements = &matrix.elements;+ let _ = write!(+ text,+ "{keyword}=[{},{},{},{},{},{}]",+ format_float_like_ak(elements[0][0]),+ format_float_like_ak(elements[0][1]),+ format_float_like_ak(elements[1][0]),+ format_float_like_ak(elements[1][1]),+ format_float_like_ak(elements[0][3]),+ format_float_like_ak(elements[1][3]),+ );+ } else {+ let _ = write!(text, "{keyword}3d=");+ push_matrix(text, matrix);+ }+}+/// The debug dumps the layout and display list tests compare against.pub trait VisualContextTreeDump {fn dump_spatial_node(&self, index: SpatialNodeIndex) -> String;fn dump_clip_node(&self, index: ClipNodeIndex) -> String;fn dump_effect_node(&self, index: EffectNodeIndex) -> String;+ fn describe_spatial_node(&self, index: SpatialNodeIndex, names: &mut DumpNames) -> String;+ fn describe_clip_node(&self, index: ClipNodeIndex, names: &mut DumpNames) -> String;+ fn describe_effect_node(&self, index: EffectNodeIndex, names: &mut DumpNames) -> String;// The nodes the runs record under, each tree in first-seen order. An effect's output clip// chain counts as reachable, since replay enters it before the effect.fn dump_nodes_reachable_from_runs(&self,command_runs: &[DisplayListCommandRun],+ names: &mut DumpNames,owner_label: impl FnMut(SlotKind, u32) -> Option<String>,) -> String;}impl VisualContextTreeDump for VisualContextTree {fn dump_spatial_node(&self, index: SpatialNodeIndex) -> String {+ self.describe_spatial_node(index, &mut DumpNames::default())+ }++ fn dump_clip_node(&self, index: ClipNodeIndex) -> String {+ self.describe_clip_node(index, &mut DumpNames::default())+ }++ fn dump_effect_node(&self, index: EffectNodeIndex) -> String {+ self.describe_effect_node(index, &mut DumpNames::default())+ }++ fn describe_spatial_node(&self, index: SpatialNodeIndex, names: &mut DumpNames) -> String {let mut text = String::new();+ // A node flattens what it inherits unless its box preserves 3D. The root inherits nothing.+ let inherits_nothing = index == VISUAL_VIEWPORT_NODE_INDEX;+ let flattens_marker = |flattens_inherited_transform: bool| {+ if flattens_inherited_transform || inherits_nothing {+ ""+ } else {+ " flattens_inherited_transform=false"+ }+ };match &self.spatial_nodes[index.0 as usize].data {- SpatialData::Perspective(_) => text.push_str("perspective"),+ SpatialData::Perspective(perspective) => {+ text.push_str("perspective=");+ push_matrix(&mut text, &perspective.matrix);+ text.push_str(flattens_marker(perspective.flattens_inherited_transform));+ }SpatialData::BackfaceVisibility(backface) => {let _ = write!(text,- "backface-hidden plane_root={}",- format_spatial_node_index(backface.plane_root_index)+ "backface-hidden plane_root={}{}",+ names.spatial(backface.plane_root_index),+ flattens_marker(backface.flattens_inherited_transform));}SpatialData::Scroll(_) => text.push_str("scroll"),SpatialData::Sticky(sticky) => {- let _ = write!(text, "sticky scroller={}", format_spatial_node_index(sticky.scroller));+ let _ = write!(text, "sticky scroller={}", names.spatial(sticky.scroller));if let Some(parent_sticky) = sticky.parent_sticky {- let _ = write!(text, " parent_sticky={}", format_spatial_node_index(parent_sticky));+ let _ = write!(text, " parent_sticky={}", names.spatial(parent_sticky));}let _ = write!(text,- " position_relative_to_scroller={} border_box_size={} scrollport_size={} containing_block_region={} needs_parent_offset_adjustment={}",+ " position_relative_to_scroller={} border_box_origin={} border_box_size={} scrollport_size={} containing_block_region={} needs_parent_offset_adjustment={}",format_point(sticky.position_relative_to_scroller),+ format_point(sticky.border_box_origin),format_size(sticky.border_box_size),format_size(sticky.scrollport_size),format_rect(sticky.containing_block_region),@@ -114,31 +166,36 @@ impl VisualContextTreeDump for VisualContextTree {text.push(']');}SpatialData::Transform(transform) => {- let matrix = &transform.matrix.elements;- let origin = transform.origin;+ let keyword = match transform.role {+ TransformDataRole::CssTransform => "transform",+ TransformDataRole::SvgViewportTransform => "svg-viewport-transform",+ };+ push_transform_matrix(&mut text, keyword, &transform.matrix);let _ = write!(text,- "{}=[{},{},{},{},{},{}] origin=({},{})",- if transform.role == TransformDataRole::SvgViewportTransform {- "svg-viewport-transform"- } else {- "transform"- },- format_float_like_ak(matrix[0][0]),- format_float_like_ak(matrix[0][1]),- format_float_like_ak(matrix[1][0]),- format_float_like_ak(matrix[1][1]),- format_float_like_ak(matrix[0][3]),- format_float_like_ak(matrix[1][3]),- format_float_like_ak(origin.x),- format_float_like_ak(origin.y)+ " origin=({},{})",+ format_float_like_ak(transform.origin.x),+ format_float_like_ak(transform.origin.y));+ if let Some(sorting_context_root) = transform.sorting_context_root_index {+ let _ = write!(text, " sorting_context_root={}", names.spatial(sorting_context_root));+ }+ text.push_str(flattens_marker(transform.flattens_inherited_transform));+ if transform.synthetic_plane {+ text.push_str(" synthetic_plane");+ }+ if transform.establishes_sorting_context {+ text.push_str(" establishes_sorting_context");+ }+ if !transform.bounds.is_empty() {+ let _ = write!(text, " bounds={}", format_rect(transform.bounds));+ }}SpatialData::AnchorScrollShift(shift) => {let _ = write!(text,"anchor_scroll_shift(node_index={}{}{}{})",- format_spatial_node_index(shift.scroll_node_index),+ names.spatial(shift.scroll_node_index),if shift.negate { ", negate" } else { "" },if shift.compensate_horizontal_scroll {""@@ -153,47 +210,28 @@ impl VisualContextTreeDump for VisualContextTree {text}- fn dump_clip_node(&self, index: ClipNodeIndex) -> String {+ fn describe_clip_node(&self, index: ClipNodeIndex, _names: &mut DumpNames) -> String {let mut text = String::new();match &self.clip_nodes[index.0 as usize].data {ClipNodeData::Rect(clip) => {let _ = write!(text, "clip={}", format_rect(clip.rect));if clip.corner_radii.has_any_radius() {- let corner_radii = clip.corner_radii;- let _ = write!(- text,- " radii=({},{},{},{})",- corner_radii.top_left.horizontal_radius,- corner_radii.top_right.horizontal_radius,- corner_radii.bottom_right.horizontal_radius,- corner_radii.bottom_left.horizontal_radius- );+ text.push_str(" radii=");+ push_clip_radii(&mut text, clip.corner_radii);}if clip.mode == ClipMode::Difference {text.push_str(" mode=difference");}}ClipNodeData::Path(clip_path) => {- let svg_path = clip_path.path.to_svg_string();- let has_curves_with_host_dependent_control_points = svg_path.contains('Q') || svg_path.contains('C');- if has_curves_with_host_dependent_control_points {- let command_count = svg_path- .chars()- .filter(|code_point| matches!(code_point, 'M' | 'L' | 'Q' | 'C' | 'Z'))- .count();- let _ = write!(- text,- "clip_path=[bounds: {}, curved path: {} commands]",- format_int_rect_components(clip_path.bounding_rect),- command_count- );- } else {- let _ = write!(- text,- "clip_path=[bounds: {}, path: {}]",- format_int_rect_components(clip_path.bounding_rect),- svg_path- );+ let _ = write!(+ text,+ "clip_path=[bounds: {}, {}]",+ format_int_rect_components(clip_path.bounding_rect),+ path_description(&clip_path.path)+ );+ if clip_path.fill_rule != libgfx_rust::WindingRule::default() {+ let _ = write!(text, " fill_rule={:?}", clip_path.fill_rule);}}ClipNodeData::Dead => text.push_str("tombstone"),@@ -201,39 +239,43 @@ impl VisualContextTreeDump for VisualContextTree {text}- fn dump_effect_node(&self, index: EffectNodeIndex) -> String {+ fn describe_effect_node(&self, index: EffectNodeIndex, names: &mut DumpNames) -> String {let mut text = String::new();match &self.effect_nodes[index.0 as usize].data {EffectNodeData::Effects(effects) => {text.push_str("effects=[");- let mut has_content = false;+ let mut separator = "";+ if effects.isolation {+ text.push_str("isolation");+ separator = " ";+ }if effects.opacity < 1.0 {- let _ = write!(text, "opacity={}", format_float_like_ak(effects.opacity));- has_content = true;+ let _ = write!(text, "{separator}opacity={}", format_float_like_ak(effects.opacity));+ separator = " ";}if effects.blend_mode != CompositingAndBlendingOperator::Normal {- if has_content {- text.push(' ');- }- let _ = write!(text, "blend_mode={}", effects.blend_mode as i32);- has_content = true;+ let _ = write!(text, "{separator}blend_mode={:?}", effects.blend_mode);+ separator = " ";}- if effects.filter.is_some() {- if has_content {- text.push(' ');- }- text.push_str("filter");- has_content = true;+ if let Some(filter) = &effects.filter {+ let _ = write!(text, "{separator}filter=[");+ push_filter_bytes(&mut text, filter, names);+ text.push(']');+ separator = " ";}if let Some(backdrop_filter) = &effects.backdrop_filter {- if has_content {- text.push(' ');- }let _ = write!(text,- "backdrop-filter=[{}]",+ "{separator}backdrop-filter=[region=[{}]",format_int_rect_components(backdrop_filter.region));+ if backdrop_filter.corner_radii.has_any_radius() {+ text.push_str(" corner_radii=");+ push_corner_radii(&mut text, backdrop_filter.corner_radii);+ }+ text.push_str(" filter=[");+ push_filter_bytes(&mut text, &backdrop_filter.filter, names);+ text.push_str("]]");}text.push(']');}@@ -266,6 +308,7 @@ impl VisualContextTreeDump for VisualContextTree {fn dump_nodes_reachable_from_runs(&self,command_runs: &[DisplayListCommandRun],+ names: &mut DumpNames,mut owner_label: impl FnMut(SlotKind, u32) -> Option<String>,) -> String {let effect_clips = crate::painting::display_list::effect_clip_plan::EffectClipPlan::new(self, command_runs)@@ -324,18 +367,19 @@ impl VisualContextTreeDump for VisualContextTree {fn dump_subtree(text: &mut String,+ names: &mut DumpNames,children: &HashMap<u32, Vec<u32>>,- node_line: &impl Fn(u32) -> String,+ node_line: &impl Fn(u32, &mut DumpNames) -> String,append_owner: &mut impl FnMut(&mut String, u32),node_index: u32,indent: usize,) {text.push_str(&" ".repeat(indent * 2));- text.push_str(&node_line(node_index));+ text.push_str(&node_line(node_index, names));append_owner(text, node_index);if let Some(child_indices) = children.get(&node_index) {for child in child_indices {- dump_subtree(text, children, node_line, append_owner, *child, indent + 1);+ dump_subtree(text, names, children, node_line, append_owner, *child, indent + 1);}}}@@ -343,8 +387,15 @@ impl VisualContextTreeDump for VisualContextTree {text.push_str(" spatial:\n");dump_subtree(&mut text,+ names,&spatial_children,- &|index: u32| format!("[s{index}] {}", self.dump_spatial_node(SpatialNodeIndex(index))),+ &|index: u32, names: &mut DumpNames| {+ let name = names.spatial(SpatialNodeIndex(index));+ format!(+ "[{name}] {}",+ self.describe_spatial_node(SpatialNodeIndex(index), names)+ )+ },&mut |text: &mut String, index: u32| append_owner(text, SlotKind::Spatial, index),VISUAL_VIEWPORT_NODE_INDEX.0,2,@@ -354,12 +405,14 @@ impl VisualContextTreeDump for VisualContextTree {for root in clip_roots {dump_subtree(&mut text,+ names,&clip_children,- &|index: u32| {+ &|index: u32, names: &mut DumpNames| {+ let name = names.clip(ClipNodeIndex(index));+ let space = names.spatial(self.clip_nodes[index as usize].spatial);format!(- "[c{index} in s{}] {}",- self.clip_nodes[index as usize].spatial.0,- self.dump_clip_node(ClipNodeIndex(index))+ "[{name} in {space}] {}",+ self.describe_clip_node(ClipNodeIndex(index), names))},&mut |text: &mut String, index: u32| append_owner(text, SlotKind::Clip, index),@@ -373,19 +426,21 @@ impl VisualContextTreeDump for VisualContextTree {for root in effect_roots {dump_subtree(&mut text,+ names,&effect_children,- &|index: u32| {+ &|index: u32, names: &mut DumpNames| {let node = &self.effect_nodes[index as usize];+ let name = names.effect(EffectNodeIndex(index));+ let space = names.spatial(node.spatial);let resolved_clip = effect_clips.output_clip(EffectNodeIndex(index));let output_clip = if resolved_clip.is_none() {String::new()} else {- format!(" out=c{}", resolved_clip.0)+ format!(" out={}", names.clip(resolved_clip))};format!(- "[e{index} in s{}{output_clip}] {}",- node.spatial.0,- self.dump_effect_node(EffectNodeIndex(index))+ "[{name} in {space}{output_clip}] {}",+ self.describe_effect_node(EffectNodeIndex(index), names))},&mut |text: &mut String, index: u32| append_owner(text, SlotKind::Effect, index),@@ -403,9 +458,9 @@ mod node_dump_tests {use super::VisualContextTreeDump;use crate::layout::node_data::NodeSlotId;use crate::painting::visual_context::{- AnchorScrollShift, BackfaceVisibilityData, ClipData, ClipMode, ClipNodeData, ClipNodeIndex, EffectNodeData,- EffectNodeIndex, EffectsData, MaskData, MaskLayerOrigin, PerspectiveData, ScrollData, SpatialData, StickyData,- TransformData, TransformDataRole, VISUAL_VIEWPORT_NODE_INDEX, VisualContextTree,+ AnchorScrollShift, BackdropFilterData, BackfaceVisibilityData, ClipData, ClipMode, ClipNodeData, ClipNodeIndex,+ EffectNodeData, EffectNodeIndex, EffectsData, MaskData, MaskLayerOrigin, PerspectiveData, ScrollData,+ SpatialData, StickyData, TransformData, TransformDataRole, VISUAL_VIEWPORT_NODE_INDEX, VisualContextTree,scroll_state::NO_SCROLL_STATE_SLOT,};use libgfx_rust::{@@ -518,6 +573,26 @@ mod node_dump_tests {}),transformed,);+ let rotated_in_3d = tree.append_spatial(+ SpatialData::Transform(TransformData {+ matrix: FloatMatrix4x4 {+ elements: [+ [1.0, 0.0, 0.0, 0.0],+ [0.0, 0.0, -1.0, 0.0],+ [0.0, 1.0, 0.0, 0.0],+ [0.0, 0.0, 0.0, 1.0],+ ],+ },+ origin: FloatPoint::default(),+ sorting_context_root_index: Some(transformed),+ flattens_inherited_transform: true,+ role: TransformDataRole::CssTransform,+ synthetic_plane: true,+ establishes_sorting_context: true,+ bounds: FloatRect::new(0.0, 0.0, 10.0, 20.0),+ }),+ VISUAL_VIEWPORT_NODE_INDEX,+ );let anchor_shift = tree.append_spatial(SpatialData::AnchorScrollShift(AnchorScrollShift {scroll_node_index: scroll_node,@@ -534,23 +609,33 @@ mod node_dump_tests {);assert_eq!(tree.dump_spatial_node(transformed),- "transform=[0.8660254,0,0,1,0,0] origin=(58,58)"+ "transform=[0.8660254,0,0,1,0,0] origin=(58,58) flattens_inherited_transform=false");assert_eq!(tree.dump_spatial_node(svg_viewport),- "svg-viewport-transform=[1,0,0,1,1,0] origin=(0,0)"+ "svg-viewport-transform=[1,0,0,1,1,0] origin=(0,0) flattens_inherited_transform=false"+ );+ assert_eq!(+ tree.dump_spatial_node(rotated_in_3d),+ "transform3d=[1,0,0,0,0,0,-1,0,0,1,0,0,0,0,0,1] origin=(0,0) sorting_context_root=s1 synthetic_plane establishes_sorting_context bounds=[0,0 10x20]");assert_eq!(tree.dump_spatial_node(scroll_node), "scroll");assert_eq!(tree.dump_spatial_node(outer_sticky),- "sticky scroller=s3 position_relative_to_scroller=[0,0] border_box_size=[0x0] scrollport_size=[0x0] containing_block_region=[0,0 0x0] needs_parent_offset_adjustment=false insets=[]"+ "sticky scroller=s3 position_relative_to_scroller=[0,0] border_box_origin=[0,0] border_box_size=[0x0] scrollport_size=[0x0] containing_block_region=[0,0 0x0] needs_parent_offset_adjustment=false insets=[]");assert_eq!(tree.dump_spatial_node(inner_sticky),- "sticky scroller=s3 parent_sticky=s4 position_relative_to_scroller=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x16] needs_parent_offset_adjustment=true insets=[top=20, bottom=1.5]"+ "sticky scroller=s3 parent_sticky=s4 position_relative_to_scroller=[0,0] border_box_origin=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x16] needs_parent_offset_adjustment=true insets=[top=20, bottom=1.5]"+ );+ assert_eq!(+ tree.dump_spatial_node(perspective),+ "perspective=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1] flattens_inherited_transform=false"+ );+ assert_eq!(+ tree.dump_spatial_node(backface),+ "backface-hidden plane_root=s1 flattens_inherited_transform=false");- assert_eq!(tree.dump_spatial_node(perspective), "perspective");- assert_eq!(tree.dump_spatial_node(backface), "backface-hidden plane_root=s1");assert_eq!(tree.dump_spatial_node(anchor_shift),"anchor_scroll_shift(node_index=s3, negate, no-x)"@@ -602,6 +687,28 @@ mod node_dump_tests {VISUAL_VIEWPORT_NODE_INDEX,ClipNodeIndex::NONE,);+ let isolated_blurred_backdrop = tree.append_effect(+ EffectNodeData::Effects(EffectsData {+ isolation: true,+ opacity: 1.0,+ blend_mode: CompositingAndBlendingOperator::Normal,+ filter: None,+ backdrop_filter: Some(BackdropFilterData {+ filter: std::sync::Arc::new(+ libgfx_rust::filter::Filter::compose(+ libgfx_rust::filter::Filter::color(libgfx_rust::ColorFilterType::Invert, 1.0, None),+ libgfx_rust::filter::Filter::blur(4.0, 4.0, None),+ )+ .serialize(),+ ),+ region: IntRect::new(1, 2, 30, 40),+ corner_radii: CornerRadii::uniform(3),+ }),+ }),+ EffectNodeIndex::NONE,+ VISUAL_VIEWPORT_NODE_INDEX,+ ClipNodeIndex::NONE,+ );let mask = tree.append_effect(EffectNodeData::Mask(MaskData {rect: IntRect::new(1, 2, 30, 40),@@ -628,10 +735,11 @@ mod node_dump_tests {assert_eq!(tree.dump_effect_node(plain_effects), "effects=[]");assert_eq!(tree.dump_effect_node(full_effects),- format!(- "effects=[opacity=0.5 blend_mode={} filter]",- CompositingAndBlendingOperator::Multiply as i32- )+ "effects=[opacity=0.5 blend_mode=Multiply filter=[unreadable 3 bytes]]"+ );+ assert_eq!(+ tree.dump_effect_node(isolated_blurred_backdrop),+ "effects=[isolation backdrop-filter=[region=[1,2 30x40] corner_radii=[3x3,3x3,3x3,3x3] filter=[blur(4,4) Invert(1)]]]");assert_eq!(tree.dump_effect_node(mask),@@ -736,7 +844,8 @@ mod section_dump_tests {run(scroll_node, escaping_context),run(VISUAL_VIEWPORT_NODE_INDEX, ContextRef::default()),];- let text = tree.dump_nodes_reachable_from_runs(&runs, |kind, index| match (kind, index) {+ let mut names = crate::painting::display_list::dump_format::DumpNames::default();+ let text = tree.dump_nodes_reachable_from_runs(&runs, &mut names, |kind, index| match (kind, index) {(SlotKind::Spatial, 1) => Some("BlockContainer<DIV>#scroller".to_string()),(SlotKind::Clip, 0) => Some("BlockContainer<DIV>#scroller".to_string()),(SlotKind::Effect, 0) => Some("BlockContainer<DIV>#faded".to_string()),diff --git a/Tests/LibWeb/Text/expected/HTML/frame-in-flight/hover-lane-keeps-compositor-animations-of-a-restructured-tree.txt b/Tests/LibWeb/Text/expected/HTML/frame-in-flight/hover-lane-keeps-compositor-animations-of-a-restructured-tree.txtindex 6bf1fe95bf1..c81b2a9849e 100644--- a/Tests/LibWeb/Text/expected/HTML/frame-in-flight/hover-lane-keeps-compositor-animations-of-a-restructured-tree.txt+++ b/Tests/LibWeb/Text/expected/HTML/frame-in-flight/hover-lane-keeps-compositor-animations-of-a-restructured-tree.txt@@ -1,4 +1,4 @@last frame presented by: clockcompositor animations of #b: []-nodes of #b once the host took the hover in: transform=[1,0,0,1,10,0] origin=(50,25)+nodes of #b once the host took the hover in: transform=[1,0,0,1,10,0] origin=(50,25) bounds=[0,0 100x50]compositor animations once the host restructured the tree: transform div#a.moveddiff --git a/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-region-hit-testing.txt b/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-region-hit-testing.txtindex 56740026773..a6a47606f0d 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-region-hit-testing.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-region-hit-testing.txt@@ -8,7 +8,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,100,0] origin=(20,20) (BlockContainer<DIV>#transformed)+ [s2] transform=[1,0,0,1,100,0] origin=(20,20) bounds=[20,20 100x100] (BlockContainer<DIV>#transformed)[s3] scroll (BlockContainer<DIV>#clip)clips:[c0 in s1] clip=[20,160 100x100] (BlockContainer<DIV>#clip)diff --git a/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-regions.txt b/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-regions.txtindex 2a213e35f6e..841c52b9f1e 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-regions.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/blocking-wheel-event-regions.txt@@ -44,8 +44,8 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 200x200CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x100]CompositorBlockingWheelEventRegion@s2/c0/e0 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,100 1000x1000]-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] expanded_thumb_rect=[187,2 11x36] scroll_size=0.17819444444444443 expanded_scroll_size=0.17819444444444443 min_scroll_offset=0 max_scroll_offset=900 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s1/e0-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] expanded_thumb_rect=[2,187 36x11] scroll_size=0.181015625 expanded_scroll_size=0.181015625 min_scroll_offset=0 max_scroll_offset=800 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s1/e0+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] expanded_thumb_rect=[187,2 11x36] scroll_size=0.17819444444444443 expanded_scroll_size=0.17819444444444443 max_scroll_offset=900 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] scroll_size=0.17819444444444443 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] expanded_thumb_rect=[2,187 36x11] scroll_size=0.181015625 expanded_scroll_size=0.181015625 max_scroll_offset=800 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] scroll_size=0.181015625 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/async-scrolling/nested-navigable-wheel-admission.txt b/Tests/LibWeb/Text/expected/async-scrolling/nested-navigable-wheel-admission.txtindex b9856a6ea33..e5fe6939a3c 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/nested-navigable-wheel-admission.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/nested-navigable-wheel-admission.txt@@ -23,6 +23,6 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800xL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800x2000]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800x2000]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[40,40 160x120]-L1 DrawCompositedContext@s1/e0 dst_rect=[40,40 160x120] inline_clips=[clip=[40,40 160x120]]-L0 CompositorNestedContextWheelRegion@s1/e0 rect=[40,40 160x120]+L1 DrawCompositedContext@s1/e0 dst_rect=[40,40 160x120] child_context_id=context1 scaling_mode=NearestNeighbor spatial_node_index=s1 snap_origin_if_untransformed=true inline_clips=[clip=[40,40 160x120]]+L0 CompositorNestedContextWheelRegion@s1/e0 rect=[40,40 160x120] child_context_id=context1diff --git a/Tests/LibWeb/Text/expected/async-scrolling/nested-scroller-keeps-sync-wheel.txt b/Tests/LibWeb/Text/expected/async-scrolling/nested-scroller-keeps-sync-wheel.txtindex 162a4a00661..68d32360d37 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/nested-scroller-keeps-sync-wheel.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/nested-scroller-keeps-sync-wheel.txt@@ -22,6 +22,6 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800x210CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x500]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000]-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s1/e0+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] scroll_size=0.18 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=truediff --git a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-parent-nodes.txt b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-parent-nodes.txtindex ad9bc0b3f0b..8b90898b1e8 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-parent-nodes.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-parent-nodes.txt@@ -7,7 +7,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] sticky scroller=s1 position_relative_to_scroller=[0,0] border_box_size=[800x100] scrollport_size=[800x600] containing_block_region=[0,0 800x2100] needs_parent_offset_adjustment=true insets=[top=0] (BlockContainer<DIV>#sticky)+ [s2] sticky scroller=s1 position_relative_to_scroller=[0,0] border_box_origin=[0,0] border_box_size=[800x100] scrollport_size=[800x600] containing_block_region=[0,0 800x2100] needs_parent_offset_adjustment=true insets=[top=0] (BlockContainer<DIV>#sticky)[s3] scroll (BlockContainer<DIV>#scroller)clips:[c0 in s2] clip=[0,0 100x100] (BlockContainer<DIV>#scroller)@@ -26,8 +26,8 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2CompositorWheelHitTestTarget@s2/e0 target_scroll_node_index=s1 rect=[0,0 800x100]CompositorWheelHitTestTarget@s2/e0 target_scroll_node_index=s3 rect=[0,0 100x100]CompositorWheelHitTestTarget@s3/c0/e0 target_scroll_node_index=s3 rect=[0,0 500x500]-CompositorScrollbar@s2/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s2/e0-CompositorScrollbar@s2/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] expanded_thumb_rect=[2,87 24x11] scroll_size=0.1425 expanded_scroll_size=0.1425 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s2/e0+CompositorScrollbar@s2/e0 scroll_node_index=s3 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s2/e0 scroll_node_index=s3 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] scroll_size=0.18 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s2/e0 scroll_node_index=s3 thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] expanded_thumb_rect=[2,87 24x11] scroll_size=0.1425 expanded_scroll_size=0.1425 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s2/e0 scroll_node_index=s3 thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] scroll_size=0.1425 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txtindex 77c726a8a19..507b5d1d35d 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt@@ -26,8 +26,8 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800x210CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 500x500]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000]-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s1/e0-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] expanded_thumb_rect=[2,87 24x11] scroll_size=0.1425 expanded_scroll_size=0.1425 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s1/e0+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] scroll_size=0.18 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] expanded_thumb_rect=[2,87 24x11] scroll_size=0.1425 expanded_scroll_size=0.1425 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[2,91 24x7] track_rect=[0,91 85x9] expanded_gutter_rect=[0,85 85x15] scroll_size=0.1425 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt b/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txtindex 62d30f45358..737c96606ac 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/sticky-areas.txt@@ -10,8 +10,8 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] sticky scroller=s1 position_relative_to_scroller=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x2016] needs_parent_offset_adjustment=true insets=[top=0] (BlockContainer<DIV>#outer)- [s3] sticky scroller=s1 parent_sticky=s2 position_relative_to_scroller=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x16] needs_parent_offset_adjustment=true insets=[top=20] (BlockContainer<DIV>#inner)+ [s2] sticky scroller=s1 position_relative_to_scroller=[0,0] border_box_origin=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x2016] needs_parent_offset_adjustment=true insets=[top=0] (BlockContainer<DIV>#outer)+ [s3] sticky scroller=s1 parent_sticky=s2 position_relative_to_scroller=[0,0] border_box_origin=[0,0] border_box_size=[800x16] scrollport_size=[800x600] containing_block_region=[0,0 800x16] needs_parent_offset_adjustment=true insets=[top=20] (BlockContainer<DIV>#inner)effects:[e0 in s0] effects=[]@@ -19,5 +19,5 @@ ScrollNodes:ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,1429] is_viewport=trueDisplayList:-DrawGlyphRun@s3/e0 rect=[0,0 45x16] translation=[0,13] color=rgb(0, 0, 0)+DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[0,0 45x16] glyph_bounding_rect=[0,0 51x15] translation=[0,13] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/async-scrolling/viewport-wheel-with-nested-scroller.txt b/Tests/LibWeb/Text/expected/async-scrolling/viewport-wheel-with-nested-scroller.txtindex d79fc616a0a..c67d8e3723e 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/viewport-wheel-with-nested-scroller.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/viewport-wheel-with-nested-scroller.txt@@ -24,6 +24,6 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800x210CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x500]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000]-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 min_scroll_offset=0 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s1/e0+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] expanded_thumb_rect=[87,2 11x24] scroll_size=0.18 expanded_scroll_size=0.18 max_scroll_offset=400 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[91,2 7x24] track_rect=[91,0 9x100] expanded_gutter_rect=[85,0 15x100] scroll_size=0.18 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=truediff --git a/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt b/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txtindex f724610e255..fe88c2df658 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt@@ -31,9 +31,9 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 200x200CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x100]CompositorBlockingWheelEventRegion@s2/c0/e0 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,100 1000x1000]-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] expanded_thumb_rect=[187,2 11x36] scroll_size=0.17819444444444443 expanded_scroll_size=0.17819444444444443 min_scroll_offset=0 max_scroll_offset=900 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s1/e0-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] expanded_thumb_rect=[2,187 36x11] scroll_size=0.181015625 expanded_scroll_size=0.181015625 min_scroll_offset=0 max_scroll_offset=800 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s1/e0+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] expanded_thumb_rect=[187,2 11x36] scroll_size=0.17819444444444443 expanded_scroll_size=0.17819444444444443 max_scroll_offset=900 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[191,2 7x36] track_rect=[191,0 9x200] expanded_gutter_rect=[185,0 15x200] scroll_size=0.17819444444444443 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] expanded_thumb_rect=[2,187 36x11] scroll_size=0.181015625 expanded_scroll_size=0.181015625 max_scroll_offset=800 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[2,191 36x7] track_rect=[0,191 185x9] expanded_gutter_rect=[0,185 185x15] scroll_size=0.181015625 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[250,0 100x100]diff --git a/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt b/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txtindex 89021477e06..f2509924018 100644--- a/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt+++ b/Tests/LibWeb/Text/expected/css/placeholder-css-animation.txt@@ -1,4 +1,4 @@[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)- [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) (BlockContainer<DIV>)+ [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) bounds=[13,11 159.6875x14] (BlockContainer<DIV>)[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)- [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) (BlockContainer<DIV>)+ [s2] transform=[1,0,0,1,50,0] origin=(92.84375,18) bounds=[13,11 159.6875x14] (BlockContainer<DIV>)diff --git a/Tests/LibWeb/Text/expected/css/text-underline-position.txt b/Tests/LibWeb/Text/expected/css/text-underline-position.txtindex 19ccfac3b87..2a50cb01d2f 100644--- a/Tests/LibWeb/Text/expected/css/text-underline-position.txt+++ b/Tests/LibWeb/Text/expected/css/text-underline-position.txt@@ -6,9 +6,9 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,8 28x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 28x16] glyph_bounding_rect=[8,8 30x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,23 27x2] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[35,8 9x16] translation=[35.15625,21] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[43,8 28x16] translation=[43.15625,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[35,8 9x16] glyph_bounding_rect=[35,8 13x15] translation=[35.15625,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[43,8 28x16] glyph_bounding_rect=[43,8 32x15] translation=[43.15625,21] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[43,26 28x2] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/css/will-change-transform-transition-on-compositor.txt b/Tests/LibWeb/Text/expected/css/will-change-transform-transition-on-compositor.txtindex c387b36d1e8..0bbeafeb338 100644--- a/Tests/LibWeb/Text/expected/css/will-change-transform-transition-on-compositor.txt+++ b/Tests/LibWeb/Text/expected/css/will-change-transform-transition-on-compositor.txt@@ -1,4 +1,4 @@-box owns a transform node before the transition: transform=[1,0,0,1,0,0] origin=(18,18)+box owns a transform node before the transition: transform=[1,0,0,1,0,0] origin=(18,18) bounds=[8,8 20x20]transition is still pending: truetransition starts on the compositor:transform div#boxdiff --git a/Tests/LibWeb/Text/expected/display_list/abspos-under-clipped-transformed-opacity.txt b/Tests/LibWeb/Text/expected/display_list/abspos-under-clipped-transformed-opacity.txtindex b77c9947020..58aaeaa550a 100644--- a/Tests/LibWeb/Text/expected/display_list/abspos-under-clipped-transformed-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/abspos-under-clipped-transformed-opacity.txt@@ -2,7 +2,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,5,5] origin=(160,160) (BlockContainer<DIV>#containing-block)+ [s2] transform=[1,0,0,1,5,5] origin=(160,160) bounds=[10,10 300x300] (BlockContainer<DIV>#containing-block)effects:[e0 in s0] effects=[][e1 in s2] effects=[opacity=0.5] (BlockContainer<DIV>#clipped)diff --git a/Tests/LibWeb/Text/expected/display_list/animated-transform-visual-context-update.txt b/Tests/LibWeb/Text/expected/display_list/animated-transform-visual-context-update.txtindex 0adcf7d33a8..22c8a8fa46f 100644--- a/Tests/LibWeb/Text/expected/display_list/animated-transform-visual-context-update.txt+++ b/Tests/LibWeb/Text/expected/display_list/animated-transform-visual-context-update.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,10,0] origin=(58,58) (BlockContainer<DIV>#box)+ [s2] transform=[1,0,0,1,10,0] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>#box)effects:[e0 in s0] effects=[]@@ -15,7 +15,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,15,0] origin=(58,58) (BlockContainer<DIV>#box)+ [s2] transform=[1,0,0,1,15,0] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>#box)effects:[e0 in s0] effects=[]diff --git a/Tests/LibWeb/Text/expected/display_list/backdrop-filter-effect-node.txt b/Tests/LibWeb/Text/expected/display_list/backdrop-filter-effect-node.txtindex e6c994807b2..c8a0ab40b5f 100644--- a/Tests/LibWeb/Text/expected/display_list/backdrop-filter-effect-node.txt+++ b/Tests/LibWeb/Text/expected/display_list/backdrop-filter-effect-node.txt@@ -2,15 +2,15 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,5,5] origin=(70,70) (BlockContainer<DIV>#transformed)- [s3] transform=[1,0,0,1,5,5] origin=(250,70) (BlockContainer<DIV>#plain)+ [s2] transform=[1,0,0,1,5,5] origin=(70,70) bounds=[20,20 100x100] (BlockContainer<DIV>#transformed)+ [s3] transform=[1,0,0,1,5,5] origin=(250,70) bounds=[200,20 100x100] (BlockContainer<DIV>#plain)clips:[c0 in s2] clip_path=[bounds: 20,20 50x100, path: M20 20L70 20L70 120L20 120L20 20Z] (BlockContainer<DIV>#transformed)effects:[e0 in s0] effects=[]- [e1 in s2 out=c0] effects=[opacity=0.5 backdrop-filter=[20,20 100x100]] (BlockContainer<DIV>#transformed)+ [e1 in s2 out=c0] effects=[opacity=0.5 backdrop-filter=[region=[20,20 100x100] corner_radii=[10x10,10x10,10x10,10x10] filter=[Invert(1)]]] (BlockContainer<DIV>#transformed)[e2 in s1] effects=[opacity=0.5] (BlockContainer<DIV>#plain)- [e3 in s1] effects=[backdrop-filter=[400,20 50x50]] (BlockContainer<DIV>#empty)+ [e3 in s1] effects=[backdrop-filter=[region=[400,20 50x50] filter=[blur(2,2)]]] (BlockContainer<DIV>#empty)DisplayList:BackdropFilterRegion@s2/c0/e1 rect=[20,20 100x100]diff --git a/Tests/LibWeb/Text/expected/display_list/background-attachment-change-repaints.txt b/Tests/LibWeb/Text/expected/display_list/background-attachment-change-repaints.txtindex 29f04930b43..02d36b02411 100644--- a/Tests/LibWeb/Text/expected/display_list/background-attachment-change-repaints.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-attachment-change-repaints.txt@@ -7,7 +7,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintLinearGradient@s1/e0 rect=[0,0 200x600] inline_clips=[clip=[0,0 200x200]]+PaintLinearGradient@s1/e0 gradient_rect=[0,0 200x600] gradient_angle=180 color_stops=[rgb(0, 128, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[0,0 200x200]]After background-attachment change:AccumulatedVisualContext Tree:@@ -17,5 +17,5 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintLinearGradient@s0/e0 rect=[0,0 800x600] inline_clips=[clip=[0,0 200x200] in s1]+PaintLinearGradient@s0/e0 gradient_rect=[0,0 800x600] gradient_angle=180 color_stops=[rgb(0, 128, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[0,0 200x200] in s1]diff --git a/Tests/LibWeb/Text/expected/display_list/background-attachment-fixed.txt b/Tests/LibWeb/Text/expected/display_list/background-attachment-fixed.txtindex e228f9a6386..42b4f6ac0ad 100644--- a/Tests/LibWeb/Text/expected/display_list/background-attachment-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-attachment-fixed.txt@@ -8,5 +8,5 @@ ScrollNodes:ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,613] is_viewport=trueDisplayList:-PaintLinearGradient@s0/e0 rect=[0,0 800x600] inline_clips=[clip=[0,0 800x1213] in s1]+PaintLinearGradient@s0/e0 gradient_rect=[0,0 800x600] gradient_angle=180 color_stops=[rgb(0, 128, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[0,0 800x1213] in s1]diff --git a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txtindex c07a3189384..d7e40cf334f 100644--- a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-invalidation.txt@@ -8,8 +8,8 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-PaintLinearGradient@s1/e0 rect=[8,13 100x100] inline_clips=[clip=[8,13 100x100]]-DrawGlyphRun@s1/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+PaintLinearGradient@s1/e0 gradient_rect=[8,13 100x100] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,13 100x100]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)After background-blend-mode change:AccumulatedVisualContext Tree:@@ -21,6 +21,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-PaintLinearGradient@s1/e0 rect=[8,13 100x100] blend_mode=2 inline_clips=[clip=[8,13 100x100]]-DrawGlyphRun@s1/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+PaintLinearGradient@s1/e0 gradient_rect=[8,13 100x100] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} compositing_and_blending_operator=Multiply inline_clips=[clip=[8,13 100x100]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-isolated-group.txt b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-isolated-group.txtindex 779b33037d2..4d08e0da5bd 100644--- a/Tests/LibWeb/Text/expected/display_list/background-blend-mode-isolated-group.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-blend-mode-isolated-group.txt@@ -7,6 +7,6 @@ AccumulatedVisualContext Tree:DisplayList:DrawIsolatedGroup@s1/e0 clip_rect=[8,8 100x50]- PaintLinearGradient@s1/e0 rect=[8,8 100x50] inline_clips=[clip=[8,8 100x50]]- PaintLinearGradient@s1/e0 rect=[8,8 100x50] blend_mode=2 inline_clips=[clip=[8,8 100x50]]+ PaintLinearGradient@s1/e0 gradient_rect=[8,8 100x50] gradient_angle=180 color_stops=[rgb(0, 0, 255) 0, rgb(0, 0, 255) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,8 100x50]]+ PaintLinearGradient@s1/e0 gradient_rect=[8,8 100x50] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(255, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} compositing_and_blending_operator=Multiply inline_clips=[clip=[8,8 100x50]]diff --git a/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txtindex 3e8f4795adc..51dfa21856c 100644--- a/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/background-clip-text-color-invalidation.txt@@ -7,7 +7,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,13 71x30] translation=[8,37] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0)After background-color change:AccumulatedVisualContext Tree:@@ -18,9 +18,9 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawIsolatedGroup@s1/e0 clip_rect=[8,13 100x50] has_mask=alpha+DrawIsolatedGroup@s1/e0 clip_rect=[8,13 100x50]FillRect@s1/e0 rect=[8,13 100x50] color=rgb(0, 0, 255)Mask:- DrawGlyphRun@s1/e0 rect=[8,13 71x30] translation=[8,37] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,13 71x30] translation=[8,37] color=rgb(0, 0, 0)+ DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,13 71x30] glyph_bounding_rect=[8,14 83x27] translation=[8,37] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt b/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txtindex d416b8d4dfe..ecd48a93e43 100644--- a/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt+++ b/Tests/LibWeb/Text/expected/display_list/block-in-inline-no-border-for-phantom-inline-box.txt@@ -6,9 +6,9 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRoundedRectRing@s1/e0 rect=[0,3 8x14] widths=[2,0,2,2] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e0 rect=[2,5 6x10] translation=[2,13] color=rgb(0, 0, 0)-FillRoundedRectRing@s1/e0 rect=[0,63 8x14] widths=[2,2,2,0] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e0 rect=[0,65 6x10] translation=[0,73] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[100,55 7x10] translation=[100,63] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[0,3 8x14] top_width=2 bottom_width=2 left_width=2 color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[2,5 6x10] glyph_bounding_rect=[2,5 8x9] translation=[2,13] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[0,63 8x14] top_width=2 right_width=2 bottom_width=2 color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[0,65 6x10] glyph_bounding_rect=[0,65 8x9] translation=[0,73] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[100,55 7x10] glyph_bounding_rect=[100,55 8x9] translation=[100,63] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/border-inner-corner-right-angle-all-edges.txt b/Tests/LibWeb/Text/expected/display_list/border-inner-corner-right-angle-all-edges.txtindex 3d00d3b0c3b..daa683739b4 100644--- a/Tests/LibWeb/Text/expected/display_list/border-inner-corner-right-angle-all-edges.txt+++ b/Tests/LibWeb/Text/expected/display_list/border-inner-corner-right-angle-all-edges.txt@@ -6,12 +6,12 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s1/e0 path_bounding_rect=[166,12.651531 20x110.696945]-FillPath@s1/e0 path_bounding_rect=[11.232849,113 168.56511x15]-FillPath@s1/e0 path_bounding_rect=[7.999998,14.061594 8.000002x107.876816]-FillPath@s1/e0 path_bounding_rect=[11.232849,8 168.56511x15]-FillPath@s1/e0 path_bounding_rect=[173,134.20204 15x117.59592]-FillPath@s1/e0 path_bounding_rect=[12.651531,238 170.69693x20]-FillPath@s1/e0 path_bounding_rect=[8,134.20204 15x117.59592]-FillPath@s1/e0 path_bounding_rect=[12.651531,128 170.69693x20]+FillPath@s1/e0 path_bounding_rect=[166,12.651531 20x110.696945] path_data=[curved path: 20 commands] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[11.232849,113 168.56511x15] path_data=[curved path: 52 commands] color=rgb(0, 128, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[7.999998,14.061594 8.000002x107.876816] path_data=[curved path: 12 commands] color=rgb(255, 165, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[11.232849,8 168.56511x15] path_data=[curved path: 52 commands] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[173,134.20204 15x117.59592] path_data=[curved path: 36 commands] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[12.651531,238 170.69693x20] path_data=[curved path: 20 commands] color=rgb(0, 128, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,134.20204 15x117.59592] path_data=[curved path: 36 commands] color=rgb(255, 165, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[12.651531,128 170.69693x20] path_data=[curved path: 20 commands] color=rgb(255, 0, 0) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txtindex 981ac7bfa44..19c2ceee987 100644--- a/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/border-radius-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)After border-radius change:AccumulatedVisualContext Tree:@@ -23,6 +23,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[8,13 100x100] color=rgb(173, 216, 230) corner_radii=[20x20,20x20,20x20,20x20]+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txtindex e493d95cb1b..0364dbf172d 100644--- a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt+++ b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 98x20] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/e0 rect=[8,8 98x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/e0 rect=[17,11 80x14] translation=[17,22] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[8,8 98x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[8,8 98x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=11 rect=[17,11 80x14] glyph_bounding_rect=[17,12 83x12] translation=[17,22] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[17,24 80x1] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/canvas-compositor-surface.txt b/Tests/LibWeb/Text/expected/display_list/canvas-compositor-surface.txtindex 560de291d29..4980f5c1379 100644--- a/Tests/LibWeb/Text/expected/display_list/canvas-compositor-surface.txt+++ b/Tests/LibWeb/Text/expected/display_list/canvas-compositor-surface.txt@@ -10,5 +10,5 @@ Layers:[L1] canvas rect=[5,5 38x38] shown by the window server: clip=[0,0 800x600]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[8,8 32x32]+L1 DrawCanvas@s1/e0 dst_rect=[8,8 32x32] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/canvas-drawn-on-after-layout-reached-it.txt b/Tests/LibWeb/Text/expected/display_list/canvas-drawn-on-after-layout-reached-it.txtindex 2e2f0d2ee52..40e4dd43e3c 100644--- a/Tests/LibWeb/Text/expected/display_list/canvas-drawn-on-after-layout-reached-it.txt+++ b/Tests/LibWeb/Text/expected/display_list/canvas-drawn-on-after-layout-reached-it.txt@@ -10,5 +10,5 @@ Layers:[L1] canvas rect=[5,5 206x126] shown by the window server: clip=[0,0 800x600]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[8,8 200x120]+L1 DrawCanvas@s1/e0 dst_rect=[8,8 200x120] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txtindex 0a4a9f60256..2aee54b97d3 100644--- a/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/clip-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)After clip change:AccumulatedVisualContext Tree:@@ -24,5 +24,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,13 30x16] translation=[8,26] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,13 30x16] glyph_bounding_rect=[8,14 33x15] translation=[8,26] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txtindex 7d5edafb0da..3137225d611 100644--- a/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/clip-path-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,8 30x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0)After clip-path change:AccumulatedVisualContext Tree:@@ -24,5 +24,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/c0/e0 rect=[8,8 30x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt b/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txtindex 1ab220bb5fc..c77dd0a3403 100644--- a/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt+++ b/Tests/LibWeb/Text/expected/display_list/color-and-file-input-appearance.txt@@ -9,13 +9,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 50x27] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/e0 rect=[8,8 50x27] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)+FillRectWithRoundedCorners@s1/e0 rect=[8,8 50x27] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[8,8 50x27] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)FillRect@s1/c0/e0 rect=[13,14 40x15] color=rgb(68, 136, 255)-FillRoundedRectRing@s1/c0/e0 rect=[13,14 40x15] widths=[1,1,1,1] color=rgb(119, 119, 119)-DrawGlyphRun@s1/e0 rect=[58,16 8x16] translation=[58,29] color=rgb(0, 0, 0)-FillRectWithRoundedCorners@s1/c1/e0 rect=[66,15 97x20] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/c1/e0 rect=[66,15 97x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c1/e0 rect=[75,18 79x14] translation=[75,29] color=rgb(0, 0, 0)-DrawGlyphRun@s1/c1/e0 rect=[166,18 108x14] translation=[166.65625,29] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/c0/e0 rect=[13,14 40x15] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(119, 119, 119)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=1 rect=[58,16 8x16] glyph_bounding_rect=[58,16 13x15] translation=[58,29] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/c1/e0 rect=[66,15 97x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/c1/e0 rect=[66,15 97x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=14 rect=[75,18 79x14] glyph_bounding_rect=[75,19 86x12] translation=[75,29] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c1/e0 font_id=font2 glyphs=17 rect=[166,18 108x14] glyph_bounding_rect=[167,19 114x12] translation=[166.65625,29] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txtindex 5a8b72997b7..bb489ed95f3 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-3d-sorting-context.txt@@ -2,15 +2,15 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,0,0] origin=(0,0) (BlockContainer<DIV>#scene)- [s3] perspective (BlockContainer<DIV>#scene)- [s4] transform=[0.9396926,0,0,1,0,0] origin=(58,181) (BlockContainer<DIV>#card)+ [s2] transform=[1,0,0,1,0,0] origin=(0,0) synthetic_plane establishes_sorting_context (BlockContainer<DIV>#scene)+ [s3] perspective=[1,0,-0.316,0,0,1,-0.462,0,0,0,1,0,0,0,-0.002,1] flattens_inherited_transform=false (BlockContainer<DIV>#scene)+ [s4] transform3d=[0.9396926,0,0.34202012,0,0,1,0,0,-0.34202012,0,0.9396926,0,0,0,0,1] origin=(58,181) sorting_context_root=s2 flattens_inherited_transform=false bounds=[8,131 100x100] (BlockContainer<DIV>#card)effects:[e0 in s0] effects=[]Layers: none (3D sorting context)DisplayList:-DrawCanvas@s1/e0 dst_rect=[8,8 200x120]+DrawCanvas@s1/e0 dst_rect=[8,8 200x120] canvas_id=canvas1 scaling_mode=BilinearFillRect@s4/e0 rect=[8,131 100x100] color=rgb(255, 165, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-in-opacity-group-over-canvas.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-in-opacity-group-over-canvas.txtindex cd13c284044..9b5991dd7ed 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-in-opacity-group-over-canvas.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-in-opacity-group-over-canvas.txt@@ -5,7 +5,7 @@ AccumulatedVisualContext Tree:effects:[e0 in s0] effects=[][e1 in s1] effects=[opacity=0.9] (BlockContainer<DIV>#group)- [e2 in s1] effects=[backdrop-filter=[60,60 100x40]] (BlockContainer<DIV>#frosted)+ [e2 in s1] effects=[backdrop-filter=[region=[60,60 100x40] filter=[blur(4,4)]]] (BlockContainer<DIV>#frosted)Layers:[L0] base rect=[0,0 800x600]@@ -13,6 +13,6 @@ Layers:[L2] painted rect=[57,57 106x46]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120]+L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=BilinearL2 BackdropFilterRegion@s1/e2 rect=[60,60 100x40]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-canvas.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-canvas.txtindex f81c372f7ab..cc9dd25c719 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-canvas.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-canvas.txt@@ -4,11 +4,11 @@ AccumulatedVisualContext Tree:[s1] scroll (Viewport<#document>)effects:[e0 in s0] effects=[]- [e1 in s1] effects=[backdrop-filter=[60,60 100x40]] (BlockContainer<DIV>#frosted)+ [e1 in s1] effects=[backdrop-filter=[region=[60,60 100x40] filter=[blur(4,4)]]] (BlockContainer<DIV>#frosted)Layers: none (canvas under a backdrop filter that reads the root group)DisplayList:-DrawCanvas@s1/e0 dst_rect=[20,20 200x120]+DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=BilinearBackdropFilterRegion@s1/e1 rect=[60,60 100x40]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-content-over-canvas.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-content-over-canvas.txtindex 8b1d7322b9d..2fd5d52c831 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-content-over-canvas.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filter-over-content-over-canvas.txt@@ -4,12 +4,12 @@ AccumulatedVisualContext Tree:[s1] scroll (Viewport<#document>)effects:[e0 in s0] effects=[]- [e1 in s1] effects=[backdrop-filter=[300,120 60x40]] (BlockContainer<DIV>#frosted)+ [e1 in s1] effects=[backdrop-filter=[region=[300,120 60x40] filter=[Grayscale(1)]]] (BlockContainer<DIV>#frosted)Layers: none (canvas under a backdrop filter that reads the root group)DisplayList:-DrawCanvas@s1/e0 dst_rect=[20,20 200x120]+DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=BilinearFillRect@s1/e0 rect=[180,100 200x40] color=rgba(255, 255, 255, 0.5)BackdropFilterRegion@s1/e1 rect=[300,120 60x40]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filters-beside-canvases.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filters-beside-canvases.txtindex 0b2a769b1a0..481994758c9 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filters-beside-canvases.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-backdrop-filters-beside-canvases.txt@@ -4,16 +4,16 @@ AccumulatedVisualContext Tree:[s1] scroll (Viewport<#document>)effects:[e0 in s0] effects=[]- [e1 in s1] effects=[backdrop-filter=[240,60 100x40]] (BlockContainer<DIV>#grayscale-beside-left.frosted)- [e2 in s1] effects=[backdrop-filter=[610,60 100x40]] (BlockContainer<DIV>#blur-reaching-into-right.frosted)+ [e1 in s1] effects=[backdrop-filter=[region=[240,60 100x40] filter=[Grayscale(1)]]] (BlockContainer<DIV>#grayscale-beside-left.frosted)+ [e2 in s1] effects=[backdrop-filter=[region=[610,60 100x40] filter=[blur(8,8)]]] (BlockContainer<DIV>#blur-reaching-into-right.frosted)Layers:[L0] base rect=[0,0 800x600][L1] canvas rect=[17,17 206x126] shown by the window server: clip=[0,0 800x600]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120]-L0 DrawCanvas@s1/e0 dst_rect=[400,20 200x120]+L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=Bilinear+L0 DrawCanvas@s1/e0 dst_rect=[400,20 200x120] canvas_id=canvas2 scaling_mode=BilinearL0 BackdropFilterRegion@s1/e1 rect=[240,60 100x40]L0 BackdropFilterRegion@s1/e2 rect=[610,60 100x40]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-in-opacity-group.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-in-opacity-group.txtindex 8d99b85b110..8e936b7e754 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-in-opacity-group.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-in-opacity-group.txt@@ -9,5 +9,5 @@ AccumulatedVisualContext Tree:Layers: none (canvas inside a group effect)DisplayList:-DrawCanvas@s1/e1 dst_rect=[8,8 200x120]+DrawCanvas@s1/e1 dst_rect=[8,8 200x120] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-outside-viewport.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-outside-viewport.txtindex 322d60e2a4d..67861dc16e7 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-outside-viewport.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-outside-viewport.txt@@ -8,5 +8,5 @@ AccumulatedVisualContext Tree:Layers: none (canvas draws nothing visible)DisplayList:-DrawCanvas@s1/e0 dst_rect=[-1000,20 200x120]+DrawCanvas@s1/e0 dst_rect=[-1000,20 200x120] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-clip-path.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-clip-path.txtindex 7ec00c8227a..d6c87ed742c 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-clip-path.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-clip-path.txt@@ -12,5 +12,5 @@ Layers:[L1] canvas rect=[67,27 106x106] replayed: clipped by a pathDisplayList:-L1 DrawCanvas@s1/c0/e0 dst_rect=[20,20 200x120]+L1 DrawCanvas@s1/c0/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-perspective-transform.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-perspective-transform.txtindex 1820333d088..ff4b6f6bd54 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-perspective-transform.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-perspective-transform.txt@@ -2,12 +2,12 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9396926,0,0,1,0,0] origin=(108,68) (CanvasBox<CANVAS>#canvas)+ [s2] transform3d=[0.9396926,0,0.34202012,0,0,1,0,0,-0.34202012,0,0.9396926,0,0.0006840403,0,-0.0018793853,1] origin=(108,68) bounds=[8,8 200x120] (CanvasBox<CANVAS>#canvas)effects:[e0 in s0] effects=[]Layers: none (canvas under a transform that is not 2D affine)DisplayList:-DrawCanvas@s2/e0 dst_rect=[8,8 200x120]+DrawCanvas@s2/e0 dst_rect=[8,8 200x120] canvas_id=canvas1 scaling_mode=Bilineardiff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-translucent-box.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-translucent-box.txtindex 1bd25e8398b..a32a1735559 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-translucent-box.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-canvas-under-translucent-box.txt@@ -11,9 +11,9 @@ Layers:[L2] painted rect=[57,57 106x46]DisplayList:-L0 DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x13] clip_rect=[0,0 800x600] tile_size=[800x13] tile_step=[800x13] scaling_mode=Bilinear inline_clips=[clip=[0,0 800x600]]- PaintLinearGradient@s1/e0 rect=[0,0 800x13]-L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] inline_clips=[clip=[20,20 200x120] radii=(12,12,12,12)]+L0 DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x13] clip_rect=[0,0 800x600] tile_size=[800x13] tile_step=[800x13] scaling_mode=Bilinear repeat={x=true y=true} inline_clips=[clip=[0,0 800x600]]+ PaintLinearGradient@s1/e0 gradient_rect=[0,0 800x13] gradient_angle=90 color_stops=[rgb(238, 238, 255) 0, rgb(255, 238, 238) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb}+L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=Bilinear inline_clips=[clip=[20,20 200x120] radii=(12,12,12,12)]L2 FillRect@s1/e0 rect=[60,60 100x40] color=rgba(255, 255, 255, 0.5)L0 FillRect@s1/e0 rect=[300,300 50x50] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-and-canvas.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-and-canvas.txtindex 8e668a0bc83..d775419fd62 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-and-canvas.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-and-canvas.txt@@ -15,10 +15,10 @@ DisplayList:L0 CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x13]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[20,20 200x120]-L1 DrawCompositedContext@s1/e0 dst_rect=[20,20 200x120] inline_clips=[clip=[20,20 200x120]]-L0 CompositorNestedContextWheelRegion@s1/e0 rect=[20,20 200x120]+L1 DrawCompositedContext@s1/e0 dst_rect=[20,20 200x120] child_context_id=context1 scaling_mode=NearestNeighbor spatial_node_index=s1 snap_origin_if_untransformed=true inline_clips=[clip=[20,20 200x120]]+L0 CompositorNestedContextWheelRegion@s1/e0 rect=[20,20 200x120] child_context_id=context1L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[300,20 200x120]-L2 DrawCanvas@s1/e0 dst_rect=[300,20 200x120]+L2 DrawCanvas@s1/e0 dst_rect=[300,20 200x120] canvas_id=canvas1 scaling_mode=BilinearL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[100,60 300x40]L3 FillRect@s1/e0 rect=[100,60 300x40] color=rgba(255, 255, 255, 0.5)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txtindex b33162bbd1c..d09773269aa 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-in-opacity-group.txt@@ -14,6 +14,6 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x136CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x123]CompositorWheelHitTestTarget@s1/e1 target_scroll_node_index=s0 rect=[0,0 800x123]CompositorWheelHitTestTarget@s1/e1 target_scroll_node_index=s0 rect=[0,0 200x120]-DrawCompositedContext@s1/e1 dst_rect=[0,0 200x120] inline_clips=[clip=[0,0 200x120]]-CompositorNestedContextWheelRegion@s1/e1 rect=[0,0 200x120]+DrawCompositedContext@s1/e1 dst_rect=[0,0 200x120] child_context_id=context1 scaling_mode=NearestNeighbor spatial_node_index=s1 snap_origin_if_untransformed=true inline_clips=[clip=[0,0 200x120]]+CompositorNestedContextWheelRegion@s1/e1 rect=[0,0 200x120] child_context_id=context1diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-under-content.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-under-content.txtindex 27936f69cbf..907a466b27b 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-under-content.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-iframe-under-content.txt@@ -14,8 +14,8 @@ DisplayList:L0 CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x13]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[20,20 200x120]-L1 DrawCompositedContext@s1/e0 dst_rect=[20,20 200x120] inline_clips=[clip=[20,20 200x120]]-L0 CompositorNestedContextWheelRegion@s1/e0 rect=[20,20 200x120]+L1 DrawCompositedContext@s1/e0 dst_rect=[20,20 200x120] child_context_id=context1 scaling_mode=NearestNeighbor spatial_node_index=s1 snap_origin_if_untransformed=true inline_clips=[clip=[20,20 200x120]]+L0 CompositorNestedContextWheelRegion@s1/e0 rect=[20,20 200x120] child_context_id=context1L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[100,60 200x40]L2 FillRect@s1/e0 rect=[100,60 200x40] color=rgba(255, 255, 255, 0.5)L2 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[400,300 50x20]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txtindex 46e95cfbde9..f3d59653582 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-root-blend-mode.txt@@ -4,11 +4,11 @@ AccumulatedVisualContext Tree:[s1] scroll (Viewport<#document>)effects:[e0 in s0] effects=[]- [e1 in s1] effects=[blend_mode=2] (BlockContainer<DIV>)+ [e1 in s1] effects=[blend_mode=Multiply] (BlockContainer<DIV>)Layers: none (blend mode reads the root group)DisplayList:-DrawCanvas@s1/e0 dst_rect=[8,8 200x120]+DrawCanvas@s1/e0 dst_rect=[8,8 200x120] canvas_id=canvas1 scaling_mode=BilinearFillRect@s1/e1 rect=[8,131 50x50] color=rgb(255, 165, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-rotated-video.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-rotated-video.txtindex 845a3f9a4ac..2bfffc53e90 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-rotated-video.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-rotated-video.txt@@ -2,7 +2,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0,-1,1,0,0,0] origin=(260,190) (VideoBox<VIDEO>#video)+ [s2] transform=[0,-1,1,0,0,0] origin=(260,190) bounds=[100,100 320x180] (VideoBox<VIDEO>#video)effects:[e0 in s0] effects=[]@@ -11,5 +11,5 @@ Layers:[L1] video rect=[167,27 186x326] shown by the window server: transform=[0,1,-1,0,450,-70] clip=[0,0 800x600]DisplayList:-L1 DrawVideoFrame@s2/e0 dst_rect=[100,100 320x180] inline_clips=[clip=[100,100 320x180]]+L1 DrawVideoFrame@s2/e0 dst_rect=[100,100 320x180] video_sink_handle=video1 scaling_mode=BilinearMipmap inline_clips=[clip=[100,100 320x180]]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-rounded-canvas-in-rounded-scroller.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-rounded-canvas-in-rounded-scroller.txtindex 9230ad3ab16..a565f2a7f16 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-rounded-canvas-in-rounded-scroller.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-rounded-canvas-in-rounded-scroller.txt@@ -22,9 +22,9 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800xL0 CompositorWheelHitTestTargetWithCornerRadii@s1/e0 target_scroll_node_index=s2 rect=[20,20 180x100] corner_radii=[20x20,20x20,20x20,20x20]L0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[20,140 180x300]L0 CompositorWheelHitTestTargetWithCornerRadii@s2/c0/e0 target_scroll_node_index=s2 rect=[20,20 200x120] corner_radii=[8x8,8x8,8x8,8x8]-L1 DrawCanvas@s2/c0/e0 dst_rect=[20,20 200x120] inline_clips=[clip=[20,20 200x120] radii=(8,8,8,8)]-L0 CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[191,22 7x24] track_rect=[191,20 9x100] expanded_gutter_rect=[185,20 15x100] expanded_thumb_rect=[187,22 11x24] scroll_size=0.225 expanded_scroll_size=0.225 min_scroll_offset=0 max_scroll_offset=320 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-L2 PaintScrollBar@s1/e0-L2 CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[22,111 145x7] track_rect=[20,111 165x9] expanded_gutter_rect=[20,105 165x15] expanded_thumb_rect=[22,107 145x11] scroll_size=0.80546875 expanded_scroll_size=0.80546875 min_scroll_offset=0 max_scroll_offset=20 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-L2 PaintScrollBar@s1/e0+L1 DrawCanvas@s2/c0/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=Bilinear inline_clips=[clip=[20,20 200x120] radii=(8,8,8,8)]+L0 CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[191,22 7x24] track_rect=[191,20 9x100] expanded_gutter_rect=[185,20 15x100] expanded_thumb_rect=[187,22 11x24] scroll_size=0.225 expanded_scroll_size=0.225 max_scroll_offset=320 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+L2 PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[191,22 7x24] track_rect=[191,20 9x100] expanded_gutter_rect=[185,20 15x100] scroll_size=0.225 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+L2 CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[22,111 145x7] track_rect=[20,111 165x9] expanded_gutter_rect=[20,105 165x15] expanded_thumb_rect=[22,107 145x11] scroll_size=0.80546875 expanded_scroll_size=0.80546875 max_scroll_offset=20 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+L2 PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[22,111 145x7] track_rect=[20,111 165x9] expanded_gutter_rect=[20,105 165x15] scroll_size=0.80546875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-transformed-boxes-beside-canvas.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-transformed-boxes-beside-canvas.txtindex 378e484641d..333348c91f8 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-transformed-boxes-beside-canvas.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-transformed-boxes-beside-canvas.txt@@ -2,10 +2,10 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(255,175) (BlockContainer<DIV>#rotated-with-only-bounding-box-on-canvas)- [s3] transform=[3,0,0,3,0,0] origin=(270,80) (BlockContainer<DIV>#scaled-onto-canvas)- [s4] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(630,430) (BlockContainer<DIV>#rotated-clear-of-canvas)- [s5] transform=[3,0,0,3,0,0] origin=(120,470) (BlockContainer<DIV>#scaled-clear-of-canvas)+ [s2] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(255,175) bounds=[225,145 60x60] (BlockContainer<DIV>#rotated-with-only-bounding-box-on-canvas)+ [s3] transform=[3,0,0,3,0,0] origin=(270,80) bounds=[250,60 40x40] (BlockContainer<DIV>#scaled-onto-canvas)+ [s4] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(630,430) bounds=[600,400 60x60] (BlockContainer<DIV>#rotated-clear-of-canvas)+ [s5] transform=[3,0,0,3,0,0] origin=(120,470) bounds=[100,450 40x40] (BlockContainer<DIV>#scaled-clear-of-canvas)effects:[e0 in s0] effects=[]@@ -15,7 +15,7 @@ Layers:[L2] painted rect=[207,17 126x204]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120]+L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=BilinearL2 FillRect@s2/e0 rect=[225,145 60x60] color=rgb(0, 128, 0)L2 FillRect@s3/e0 rect=[250,60 40x40] color=rgb(0, 128, 0)L0 FillRect@s4/e0 rect=[600,400 60x60] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-two-canvases.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-two-canvases.txtindex 7690f56b7bd..68a5a948eff 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-two-canvases.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-two-canvases.txt@@ -12,8 +12,8 @@ Layers:[L3] painted rect=[97,57 356x66]DisplayList:-L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120]-L2 DrawCanvas@s1/e0 dst_rect=[300,20 200x120]+L1 DrawCanvas@s1/e0 dst_rect=[20,20 200x120] canvas_id=canvas1 scaling_mode=Bilinear+L2 DrawCanvas@s1/e0 dst_rect=[300,20 200x120] canvas_id=canvas2 scaling_mode=BilinearL3 FillRect@s1/e0 rect=[100,60 300x40] color=rgba(255, 255, 255, 0.5)L3 FillRect@s1/e0 rect=[400,100 50x20] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-in-rotated-overflow-box.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-in-rotated-overflow-box.txtindex 70f1594b2de..52b6bec5c9b 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-in-rotated-overflow-box.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-in-rotated-overflow-box.txt@@ -2,7 +2,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9848077,-0.17364818,0.17364818,0.9848077,0,0] origin=(200,175) (BlockContainer<DIV>#box)+ [s2] transform=[0.9848077,-0.17364818,0.17364818,0.9848077,0,0] origin=(200,175) bounds=[100,100 320x183] (BlockContainer<DIV>#box)[s3] scroll (BlockContainer<DIV>#box)clips:[c0 in s2] clip=[100,100 200x150] (BlockContainer<DIV>#box)@@ -17,5 +17,5 @@ Layers:[L1] video rect=[85,80 230x190] replayed: clipped in a rotated or skewed spaceDisplayList:-L1 DrawVideoFrame@s3/c0/e0 dst_rect=[100,100 320x180] inline_clips=[clip=[100,100 320x180]]+L1 DrawVideoFrame@s3/c0/e0 dst_rect=[100,100 320x180] video_sink_handle=video1 scaling_mode=BilinearMipmap inline_clips=[clip=[100,100 320x180]]diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txtindex c6849b8176a..3b1eff6f73a 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-under-captions.txt@@ -11,7 +11,7 @@ Layers:[L2] painted rect=[27,197 209x30]DisplayList:-L1 DrawVideoFrame@s1/e0 dst_rect=[10,40 320x180] inline_clips=[clip=[10,10 320x240], clip=[10,10 320x240] radii=(16,16,16,16)]+L1 DrawVideoFrame@s1/e0 dst_rect=[10,40 320x180] video_sink_handle=video1 scaling_mode=BilinearMipmap inline_clips=[clip=[10,10 320x240], clip=[10,10 320x240] radii=(16,16,16,16)]L2 FillRect@s1/e0 rect=[30,200 203x24] color=rgba(0, 0, 0, 0.6)-L2 DrawGlyphRun@s1/e0 rect=[34,204 195x16] translation=[34,217] color=rgb(255, 255, 255)+L2 DrawGlyphRun@s1/e0 font_id=font1 glyphs=23 rect=[34,204 195x16] glyph_bounding_rect=[34,204 197x15] translation=[34,217] color=rgb(255, 255, 255)diff --git a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-with-differing-corner-radii.txt b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-with-differing-corner-radii.txtindex 7fb7e4602f0..276126751ab 100644--- a/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-with-differing-corner-radii.txt+++ b/Tests/LibWeb/Text/expected/display_list/compositing-layers-video-with-differing-corner-radii.txt@@ -10,5 +10,5 @@ Layers:[L1] video rect=[7,7 326x246] replayed: rounded corners of differing radiiDisplayList:-L1 DrawVideoFrame@s1/e0 dst_rect=[10,10 320x240] inline_clips=[clip=[10,10 320x240], clip=[10,10 320x240] radii=(4,16,4,16)]+L1 DrawVideoFrame@s1/e0 dst_rect=[10,10 320x240] video_sink_handle=video1 scaling_mode=BilinearMipmap inline_clips=[clip=[10,10 320x240], clip=[10,10 320x240] radii=(4,16,4,16)]diff --git a/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt b/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txtindex abf64246b60..6d0528699d2 100644--- a/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt@@ -6,6 +6,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintCaret@s1/e0 rect=[8,8 1x16] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[6,6 104x24] widths=[2,2,2,2] color=rgb(61, 174, 233)+PaintCaret@s1/e0 rect=[8,8 1x16] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[6,6 104x24] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)diff --git a/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt b/Tests/LibWeb/Text/expected/display_list/css-clip-property.txtindex 40415d26f83..79c91c5ff0a 100644--- a/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt+++ b/Tests/LibWeb/Text/expected/display_list/css-clip-property.txt@@ -9,6 +9,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,13 150x150] color=rgb(128, 0, 128)-DrawGlyphRun@s1/c0/e0 rect=[8,13 71x16] translation=[8,26] color=rgb(0, 0, 0)-DrawGlyphRun@s1/c0/e0 rect=[8,29 72x16] translation=[8,42] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,13 71x16] glyph_bounding_rect=[8,14 75x15] translation=[8,26] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=8 rect=[8,29 72x16] glyph_bounding_rect=[8,30 78x15] translation=[8,42] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/dashed-border-with-border-radius.txt b/Tests/LibWeb/Text/expected/display_list/dashed-border-with-border-radius.txtindex 0690cd6592c..5f46edbf49c 100644--- a/Tests/LibWeb/Text/expected/display_list/dashed-border-with-border-radius.txt+++ b/Tests/LibWeb/Text/expected/display_list/dashed-border-with-border-radius.txt@@ -6,16 +6,16 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-StrokePath@s1/e0 path_bounding_rect=[8,8 120x80] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=29.73-StrokePath@s1/e0 path_bounding_rect=[110.677666,95.322334 17.322334x65.35534] thickness=10 color=rgb(0, 0, 255) dash_array_size=2 dash_offset=14.82 inline_clips=[clip_path=[bounds: [112,96 16x64], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[15.322332,150.67767 105.35533x17.322327] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=12.41 inline_clips=[clip_path=[bounds: [16,152 104x16], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[7.999999,95.322334 17.322334x65.35534] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=14.82 inline_clips=[clip_path=[bounds: [8,96 16x64], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[15.322332,88 105.35533x17.322334] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=12.41 inline_clips=[clip_path=[bounds: [16,88 104x16], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[8,168 120x80] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=30.93-StrokePath@s1/e0 path_bounding_rect=[8,248 120x80] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=9.91-StrokePath@s1/e0 path_bounding_rect=[110.677666,335.32233 17.322334x65.35535] thickness=10 color=rgb(0, 0, 255) dash_array_size=2 dash_offset=9.88 inline_clips=[clip_path=[bounds: [112,336 16x64], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[15.322332,390.67767 105.35533x17.322327] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=9.93 inline_clips=[clip_path=[bounds: [16,392 104x16], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[7.999999,335.32233 17.322334x65.35535] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=9.88 inline_clips=[clip_path=[bounds: [8,336 16x64], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[15.322332,328 105.35533x17.322327] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=9.93 inline_clips=[clip_path=[bounds: [16,328 104x16], curved path: 68 commands]]-StrokePath@s1/e0 path_bounding_rect=[8,408 120x80] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=10.31+StrokePath@s1/e0 dash_array=[19.817476, 19.817476] dash_offset=29.726215 path_bounding_rect=[8,8 120x80] path_data=[curved path: 135 commands] color=rgb(255, 0, 0) thickness=10+StrokePath@s1/e0 dash_array=[29.634956, 29.634956] dash_offset=14.817478 path_bounding_rect=[110.677666,95.322334 17.322334x65.35534] path_data=[curved path: 34 commands] color=rgb(0, 0, 255) thickness=10 inline_clips=[clip_path=[bounds: [112,96 16x64], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[24.817474, 24.817474] dash_offset=12.408737 path_bounding_rect=[15.322332,150.67767 105.35533x17.322327] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [16,152 104x16], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[29.634954, 29.634954] dash_offset=14.817477 path_bounding_rect=[7.999999,95.322334 17.322334x65.35534] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [8,96 16x64], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[24.817476, 24.817476] dash_offset=12.408738 path_bounding_rect=[15.322332,88 105.35533x17.322334] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [16,88 104x16], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[20.622234, 20.622234] dash_offset=30.933352 path_bounding_rect=[8,168 120x80] path_data=[curved path: 39 commands] color=rgb(255, 0, 0) thickness=10+StrokePath@s1/e0 cap_style=Round dash_array=[0, 19.817476] dash_offset=9.908738 path_bounding_rect=[8,248 120x80] path_data=[curved path: 135 commands] color=rgb(255, 0, 0) thickness=10+StrokePath@s1/e0 cap_style=Round dash_array=[0, 19.75664] dash_offset=9.87832 path_bounding_rect=[110.677666,335.32233 17.322334x65.35535] path_data=[curved path: 34 commands] color=rgb(0, 0, 255) thickness=10 inline_clips=[clip_path=[bounds: [112,336 16x64], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 19.85398] dash_offset=9.92699 path_bounding_rect=[15.322332,390.67767 105.35533x17.322327] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [16,392 104x16], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 19.75664] dash_offset=9.87832 path_bounding_rect=[7.999999,335.32233 17.322334x65.35535] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [8,336 16x64], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 19.85398] dash_offset=9.92699 path_bounding_rect=[15.322332,328 105.35533x17.322327] path_data=[curved path: 34 commands] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [16,328 104x16], curved path: 68 commands] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 20.622234] dash_offset=10.311117 path_bounding_rect=[8,408 120x80] path_data=[curved path: 39 commands] color=rgb(255, 0, 0) thickness=10diff --git a/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt b/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txtindex c9b14890f6f..a832e354d0a 100644--- a/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt+++ b/Tests/LibWeb/Text/expected/display_list/deep-branching-tree.txt@@ -2,10 +2,10 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9961947,-0.08715574,0.08715574,0.9961947,0,0] origin=(91,56) (BlockContainer<DIV>.leaf.leaf-a)- [s3] transform=[0.9,0,0,0.9,0,0] origin=(91,141) (BlockContainer<DIV>.leaf.leaf-b)- [s4] transform=[1,0,0,1,10,0] origin=(296,56) (BlockContainer<DIV>.leaf.leaf-c)- [s5] transform=[1,0,0,1,0,10] origin=(296,141) (BlockContainer<DIV>.leaf.leaf-d)+ [s2] transform=[0.9961947,-0.08715574,0.08715574,0.9961947,0,0] origin=(91,56) bounds=[16,16 150x80] (BlockContainer<DIV>.leaf.leaf-a)+ [s3] transform=[0.9,0,0,0.9,0,0] origin=(91,141) bounds=[16,101 150x80] (BlockContainer<DIV>.leaf.leaf-b)+ [s4] transform=[1,0,0,1,10,0] origin=(296,56) bounds=[221,16 150x80] (BlockContainer<DIV>.leaf.leaf-c)+ [s5] transform=[1,0,0,1,0,10] origin=(296,141) bounds=[221,101 150x80] (BlockContainer<DIV>.leaf.leaf-d)clips:[c0 in s1] clip=[10,10 400x200] (Box<DIV>.root)[c1 in s1] clip=[11,11 193x198] (BlockContainer<DIV>.branch)@@ -14,15 +14,15 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 404x204] widths=[2,2,2,2] color=rgb(0, 0, 0)-FillRoundedRectRing@s1/c0/e0 rect=[10,10 195x200] widths=[1,1,1,1] color=rgb(128, 128, 128)-FillRoundedRectRing@s1/c0/e0 rect=[215,10 195x200] widths=[1,1,1,1] color=rgb(128, 128, 128)+FillRoundedRectRing@s1/e0 rect=[8,8 404x204] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)+FillRoundedRectRing@s1/c0/e0 rect=[10,10 195x200] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128)+FillRoundedRectRing@s1/c0/e0 rect=[215,10 195x200] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128)FillRect@s2/c1/e0 rect=[16,16 150x80] color=rgb(255, 0, 0)-DrawGlyphRun@s2/c1/e0 rect=[16,16 15x16] translation=[16,29] color=rgb(0, 0, 0)+DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=1 rect=[16,16 15x16] glyph_bounding_rect=[16,16 13x15] translation=[16,29] color=rgb(0, 0, 0)FillRect@s3/c1/e0 rect=[16,101 150x80] color=rgb(0, 128, 0)-DrawGlyphRun@s3/c1/e0 rect=[16,101 10x16] translation=[16,114] color=rgb(0, 0, 0)+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=1 rect=[16,101 10x16] glyph_bounding_rect=[16,102 13x15] translation=[16,114] color=rgb(0, 0, 0)FillRect@s4/c2/e0 rect=[221,16 150x80] color=rgb(0, 0, 255)-DrawGlyphRun@s4/c2/e0 rect=[221,16 11x16] translation=[221,29] color=rgb(0, 0, 0)+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=1 rect=[221,16 11x16] glyph_bounding_rect=[221,16 13x15] translation=[221,29] color=rgb(0, 0, 0)FillRect@s5/c2/e0 rect=[221,101 150x80] color=rgb(255, 165, 0)-DrawGlyphRun@s5/c2/e0 rect=[221,101 12x16] translation=[221,114] color=rgb(0, 0, 0)+DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=1 rect=[221,101 12x16] glyph_bounding_rect=[221,102 13x15] translation=[221,114] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/double-border-with-asymmetric-radii.txt b/Tests/LibWeb/Text/expected/display_list/double-border-with-asymmetric-radii.txtindex 742357a0660..9cd4364ad53 100644--- a/Tests/LibWeb/Text/expected/display_list/double-border-with-asymmetric-radii.txt+++ b/Tests/LibWeb/Text/expected/display_list/double-border-with-asymmetric-radii.txt@@ -6,12 +6,12 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s1/e0 path_bounding_rect=[192.04163,10.928932 15.958374x135.35535]-FillPath@s1/e0 path_bounding_rect=[182.14214,22 11.857864x114.38478]-FillPath@s1/e0 path_bounding_rect=[10.928932,142.04163 185.35535x15.958374]-FillPath@s1/e0 path_bounding_rect=[22,132.14214 164.38478x11.857864]-FillPath@s1/e0 path_bounding_rect=[7.9999967,19.715729 15.958374x135.35535]-FillPath@s1/e0 path_bounding_rect=[22,29.615223 11.857864x114.38478]-FillPath@s1/e0 path_bounding_rect=[19.715729,7.9999967 185.35535x15.958374]-FillPath@s1/e0 path_bounding_rect=[29.615223,22 164.38478x11.857864]+FillPath@s1/e0 path_bounding_rect=[192.04163,10.928932 15.958374x135.35535] path_data=[curved path: 48 commands] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[182.14214,22 11.857864x114.38478] path_data=[curved path: 37 commands] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[10.928932,142.04163 185.35535x15.958374] path_data=[curved path: 48 commands] color=rgb(0, 128, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[22,132.14214 164.38478x11.857864] path_data=[curved path: 37 commands] color=rgb(0, 128, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[7.9999967,19.715729 15.958374x135.35535] path_data=[curved path: 48 commands] color=rgb(255, 165, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[22,29.615223 11.857864x114.38478] path_data=[curved path: 37 commands] color=rgb(255, 165, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[19.715729,7.9999967 185.35535x15.958374] path_data=[curved path: 48 commands] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[29.615223,22 164.38478x11.857864] path_data=[curved path: 37 commands] color=rgb(255, 0, 0) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt b/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txtindex c4cc6ce093b..db71d8cd4b7 100644--- a/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt+++ b/Tests/LibWeb/Text/expected/display_list/fieldset-background-with-legend.txt@@ -7,14 +7,14 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[10,8 780x50] color=rgb(0, 0, 255) inline_clips=[clip=[10,15 780x43]]-FillPath@s1/e0 path_bounding_rect=[10,15 780x1] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[11,16 778x1] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[789,15 1x43] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[788,16 1x41] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[10,57 780x1] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[11,56 778x1] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[10,15 1x43] inline_clips=[clip=[24,15 57x2] mode=difference]-FillPath@s1/e0 path_bounding_rect=[11,16 1x41] inline_clips=[clip=[24,15 57x2] mode=difference]-DrawGlyphRun@s1/e0 rect=[26,8 54x16] translation=[26,21] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[24,29 63x17] translation=[24,42.59375] color=rgb(0, 0, 0)+FillPath@s1/e0 path_bounding_rect=[10,15 780x1] path_data=[path: M10 15L10 15L11 16L789 16L790 15L790 15] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[11,16 778x1] path_data=[path: M11 16L11 16L12 17L788 17L789 16L789 16] color=rgb(239, 239, 239) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[789,15 1x43] path_data=[path: M790 15L790 15L789 16L789 57L790 58L790 58] color=rgb(239, 239, 239) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[788,16 1x41] path_data=[path: M789 16L789 16L788 17L788 56L789 57L789 57] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[10,57 780x1] path_data=[path: M790 58L790 58L789 57L11 57L10 58L10 58] color=rgb(239, 239, 239) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[11,56 778x1] path_data=[path: M789 57L789 57L788 56L12 56L11 57L11 57] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[10,15 1x43] path_data=[path: M10 58L10 58L11 57L11 16L10 15L10 15] color=rgb(154, 154, 154) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+FillPath@s1/e0 path_bounding_rect=[11,16 1x41] path_data=[path: M11 57L11 57L12 56L12 17L11 16L11 16] color=rgb(239, 239, 239) winding_rule=EvenOdd inline_clips=[clip=[24,15 57x2] mode=difference]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[26,8 54x16] glyph_bounding_rect=[26,8 59x15] translation=[26,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[24,29 63x17] glyph_bounding_rect=[24,30 69x15] translation=[24,42.59375] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt b/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txtindex 63aa06f4371..c8287ca82c4 100644--- a/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt+++ b/Tests/LibWeb/Text/expected/display_list/fieldset-legend-rounded-dashed-border.txt@@ -6,7 +6,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-StrokePath@s1/e0 path_bounding_rect=[10,15 230x44] thickness=3 color=rgb(0, 0, 255) dash_array_size=2 dash_offset=9.03 inline_clips=[clip=[25,15 57x3] mode=difference]-DrawGlyphRun@s1/e0 rect=[27,8 54x16] translation=[27,21] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[25,29 63x17] translation=[25,42.59375] color=rgb(0, 0, 0)+StrokePath@s1/e0 dash_array=[6.0229473, 6.0229473] dash_offset=9.034421 path_bounding_rect=[10,15 230x44] path_data=[curved path: 135 commands] color=rgb(0, 0, 255) thickness=3 inline_clips=[clip=[25,15 57x3] mode=difference]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[27,8 54x16] glyph_bounding_rect=[27,8 59x15] translation=[27,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[25,29 63x17] glyph_bounding_rect=[25,30 69x15] translation=[25,42.59375] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/fixed-position.txt b/Tests/LibWeb/Text/expected/display_list/fixed-position.txtindex 3445d024411..caf70ac90f6 100644--- a/Tests/LibWeb/Text/expected/display_list/fixed-position.txt+++ b/Tests/LibWeb/Text/expected/display_list/fixed-position.txt@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c0/e0 rect=[8,8 150x50] color=rgb(0, 128, 0)-DrawGlyphRun@s1/c0/e0 rect=[8,8 56x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=6 rect=[8,8 56x16] glyph_bounding_rect=[8,8 64x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s0/e0 rect=[10,10 80x40] color=rgb(255, 0, 0)-DrawGlyphRun@s0/e0 rect=[10,10 44x16] translation=[10,23] color=rgb(0, 0, 0)+DrawGlyphRun@s0/e0 font_id=font1 glyphs=5 rect=[10,10 44x16] glyph_bounding_rect=[10,10 49x15] translation=[10,23] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt b/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txtindex 734ef46175a..6887d1a9ac7 100644--- a/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt+++ b/Tests/LibWeb/Text/expected/display_list/form-control-devolved-borders.txt@@ -1,6 +1,6 @@-FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-FillRoundedRectRing@s1/e0 rect=[66,0 170x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-FillPath@s1/e0 path_bounding_rect=[0,20 74x20]-FillPath@s1/e0 path_bounding_rect=[0,20 74x20]-FillPath@s1/e0 path_bounding_rect=[82,20 170x20]-FillPath@s1/e0 path_bounding_rect=[82,20 170x20]+FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+FillRoundedRectRing@s1/e0 rect=[66,0 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+FillPath@s1/e0 path_bounding_rect=[0,20 74x20] path_data=[path: M74 20L74 20L72 22L72 38L74 40L74 40M74 40L74 40L72 38L2 38L0 40L0 40] color=rgb(33, 33, 33) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[0,20 74x20] path_data=[path: M0 40L0 40L2 38L2 22L0 20L0 20M0 20L0 20L2 22L72 22L74 20L74 20] color=rgb(118, 118, 118) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[82,20 170x20] path_data=[path: M252 20L252 20L250 22L250 38L252 40L252 40M252 40L252 40L250 38L84 38L82 40L82 40] color=rgb(118, 118, 118) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[82,20 170x20] path_data=[path: M82 40L82 40L84 38L84 22L82 20L82 20M82 20L82 20L84 22L250 22L252 20L252 20] color=rgb(33, 33, 33) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txtindex e8160819d73..78e4c2d23d5 100644--- a/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt+++ b/Tests/LibWeb/Text/expected/display_list/form-control-native-appearance-corners.txt@@ -11,32 +11,32 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 58x20] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/e0 rect=[9,3 40x14] translation=[9,14] color=rgb(0, 0, 0)-FillRectWithRoundedCorners@s1/e0 rect=[0,30 130x24] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/e0 rect=[0,30 130x24] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/e0 rect=[5,35 120x14] translation=[5,46] color=rgb(0, 128, 0)-FillRectWithRoundedCorners@s1/e0 rect=[0,60 129x20] color=rgb(239, 239, 239)-FillRoundedRectRing@s1/e0 rect=[0,60 129x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/e0 rect=[9,63 112x14] translation=[9,74] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,0 58x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 58x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,3 40x14] glyph_bounding_rect=[9,4 44x12] translation=[9,14] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,30 130x24] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,30 130x24] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=17 rect=[5,35 120x14] glyph_bounding_rect=[5,36 124x12] translation=[5,46] color=rgb(0, 128, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,60 129x20] color=rgb(239, 239, 239) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,60 129x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,63 112x14] glyph_bounding_rect=[9,64 115x12] translation=[9,74] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[0,90 92x20] color=rgb(0, 255, 0)-FillPath@s1/e0 path_bounding_rect=[0,90 92x20]-FillPath@s1/e0 path_bounding_rect=[0,90 92x20]-DrawGlyphRun@s1/e0 rect=[9,93 75x14] translation=[9,104] color=rgb(0, 0, 0)+FillPath@s1/e0 path_bounding_rect=[0,90 92x20] path_data=[path: M92 90L92 90L90 92L90 108L92 110L92 110M92 110L92 110L90 108L2 108L0 110L0 110] color=rgb(33, 33, 33) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[0,90 92x20] path_data=[path: M0 110L0 110L2 108L2 92L0 90L0 90M0 90L0 90L2 92L90 92L92 90L92 90] color=rgb(118, 118, 118) winding_rule=EvenOdd+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[9,93 75x14] glyph_bounding_rect=[9,94 79x12] translation=[9,104] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[0,120 63x20] color=rgb(239, 239, 239)-FillPath@s1/e0 path_bounding_rect=[0,120 63x20]-FillPath@s1/e0 path_bounding_rect=[0,120 63x20]-DrawGlyphRun@s1/e0 rect=[9,123 45x14] translation=[9,134] color=rgb(0, 0, 0)+FillPath@s1/e0 path_bounding_rect=[0,120 63x20] path_data=[path: M63 120L63 120L61 122L61 138L63 140L63 140M63 140L63 140L61 138L2 138L0 140L0 140] color=rgb(170, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[0,120 63x20] path_data=[path: M0 140L0 140L2 138L2 122L0 120L0 120M0 120L0 120L2 122L61 122L63 120L63 120] color=rgb(255, 0, 0) winding_rule=EvenOdd+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[9,123 45x14] glyph_bounding_rect=[9,124 49x12] translation=[9,134] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[0,150 137x20] color=rgb(239, 239, 239)-FillPath@s1/e0 path_bounding_rect=[0,150 137x20]-FillPath@s1/e0 path_bounding_rect=[0,150 137x20]-DrawGlyphRun@s1/e0 rect=[9,153 119x14] translation=[9,164] color=rgb(0, 0, 0)-FillRectWithRoundedCorners@s1/e0 rect=[0,180 170x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,180 170x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c1/e0 rect=[5,183 32x14] translation=[5,194] color=rgb(0, 0, 0)+FillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M137 150L137 150L135 152L135 168L137 170L137 170M137 170L137 170L135 168L2 168L0 170L0 170] color=rgb(33, 33, 33) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[0,150 137x20] path_data=[path: M0 170L0 170L2 168L2 152L0 150L0 150M0 150L0 150L2 152L135 152L137 150L137 150] color=rgb(118, 118, 118) winding_rule=EvenOdd+DrawGlyphRun@s1/e0 font_id=font1 glyphs=15 rect=[9,153 119x14] glyph_bounding_rect=[9,154 123x12] translation=[9,164] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,180 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,180 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=4 rect=[5,183 32x14] glyph_bounding_rect=[5,184 37x12] translation=[5,194] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[0,210 172x22] color=rgb(255, 255, 255)-FillPath@s1/e0 path_bounding_rect=[0,210 172x22]-FillPath@s1/e0 path_bounding_rect=[0,210 172x22]-DrawGlyphRun@s1/c3/e0 rect=[6,214 59x14] translation=[6,225] color=rgb(0, 0, 0)+FillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M172 210L172 210L169 213L169 229L172 232L172 232M172 232L172 232L169 229L3 229L0 232L0 232] color=rgb(118, 118, 118) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[0,210 172x22] path_data=[path: M0 232L0 232L3 229L3 213L0 210L0 210M0 210L0 210L3 213L169 213L172 210L172 210] color=rgb(33, 33, 33) winding_rule=EvenOdd+DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=8 rect=[6,214 59x14] glyph_bounding_rect=[6,215 63x12] translation=[6,225] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt b/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txtindex 36fe4ac40e3..9fd455a9e6c 100644--- a/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt+++ b/Tests/LibWeb/Text/expected/display_list/iframe-compositor-surface.txt@@ -15,6 +15,6 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800xL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x83]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x83]L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 120x80]-L1 DrawCompositedContext@s1/e0 dst_rect=[0,0 120x80] inline_clips=[clip=[0,0 120x80]]-L0 CompositorNestedContextWheelRegion@s1/e0 rect=[0,0 120x80]+L1 DrawCompositedContext@s1/e0 dst_rect=[0,0 120x80] child_context_id=context1 scaling_mode=NearestNeighbor spatial_node_index=s1 snap_origin_if_untransformed=true inline_clips=[clip=[0,0 120x80]]+L0 CompositorNestedContextWheelRegion@s1/e0 rect=[0,0 120x80] child_context_id=context1diff --git a/Tests/LibWeb/Text/expected/display_list/iframe-in-svg-mask-and-pattern.txt b/Tests/LibWeb/Text/expected/display_list/iframe-in-svg-mask-and-pattern.txtindex 5fb6c8ab82f..d429e8de06a 100644--- a/Tests/LibWeb/Text/expected/display_list/iframe-in-svg-mask-and-pattern.txt+++ b/Tests/LibWeb/Text/expected/display_list/iframe-in-svg-mask-and-pattern.txt@@ -12,9 +12,9 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s2/c0/e1 rect=[0,0 100x100] effect=e1-FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100]-FillPath@s2/c0/e0 path_bounding_rect=[100,0 100x100]+FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(0, 128, 0)+FillPath@s2/c0/e0 path_bounding_rect=[100,0 100x100] path_data=[path: M100 0L200 0L200 100L100 100L100 0Z] paint_kind=PaintStyle color=rgba(0, 0, 0, 0) paint_style={paint_style_type=Pattern pattern_tile_rect=[0,0 50x50]}PatternTile:DeclareMaskContent@s2/c0/e2 rect=[200,0 100x100] effect=e2-FillPath@s2/c0/e2 path_bounding_rect=[200,0 100x100]+FillPath@s2/c0/e2 path_bounding_rect=[200,0 100x100] path_data=[path: M200 0L300 0L300 100L200 100L200 0Z] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/image-object-fit-cover-clip.txt b/Tests/LibWeb/Text/expected/display_list/image-object-fit-cover-clip.txtindex 229697f08b8..23c3d5d28f1 100644--- a/Tests/LibWeb/Text/expected/display_list/image-object-fit-cover-clip.txt+++ b/Tests/LibWeb/Text/expected/display_list/image-object-fit-cover-clip.txt@@ -6,5 +6,5 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawScaledDecodedImageFrame@s1/e0 dst_rect=[0,-20 40x80] inline_clips=[clip=[0,0 40x40]]+DrawScaledDecodedImageFrame@s1/e0 dst_rect=[0,-20 40x80] frame_id=image1 scaling_mode=BilinearMipmap inline_clips=[clip=[0,0 40x40]]diff --git a/Tests/LibWeb/Text/expected/display_list/inline-backdrop-filter.txt b/Tests/LibWeb/Text/expected/display_list/inline-backdrop-filter.txtindex d996e3a117b..405d766456c 100644--- a/Tests/LibWeb/Text/expected/display_list/inline-backdrop-filter.txt+++ b/Tests/LibWeb/Text/expected/display_list/inline-backdrop-filter.txt@@ -1,3 +1,3 @@backdrop region commands: 1backdrop filter effects: 1- [e1 in s1] effects=[backdrop-filter=[rect]] (InlineNode<SPAN>#wrap)+ [e1 in s1] effects=[backdrop-filter=[region=[rect] filter=[Invert(1)]]] (InlineNode<SPAN>#wrap)diff --git a/Tests/LibWeb/Text/expected/display_list/input-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-caret.txtindex 95033208232..602da1b8970 100644--- a/Tests/LibWeb/Text/expected/display_list/input-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/input-caret.txt@@ -9,9 +9,9 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 110x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[8,8 110x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c1/e0 rect=[13,11 31x14] translation=[13,22] color=rgb(0, 0, 0)-PaintCaret@s1/c1/e0 rect=[13,11 1x14] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[6,6 114x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)+FillRectWithRoundedCorners@s1/e0 rect=[8,8 110x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[8,8 110x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=5 rect=[13,11 31x14] glyph_bounding_rect=[13,12 33x12] translation=[13,22] color=rgb(0, 0, 0)+PaintCaret@s1/c1/e0 rect=[13,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[6,6 114x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)diff --git a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txtindex 688f2d88f82..a9d7c6111b7 100644--- a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt@@ -11,13 +11,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 170x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[8,8 170x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c1/e0 rect=[13,11 23x14] translation=[13,22] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[177,9 9x16] translation=[177.6875,22] color=rgb(0, 0, 0)-FillRectWithRoundedCorners@s1/e0 rect=[186,8 169x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[186,8 169x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c3/e0 rect=[190,11 24x14] translation=[190.6875,22] color=rgb(0, 0, 0)-PaintCaret@s1/c3/e0 rect=[191,11 1x14] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[184,6 173x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)+FillRectWithRoundedCorners@s1/e0 rect=[8,8 170x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[8,8 170x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[13,11 23x14] glyph_bounding_rect=[13,12 25x12] translation=[13,22] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=1 rect=[177,9 9x16] glyph_bounding_rect=[178,10 13x15] translation=[177.6875,22] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[186,8 169x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[186,8 169x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c3/e0 font_id=font1 glyphs=3 rect=[190,11 24x14] glyph_bounding_rect=[191,12 27x12] translation=[190.6875,22] color=rgb(0, 0, 0)+PaintCaret@s1/c3/e0 rect=[191,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[184,6 173x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)diff --git a/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txtindex f656811ccf1..e1c0665ceba 100644--- a/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/mask-image-invalidation.txt@@ -9,9 +9,9 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s1/e1 rect=[8,8 100x100] effect=e1- PaintLinearGradient@s1/e1 rect=[8,8 100x100] inline_clips=[clip=[8,8 100x100]]+ PaintLinearGradient@s1/e1 gradient_rect=[8,8 100x100] gradient_angle=180 color_stops=[rgb(0, 0, 0) 0, rgba(0, 0, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,8 100x100]]FillRect@s1/e1 rect=[8,8 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/e1 rect=[8,8 30x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0)After mask-image removal:AccumulatedVisualContext Tree:@@ -23,7 +23,7 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,8 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/e0 rect=[8,8 30x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0)After mask-image reinstatement:AccumulatedVisualContext Tree:@@ -36,7 +36,7 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s1/e1 rect=[8,8 100x100] effect=e1- PaintLinearGradient@s1/e1 rect=[8,8 100x100] inline_clips=[clip=[8,8 100x100]]+ PaintLinearGradient@s1/e1 gradient_rect=[8,8 100x100] gradient_angle=90 color_stops=[rgb(0, 0, 0) 0, rgba(0, 0, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} inline_clips=[clip=[8,8 100x100]]FillRect@s1/e1 rect=[8,8 100x100] color=rgb(173, 216, 230)-DrawGlyphRun@s1/e1 rect=[8,8 30x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font1 glyphs=3 rect=[8,8 30x16] glyph_bounding_rect=[8,8 33x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/mask-type-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/mask-type-invalidation.txtindex a4ce452f2f8..36fdb2123e3 100644--- a/Tests/LibWeb/Text/expected/display_list/mask-type-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/mask-type-invalidation.txt@@ -12,8 +12,8 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s2/c0/e1 rect=[-10,-10 120x120] effect=e1- FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x50]-FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100]+ FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x50] path_data=[path: M0 0L100 0L100 50L0 50L0 0Z] color=rgb(255, 255, 255)+FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(0, 128, 0)After switching to mask-type luminance:AccumulatedVisualContext Tree:@@ -29,6 +29,6 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s2/c0/e1 rect=[-10,-10 120x120] effect=e1- FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x50]-FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100]+ FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x50] path_data=[path: M0 0L100 0L100 50L0 50L0 0Z] color=rgb(255, 255, 255)+FillPath@s2/c0/e1 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/mix-blend-mode-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/mix-blend-mode-invalidation.txtindex e74309f5674..d7af008aa6f 100644--- a/Tests/LibWeb/Text/expected/display_list/mix-blend-mode-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/mix-blend-mode-invalidation.txt@@ -16,7 +16,7 @@ AccumulatedVisualContext Tree:[s1] scroll (Viewport<#document>)effects:[e0 in s0] effects=[]- [e1 in s1] effects=[blend_mode=2] (BlockContainer<DIV>#box)+ [e1 in s1] effects=[blend_mode=Multiply] (BlockContainer<DIV>#box)DisplayList:FillRect@s1/e1 rect=[8,8 100x100] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt b/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txtindex 6dce2a0e4fc..12973864505 100644--- a/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt+++ b/Tests/LibWeb/Text/expected/display_list/mixed-sibling-contexts.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)[s3] scroll (BlockContainer<DIV>.clipped)- [s2] transform=[1,0,0,1,5,5] origin=(58,58) (BlockContainer<DIV>.transformed)+ [s2] transform=[1,0,0,1,5,5] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>.transformed)clips:[c0 in s1] clip=[119,9 100x100] (BlockContainer<DIV>.clipped)effects:@@ -13,9 +13,9 @@ ScrollNodes:ScrollNode scroll_node_index=s3 parent_scroll_node_index=s0 scrollport_rect=[119,9 100x100] min_scroll_offset=[0,0] max_scroll_offset=[50,50] is_viewport=falseDisplayList:-FillRoundedRectRing@s1/e0 rect=[118,8 102x102] widths=[1,1,1,1] color=rgb(0, 0, 255)+FillRoundedRectRing@s1/e0 rect=[118,8 102x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255)FillRect@s3/c0/e0 rect=[119,9 150x150] color=rgb(173, 216, 230)-DrawGlyphRun@s3/c0/e0 rect=[119,9 55x16] translation=[119,22] color=rgb(0, 0, 0)+DrawGlyphRun@s3/c0/e0 font_id=font1 glyphs=7 rect=[119,9 55x16] glyph_bounding_rect=[119,10 60x15] translation=[119,22] color=rgb(0, 0, 0)FillRect@s2/e0 rect=[8,8 100x100] color=rgb(255, 127, 80)-DrawGlyphRun@s2/e0 rect=[8,8 88x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s2/e0 font_id=font1 glyphs=9 rect=[8,8 88x16] glyph_bounding_rect=[8,8 88x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txtindex 0e834e3901a..6510b91de6c 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-color-change-inside-opacity.txt@@ -8,11 +8,11 @@ AccumulatedVisualContext Tree:[e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#outer)DisplayList:-DrawGlyphRun@s1/e0 rect=[8,85 46x13] translation=[8,95] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e1 rect=[8,8 82x16] translation=[8,21] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e1 rect=[8,24 48x16] translation=[8,37] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e1 rect=[8,40 60x16] translation=[8,53] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e1 rect=[8,56 37x16] translation=[8,69] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255)After:AccumulatedVisualContext Tree:@@ -23,24 +23,27 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[][e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#outer)+ScrollNodes:+ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[89.34375,0] is_viewport=true+DisplayList:-DrawGlyphRun@s1/e0 rect=[8,85 46x13] translation=[8,95] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,98 214x13] translation=[8,108] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,111 60x13] translation=[8,121] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,124 440x13] translation=[8,134] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,137 264x13] translation=[8,147] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,150 62x13] translation=[8,160] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,163 162x13] translation=[8,173] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,176 417x13] translation=[8,186] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,202 74x13] translation=[8,212] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,215 499x13] translation=[8,225] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,228 502x13] translation=[8,238] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,241 509x13] translation=[8,251] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,254 510x13] translation=[8,264] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,267 510x13] translation=[8,277] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,293 40x13] translation=[8,303] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e1 rect=[8,8 82x16] translation=[8,21] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e1 rect=[8,24 48x16] translation=[8,37] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e1 rect=[8,40 60x16] translation=[8,53] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e1 rect=[8,56 37x16] translation=[8,69] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[8,85 46x13] glyph_bounding_rect=[8,85 53x12] translation=[8,95] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=63 rect=[8,176 417x13] glyph_bounding_rect=[8,176 423x12] translation=[8,186] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=130 rect=[8,215 869x13] glyph_bounding_rect=[8,215 875x12] translation=[8,225] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=130 rect=[8,228 867x13] glyph_bounding_rect=[8,228 874x12] translation=[8,238] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=132 rect=[8,241 877x13] glyph_bounding_rect=[8,241 884x12] translation=[8,251] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=132 rect=[8,254 882x13] glyph_bounding_rect=[8,254 888x12] translation=[8,264] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=132 rect=[8,267 880x13] glyph_bounding_rect=[8,267 887x12] translation=[8,277] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,293 40x13] glyph_bounding_rect=[8,293 47x12] translation=[8,303] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txtindex af1e6be77b6..062c242460c 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-opacity.txt@@ -8,15 +8,15 @@ AccumulatedVisualContext Tree:[e1 in s1] effects=[opacity=0.5] (InlineNode<SPAN>#target)DisplayList:-DrawGlyphRun@s1/e0 rect=[8,85 83x13] translation=[8,95] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0)FillRect@s1/e1 rect=[8,8 81x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e1 rect=[8,8 82x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s1/e1 rect=[8,24 47x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e1 rect=[8,24 48x16] translation=[8,37] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0)FillRect@s1/e1 rect=[8,40 60x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e1 rect=[8,40 60x16] translation=[8,53] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0)FillRect@s1/e1 rect=[8,56 36x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e1 rect=[8,56 37x16] translation=[8,69] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e1 font_id=font2 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0)Without opacity:AccumulatedVisualContext Tree:@@ -26,32 +26,35 @@ AccumulatedVisualContext Tree:effects:[e0 in s0] effects=[]+ScrollNodes:+ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[81.609375,0] is_viewport=true+DisplayList:FillRect@s1/e0 rect=[8,8 81x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e0 rect=[8,8 82x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 82x16] glyph_bounding_rect=[8,8 85x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,24 47x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e0 rect=[8,24 48x16] translation=[8,37] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,40 60x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e0 rect=[8,40 60x16] translation=[8,53] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,56 36x16] color=rgb(255, 165, 0)-DrawGlyphRun@s1/e0 rect=[8,56 37x16] translation=[8,69] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,85 83x13] translation=[8,95] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,98 214x13] translation=[8,108] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,111 60x13] translation=[8,121] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,124 440x13] translation=[8,134] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,137 264x13] translation=[8,147] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,150 62x13] translation=[8,160] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,163 162x13] translation=[8,173] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,176 419x13] translation=[8,186] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,202 74x13] translation=[8,212] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,215 501x13] translation=[8,225] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,228 348x13] translation=[8,238] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,241 489x13] translation=[8,251] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,254 354x13] translation=[8,264] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,267 496x13] translation=[8,277] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,280 356x13] translation=[8,290] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,293 497x13] translation=[8,303] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,306 356x13] translation=[8,316] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,319 497x13] translation=[8,329] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,345 105x13] translation=[8,355] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=13 rect=[8,85 83x13] glyph_bounding_rect=[8,85 91x12] translation=[8,95] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=30 rect=[8,98 214x13] glyph_bounding_rect=[8,98 221x12] translation=[8,108] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,111 60x13] glyph_bounding_rect=[8,111 67x12] translation=[8,121] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=67 rect=[8,124 440x13] glyph_bounding_rect=[8,124 446x12] translation=[8,134] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=39 rect=[8,137 264x13] glyph_bounding_rect=[8,137 271x12] translation=[8,147] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=10 rect=[8,150 62x13] glyph_bounding_rect=[8,150 69x12] translation=[8,160] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=25 rect=[8,163 162x13] glyph_bounding_rect=[8,163 166x12] translation=[8,173] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=64 rect=[8,176 419x13] glyph_bounding_rect=[8,176 426x12] translation=[8,186] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=12 rect=[8,202 74x13] glyph_bounding_rect=[8,202 81x12] translation=[8,212] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=131 rect=[8,215 874x13] glyph_bounding_rect=[8,215 881x12] translation=[8,225] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=54 rect=[8,228 348x13] glyph_bounding_rect=[8,228 354x12] translation=[8,238] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=128 rect=[8,241 854x13] glyph_bounding_rect=[8,241 860x12] translation=[8,251] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=55 rect=[8,254 354x13] glyph_bounding_rect=[8,254 361x12] translation=[8,264] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=130 rect=[8,267 864x13] glyph_bounding_rect=[8,267 870x12] translation=[8,277] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=55 rect=[8,280 356x13] glyph_bounding_rect=[8,280 363x12] translation=[8,290] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=130 rect=[8,293 869x13] glyph_bounding_rect=[8,293 875x12] translation=[8,303] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=55 rect=[8,306 356x13] glyph_bounding_rect=[8,306 362x12] translation=[8,316] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=130 rect=[8,319 867x13] glyph_bounding_rect=[8,319 874x12] translation=[8,329] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=16 rect=[8,345 105x13] glyph_bounding_rect=[8,345 113x12] translation=[8,355] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txtindex 1b35a32b644..7e8c49de8c6 100644--- a/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/multiline-inline-paint-invalidation.txt@@ -7,13 +7,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,8 70x16] translation=[8,21] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(0, 0, 255)FillRect@s1/e0 rect=[8,23 70x2] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e0 rect=[8,24 48x16] translation=[8,37] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(0, 0, 255)FillRect@s1/e0 rect=[8,39 47x2] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e0 rect=[8,40 60x16] translation=[8,53] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(0, 0, 255)FillRect@s1/e0 rect=[8,55 60x2] color=rgb(0, 0, 255)-DrawGlyphRun@s1/e0 rect=[8,56 37x16] translation=[8,69] color=rgb(0, 0, 255)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(0, 0, 255)FillRect@s1/e0 rect=[8,71 36x2] color=rgb(0, 0, 255)After:@@ -25,12 +25,12 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,8 70x16] translation=[8,21] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,8 70x16] glyph_bounding_rect=[8,8 75x15] translation=[8,21] color=rgb(255, 0, 0)FillRect@s1/e0 rect=[8,23 70x2] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,24 48x16] translation=[8,37] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,24 48x16] glyph_bounding_rect=[8,24 51x15] translation=[8,37] color=rgb(255, 0, 0)FillRect@s1/e0 rect=[8,39 47x2] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,40 60x16] translation=[8,53] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[8,40 60x16] glyph_bounding_rect=[8,40 65x15] translation=[8,53] color=rgb(255, 0, 0)FillRect@s1/e0 rect=[8,55 60x2] color=rgb(255, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,56 37x16] translation=[8,69] color=rgb(255, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,56 37x16] glyph_bounding_rect=[8,56 40x15] translation=[8,69] color=rgb(255, 0, 0)FillRect@s1/e0 rect=[8,71 36x2] color=rgb(255, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/nested-branches.txt b/Tests/LibWeb/Text/expected/display_list/nested-branches.txtindex 31d89331603..587758352b1 100644--- a/Tests/LibWeb/Text/expected/display_list/nested-branches.txt+++ b/Tests/LibWeb/Text/expected/display_list/nested-branches.txt@@ -2,10 +2,10 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9986295,-0.05233596,0.05233596,0.9986295,0,0] origin=(92.5,46) (BlockContainer<DIV>.level3.t1)- [s3] transform=[0.9986295,0.05233596,-0.05233596,0.9986295,0,0] origin=(92.5,91) (BlockContainer<DIV>.level3.t2)- [s4] transform=[0.95,0,0,0.95,0,0] origin=(247.5,46) (BlockContainer<DIV>.level3.t3)- [s5] transform=[1.05,0,0,1.05,0,0] origin=(247.5,91) (BlockContainer<DIV>.level3.t4)+ [s2] transform=[0.9986295,-0.05233596,0.05233596,0.9986295,0,0] origin=(92.5,46) bounds=[26,26 133x40] (BlockContainer<DIV>.level3.t1)+ [s3] transform=[0.9986295,0.05233596,-0.05233596,0.9986295,0,0] origin=(92.5,91) bounds=[26,71 133x40] (BlockContainer<DIV>.level3.t2)+ [s4] transform=[0.95,0,0,0.95,0,0] origin=(247.5,46) bounds=[181,26 133x40] (BlockContainer<DIV>.level3.t3)+ [s5] transform=[1.05,0,0,1.05,0,0] origin=(247.5,91) bounds=[181,71 133x40] (BlockContainer<DIV>.level3.t4)clips:[c0 in s1] clip=[10,10 320x270] (Box<DIV>.level1)[c1 in s1] clip=[21,21 143x248] (BlockContainer<DIV>.level2)@@ -14,15 +14,15 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 324x274] widths=[2,2,2,2] color=rgb(0, 0, 0)-FillRoundedRectRing@s1/c0/e0 rect=[20,20 145x250] widths=[1,1,1,1] color=rgb(128, 128, 128)-FillRoundedRectRing@s1/c0/e0 rect=[175,20 145x250] widths=[1,1,1,1] color=rgb(128, 128, 128)+FillRoundedRectRing@s1/e0 rect=[8,8 324x274] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)+FillRoundedRectRing@s1/c0/e0 rect=[20,20 145x250] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128)+FillRoundedRectRing@s1/c0/e0 rect=[175,20 145x250] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(128, 128, 128)FillRect@s2/c1/e0 rect=[26,26 133x40] color=rgb(255, 136, 136)-DrawGlyphRun@s2/c1/e0 rect=[26,26 20x16] translation=[26,39] color=rgb(0, 0, 0)+DrawGlyphRun@s2/c1/e0 font_id=font1 glyphs=3 rect=[26,26 20x16] glyph_bounding_rect=[26,26 26x15] translation=[26,39] color=rgb(0, 0, 0)FillRect@s3/c1/e0 rect=[26,71 133x40] color=rgb(136, 255, 136)-DrawGlyphRun@s3/c1/e0 rect=[26,71 22x16] translation=[26,84] color=rgb(0, 0, 0)+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=3 rect=[26,71 22x16] glyph_bounding_rect=[26,72 26x15] translation=[26,84] color=rgb(0, 0, 0)FillRect@s4/c2/e0 rect=[181,26 133x40] color=rgb(136, 136, 255)-DrawGlyphRun@s4/c2/e0 rect=[181,26 22x16] translation=[181,39] color=rgb(0, 0, 0)+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=3 rect=[181,26 22x16] glyph_bounding_rect=[181,26 29x15] translation=[181,39] color=rgb(0, 0, 0)FillRect@s5/c2/e0 rect=[181,71 133x40] color=rgb(255, 255, 136)-DrawGlyphRun@s5/c2/e0 rect=[181,71 25x16] translation=[181,84] color=rgb(0, 0, 0)+DrawGlyphRun@s5/c2/e0 font_id=font1 glyphs=3 rect=[181,71 25x16] glyph_bounding_rect=[181,72 29x15] translation=[181,84] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txtindex c5b7f7595c6..312f342dbd2 100644--- a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt+++ b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt@@ -19,15 +19,15 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x175]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x154]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[8,8 204x154]-FillRoundedRectRing@s1/e0 rect=[8,8 204x154] widths=[2,2,2,2] color=rgb(0, 0, 255)+FillRoundedRectRing@s1/e0 rect=[8,8 204x154] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 255)CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s3 rect=[10,10 302x102]FillRect@s2/c0/e0 rect=[10,10 302x102] color=rgb(255, 255, 224)-FillRoundedRectRing@s2/c0/e0 rect=[10,10 302x102] widths=[1,1,1,1] color=rgb(255, 0, 0)+FillRoundedRectRing@s2/c0/e0 rect=[10,10 302x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(255, 0, 0)CompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[11,11 400x80]FillRect@s3/c1/e0 rect=[11,11 400x80] color=rgb(240, 128, 128)-DrawGlyphRun@s3/c1/e0 rect=[11,11 178x16] translation=[11,24] color=rgb(0, 0, 0)-CompositorScrollbar@s2/c0/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[13,102 222x7] track_rect=[11,102 300x9] expanded_gutter_rect=[11,96 300x15] expanded_thumb_rect=[13,98 222x11] scroll_size=0.74 expanded_scroll_size=0.74 min_scroll_offset=0 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s2/c0/e0-CompositorScrollbar@s1/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[12,151 130x7] track_rect=[10,151 200x9] expanded_gutter_rect=[10,145 200x15] expanded_thumb_rect=[12,147 130x11] scroll_size=0.6490502450980392 expanded_scroll_size=0.6490502450980392 min_scroll_offset=0 max_scroll_offset=102 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s1/e0+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=21 rect=[11,11 178x16] glyph_bounding_rect=[11,12 184x15] translation=[11,24] color=rgb(0, 0, 0)+CompositorScrollbar@s2/c0/e0 scroll_node_index=s3 thumb_rect=[13,102 222x7] track_rect=[11,102 300x9] expanded_gutter_rect=[11,96 300x15] expanded_thumb_rect=[13,98 222x11] scroll_size=0.74 expanded_scroll_size=0.74 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s2/c0/e0 scroll_node_index=s3 thumb_rect=[13,102 222x7] track_rect=[11,102 300x9] expanded_gutter_rect=[11,96 300x15] scroll_size=0.74 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+CompositorScrollbar@s1/e0 scroll_node_index=s2 thumb_rect=[12,151 130x7] track_rect=[10,151 200x9] expanded_gutter_rect=[10,145 200x15] expanded_thumb_rect=[12,147 130x11] scroll_size=0.6490502450980392 expanded_scroll_size=0.6490502450980392 max_scroll_offset=102 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s1/e0 scroll_node_index=s2 thumb_rect=[12,151 130x7] track_rect=[10,151 200x9] expanded_gutter_rect=[10,145 200x15] scroll_size=0.6490502450980392 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/display_list/opaque-background-image-blend.txt b/Tests/LibWeb/Text/expected/display_list/opaque-background-image-blend.txtindex c9ce9bfa88d..7491ed18ab9 100644--- a/Tests/LibWeb/Text/expected/display_list/opaque-background-image-blend.txt+++ b/Tests/LibWeb/Text/expected/display_list/opaque-background-image-blend.txt@@ -7,5 +7,5 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[0,0 40x40] color=rgb(45, 22, 0)-DrawScaledDecodedImageFrame@s1/e0 dst_rect=[0,0 40x40] src_rect=[0,0 40x40] blend_mode=2 isolated_backdrop_color=rgb(45, 22, 0) inline_clips=[clip=[0,0 40x40]]+DrawScaledDecodedImageFrame@s1/e0 dst_rect=[0,0 40x40] src_rect=[0,0 40x40] frame_id=image1 scaling_mode=Bilinear compositing_and_blending_operator=Multiply isolated_backdrop_color=rgb(45, 22, 0) inline_clips=[clip=[0,0 40x40]]diff --git a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txtindex e612eeb871a..9ff45c746b9 100644--- a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt+++ b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt@@ -9,20 +9,20 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]FillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]-FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]+FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1FillRect@s1/e0 rect=[0,23 23x16] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)-- unfocused --AccumulatedVisualContext Tree:@@ -35,19 +35,19 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]FillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(16, 16, 16, 0.667)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1FillRect@s1/e0 rect=[0,23 23x16] color=rgba(16, 16, 16, 0.667)-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)-- focused again --AccumulatedVisualContext Tree:@@ -60,20 +60,20 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[3,4 8x12]]FillRect@s1/c0/e0 rect=[11,3 15x14] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]-FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0) inline_clips=[clip=[11,4 15x12]]+FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1FillRect@s1/e0 rect=[0,23 23x16] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)-- caret, focused --AccumulatedVisualContext Tree:@@ -86,18 +86,18 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0)-PaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0)+PaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)-- caret, unfocused --AccumulatedVisualContext Tree:@@ -110,16 +110,16 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0)-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)-- caret, focused again --AccumulatedVisualContext Tree:@@ -132,16 +132,16 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[3,3 24x14] translation=[3,14] color=rgb(0, 0, 0)-PaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[65,17] to=[67,15] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[64,17] to=[67,14] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[62,17] to=[67,12] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[61,17] to=[67,11] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[59,17] to=[67,9] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[58,17] to=[67,8] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawGlyphRun@s1/e0 rect=[0,23 24x16] translation=[0,36] color=rgb(0, 0, 0)+FillRectWithRoundedCorners@s1/e0 rect=[0,0 70x20] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[0,0 70x20] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=3 rect=[3,3 24x14] glyph_bounding_rect=[3,4 27x12] translation=[3,14] color=rgb(0, 0, 0)+PaintCaret@s1/c0/e0 rect=[19,3 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[-2,-2 74x24] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[65,17] to=[67,15] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[64,17] to=[67,14] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[62,17] to=[67,12] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[61,17] to=[67,11] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[59,17] to=[67,9] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[58,17] to=[67,8] thickness=1+DrawGlyphRun@s1/e0 font_id=font2 glyphs=3 rect=[0,23 24x16] glyph_bounding_rect=[0,24 30x15] translation=[0,36] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/patterned-border-on-a-short-side.txt b/Tests/LibWeb/Text/expected/display_list/patterned-border-on-a-short-side.txtindex 7105bbc87d3..d0c37aed643 100644--- a/Tests/LibWeb/Text/expected/display_list/patterned-border-on-a-short-side.txt+++ b/Tests/LibWeb/Text/expected/display_list/patterned-border-on-a-short-side.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s1/e0 path_bounding_rect=[8,31 40x40]-FillPath@s1/e0 path_bounding_rect=[8,71 40x40]-FillPath@s1/e0 path_bounding_rect=[8,8 40x20]-FillPath@s1/e0 path_bounding_rect=[48,8 40x20]+FillPath@s1/e0 path_bounding_rect=[8,31 40x40] path_data=[path: M8 31L8 31L28 51L28 51L48 31L48 31M48 31L48 31L28 51L28 51L48 71L48 71M48 71L48 71L28 51L28 51L8 71L8 71M8 71L8 71L28 51L28 51L8 31L8 31] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,71 40x40] path_data=[path: M8 71L8 71L28 91L28 91L48 71L48 71M48 71L48 71L28 91L28 91L48 111L48 111M48 111L48 111L28 91L28 91L8 111L8 111M8 111L8 111L28 91L28 91L8 71L8 71] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,8 40x20] path_data=[path: M8 8L8 8L28 28L28 28L48 8L48 8] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[48,8 40x20] path_data=[path: M48 8L48 8L68 28L68 28L88 8L88 8] color=rgb(255, 0, 0) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/patterned-border-sharing-corners.txt b/Tests/LibWeb/Text/expected/display_list/patterned-border-sharing-corners.txtindex 1d9c28406c1..b1457c91a98 100644--- a/Tests/LibWeb/Text/expected/display_list/patterned-border-sharing-corners.txt+++ b/Tests/LibWeb/Text/expected/display_list/patterned-border-sharing-corners.txt@@ -6,15 +6,15 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-StrokePath@s1/e0 path_bounding_rect=[-2,8 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,8 140x20], path: M8 8L8 8L28 28L128 28L148 8L148 8]]-StrokePath@s1/e0 path_bounding_rect=[-2,28 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,28 140x20], path: M8 28L8 28L28 48L128 48L148 28L148 28]]-StrokePath@s1/e0 path_bounding_rect=[128,38 20x120] thickness=20 color=rgb(0, 0, 255) dash_array_size=2 dash_offset=25.00 inline_clips=[clip_path=[bounds: [128,48 20x100], path: M148 48L148 48L128 68L128 128L148 148L148 148]]-StrokePath@s1/e0 path_bounding_rect=[-2,128 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,128 140x20], path: M148 148L148 148L128 128L28 128L8 148L8 148]]-StrokePath@s1/e0 path_bounding_rect=[8,38 20x120] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=25.00 inline_clips=[clip_path=[bounds: [8,48 20x100], path: M8 148L8 148L28 128L28 68L8 48L8 48]]-StrokePath@s1/e0 path_bounding_rect=[-2,48 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,48 140x20], path: M8 48L8 48L28 68L128 68L148 48L148 48]]-StrokePath@s1/e0 path_bounding_rect=[128,138 20x120] thickness=20 color=rgb(0, 0, 255) dash_array_size=2 dash_offset=16.67 inline_clips=[clip_path=[bounds: [128,148 20x100], path: M148 148L148 148L128 168L128 228L148 248L148 248]]-StrokePath@s1/e0 path_bounding_rect=[-2,228 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,228 140x20], path: M148 248L148 248L128 228L28 228L8 248L8 248]]-StrokePath@s1/e0 path_bounding_rect=[8,138 20x120] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=16.67 inline_clips=[clip_path=[bounds: [8,148 20x100], path: M8 248L8 248L28 228L28 168L8 148L8 148]]-StrokePath@s1/e0 path_bounding_rect=[-2,148 160x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=17.50 inline_clips=[clip_path=[bounds: [8,148 140x20], path: M8 148L8 148L28 168L128 168L148 148L148 148]]-StrokePath@s1/e0 path_bounding_rect=[-2,248 120x20] thickness=20 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=25.00+StrokePath@s1/e0 dash_array=[35, 35] dash_offset=17.5 path_bounding_rect=[-2,8 160x20] path_data=[path: M8 18L148 18] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,8 140x20], path: M8 8L8 8L28 28L128 28L148 8L148 8] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 35] dash_offset=17.5 path_bounding_rect=[-2,28 160x20] path_data=[path: M8 38L148 38] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,28 140x20], path: M8 28L8 28L28 48L128 48L148 28L148 28] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[50, 50] dash_offset=25 path_bounding_rect=[128,38 20x120] path_data=[path: M138 48L138 148] color=rgb(0, 0, 255) thickness=20 inline_clips=[clip_path=[bounds: [128,48 20x100], path: M148 48L148 48L128 68L128 128L148 148L148 148] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[35, 35] dash_offset=17.5 path_bounding_rect=[-2,128 160x20] path_data=[path: M148 138L8 138] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,128 140x20], path: M148 148L148 148L128 128L28 128L8 148L8 148] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[50, 50] dash_offset=25 path_bounding_rect=[8,38 20x120] path_data=[path: M18 148L18 48] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,48 20x100], path: M8 148L8 148L28 128L28 68L8 48L8 48] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[35, 35] dash_offset=17.5 path_bounding_rect=[-2,48 160x20] path_data=[path: M8 58L148 58] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,48 140x20], path: M8 48L8 48L28 68L128 68L148 48L148 48] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 33.333332] dash_offset=16.666666 path_bounding_rect=[128,138 20x120] path_data=[path: M138 148L138 248] color=rgb(0, 0, 255) thickness=20 inline_clips=[clip_path=[bounds: [128,148 20x100], path: M148 148L148 148L128 168L128 228L148 248L148 248] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 35] dash_offset=17.5 path_bounding_rect=[-2,228 160x20] path_data=[path: M148 238L8 238] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,228 140x20], path: M148 248L148 248L128 228L28 228L8 248L8 248] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 33.333332] dash_offset=16.666666 path_bounding_rect=[8,138 20x120] path_data=[path: M18 248L18 148] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,148 20x100], path: M8 248L8 248L28 228L28 168L8 148L8 148] winding_rule=EvenOdd]+StrokePath@s1/e0 cap_style=Round dash_array=[0, 35] dash_offset=17.5 path_bounding_rect=[-2,148 160x20] path_data=[path: M8 158L148 158] color=rgb(255, 0, 0) thickness=20 inline_clips=[clip_path=[bounds: [8,148 140x20], path: M8 148L8 148L28 168L128 168L148 148L148 148] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[50, 50] dash_offset=25 path_bounding_rect=[-2,248 120x20] path_data=[path: M108 258L8 258] color=rgb(255, 0, 0) thickness=20diff --git a/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt b/Tests/LibWeb/Text/expected/display_list/perspective-basic.txtindex 5e4bcd28039..55d7e020f1e 100644--- a/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt+++ b/Tests/LibWeb/Text/expected/display_list/perspective-basic.txt@@ -2,12 +2,12 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] perspective (BlockContainer<DIV>.perspective-container)- [s3] transform=[0.8660254,0,0,1,0,0] origin=(58,58) (BlockContainer<DIV>.rotated)+ [s2] perspective=[1,0,-0.216,0,0,1,-0.216,0,0,0,1,0,0,0,-0.002,1] (BlockContainer<DIV>.perspective-container)+ [s3] transform3d=[0.8660254,0,0.5,0,0,1,0,0,-0.5,0,0.8660254,0,0,0,0,1] origin=(58,58) flattens_inherited_transform=false bounds=[8,8 100x100] (BlockContainer<DIV>.rotated)effects:[e0 in s0] effects=[]DisplayList:FillRect@s3/e0 rect=[8,8 100x100] color=rgb(0, 0, 255)-DrawGlyphRun@s3/e0 rect=[8,8 21x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s3/e0 font_id=font1 glyphs=2 rect=[8,8 21x16] glyph_bounding_rect=[8,8 22x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/perspective-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/perspective-invalidation.txtindex 8d411f77899..6d454e89c70 100644--- a/Tests/LibWeb/Text/expected/display_list/perspective-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/perspective-invalidation.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,0,0] origin=(58,58) (BlockContainer<DIV>#child)+ [s2] transform3d=[1,0,0,0,0,1,0,0,0,0,1,10,0,0,0,1] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>#child)effects:[e0 in s0] effects=[]@@ -15,8 +15,8 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] perspective (BlockContainer<DIV>#box)- [s3] transform=[1,0,0,1,0,0] origin=(58,58) (BlockContainer<DIV>#child)+ [s2] perspective=[1,0,-0.58,0,0,1,-0.58,0,0,0,1,0,0,0,-0.01,1] (BlockContainer<DIV>#box)+ [s3] transform3d=[1,0,0,0,0,1,0,0,0,0,1,10,0,0,0,1] origin=(58,58) flattens_inherited_transform=false bounds=[8,8 100x100] (BlockContainer<DIV>#child)effects:[e0 in s0] effects=[]diff --git a/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt b/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txtindex 591ee089031..94094004a8c 100644--- a/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt+++ b/Tests/LibWeb/Text/expected/display_list/positioned-with-transformed-ancestor.txt@@ -2,7 +2,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,10,10] origin=(108,108) (BlockContainer<DIV>.transformed-ancestor)+ [s2] transform=[1,0,0,1,10,10] origin=(108,108) bounds=[8,8 200x200] (BlockContainer<DIV>.transformed-ancestor)effects:[e0 in s0] effects=[]@@ -10,5 +10,5 @@ DisplayList:FillRect@s2/e0 rect=[8,8 200x200] color=rgb(211, 211, 211)FillRect@s2/e0 rect=[8,8 200x90] color=rgb(173, 216, 230)FillRect@s2/e0 rect=[33,33 100x50] color=rgb(255, 127, 80)-DrawGlyphRun@s2/e0 rect=[33,33 84x16] translation=[33,46] color=rgb(0, 0, 0)+DrawGlyphRun@s2/e0 font_id=font1 glyphs=10 rect=[33,33 84x16] glyph_bounding_rect=[33,34 89x15] translation=[33,46] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txtindex 563380f08e9..2ee859da2fc 100644--- a/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt+++ b/Tests/LibWeb/Text/expected/display_list/relative-with-inline-transformed-intermediate.txt@@ -9,5 +9,5 @@ DisplayList:FillRect@s1/e0 rect=[8,8 300x300] color=rgb(211, 211, 211)FillRect@s1/e0 rect=[8,8 100x16] color=rgb(173, 216, 230)FillRect@s1/e0 rect=[13,13 100x100] color=rgb(255, 127, 80)-DrawGlyphRun@s1/e0 rect=[13,13 65x16] translation=[13,26] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=8 rect=[13,13 65x16] glyph_bounding_rect=[13,14 69x15] translation=[13,26] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/repeated-gradient-background-is-tile.txt b/Tests/LibWeb/Text/expected/display_list/repeated-gradient-background-is-tile.txtindex c5d1e845614..9223912c9e5 100644--- a/Tests/LibWeb/Text/expected/display_list/repeated-gradient-background-is-tile.txt+++ b/Tests/LibWeb/Text/expected/display_list/repeated-gradient-background-is-tile.txt@@ -1,28 +1,28 @@FUTO dots: 1 tiles, 1 gradients- dst_rect=[0,0 4x4] clip_rect=[0,0 258x64] tile_size=[4x4] tile_step=[4.03125x4.265625] scaling_mode=Bilinear+ dst_rect=[0,0 4x4] clip_rect=[0,0 258x64] tile_size=[4x4] tile_step=[4.03125x4.265625] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: truemoved dots: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 258x64] tile_size=[4x4] tile_step=[4.03125x4.265625] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 258x64] tile_size=[4x4] tile_step=[4.03125x4.265625] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: truespace without gaps: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: trueordinary repeat: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: truelinear repeat: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: trueconic repeat: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 256x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: trueone tile on the space axis: 1 tiles, 1 gradients- dst_rect=[17,0 4x4] clip_rect=[17,0 6x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear+ dst_rect=[17,0 4x4] clip_rect=[17,0 6x64] tile_size=[4x4] tile_step=[4x4] scaling_mode=Bilinear repeat={y=true}gradient content has no outer clips: trueone tile on both axes: 0 tiles, 1 gradientsgradient content has no outer clips: falselarge tiles stay analytic: 0 tiles, 2 gradientsgradient content has no outer clips: falsemany large tiles remain bounded: 1 tiles, 1 gradients- dst_rect=[17,0 4096x512] clip_rect=[17,0 4100096x512] tile_size=[4096x512] tile_step=[4096x512] scaling_mode=Bilinear+ dst_rect=[17,0 4096x512] clip_rect=[17,0 4100096x512] tile_size=[4096x512] tile_step=[4096x512] scaling_mode=Bilinear repeat={x=true y=true}gradient content has no outer clips: truediff --git a/Tests/LibWeb/Text/expected/display_list/repeated-svg-background-is-tile.txt b/Tests/LibWeb/Text/expected/display_list/repeated-svg-background-is-tile.txtindex 3f494956d48..a81ca5428cc 100644--- a/Tests/LibWeb/Text/expected/display_list/repeated-svg-background-is-tile.txt+++ b/Tests/LibWeb/Text/expected/display_list/repeated-svg-background-is-tile.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawRepeatedTile@s1/e0 dst_rect=[8,8 20x20] clip_rect=[8,8 120x80] tile_size=[20x20] tile_step=[20x20] scaling_mode=NearestNeighbor inline_clips=[clip=[8,8 120x80], clip=[8,8 120x80]]- PaintVectorImage@s1/e0 rect=[0,0 20x20]- FillPath@s1/e0 path_bounding_rect=[0,0 20x20]- FillPath@s1/e0 path_bounding_rect=[5,5 10x10]+DrawRepeatedTile@s1/e0 dst_rect=[8,8 20x20] clip_rect=[8,8 120x80] tile_size=[20x20] tile_step=[20x20] scaling_mode=NearestNeighbor repeat={x=true y=true} inline_clips=[clip=[8,8 120x80], clip=[8,8 120x80]]+ PaintVectorImage@s1/e0 vector_image_id=svg1 rect=[0,0 20x20] recorded_size=[20x20]+ FillPath@s1/e0 path_bounding_rect=[0,0 20x20] path_data=[path: M0 0L20 0L20 20L0 20L0 0Z] color=rgb(0, 128, 0)+ FillPath@s1/e0 path_bounding_rect=[5,5 10x10] path_data=[curved path: 129 commands] color=rgb(255, 255, 255)diff --git a/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txt b/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txtindex 91d4cd890f6..e922e201d59 100644--- a/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txt+++ b/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txt@@ -9,6 +9,6 @@ ScrollNodes:ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,2400] is_viewport=trueDisplayList:-DrawRepeatedTile@s1/e0 dst_rect=[0,0 50x50] clip_rect=[0,0 800x3000] tile_size=[50x50] tile_step=[50x50] scaling_mode=Bilinear inline_clips=[clip=[0,0 800x3000]]- PaintLinearGradient@s1/e0 rect=[0,0 50x50]+DrawRepeatedTile@s1/e0 dst_rect=[0,0 50x50] clip_rect=[0,0 800x3000] tile_size=[50x50] tile_step=[50x50] scaling_mode=Bilinear repeat={x=true y=true} inline_clips=[clip=[0,0 800x3000]]+ PaintLinearGradient@s1/e0 gradient_rect=[0,0 50x50] gradient_angle=180 repeating_color_stops=[rgb(0, 128, 0) 0, rgb(0, 128, 0) 0.5, rgb(0, 255, 0) 0.5, rgb(0, 255, 0) 1] repeat_length=0.99999994 interpolation_method={rectangular_color_space=Srgb}diff --git a/Tests/LibWeb/Text/expected/display_list/root-background-propagation-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/root-background-propagation-invalidation.txtindex c478b511aae..07e3a088357 100644--- a/Tests/LibWeb/Text/expected/display_list/root-background-propagation-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/root-background-propagation-invalidation.txt@@ -9,8 +9,8 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s0 rect=[0,0 800x600] color=rgb(0, 128, 0)FillRect@s1/e0 rect=[0,0 800x600] color=rgb(0, 128, 0)-DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x63] clip_rect=[0,0 800x600] tile_size=[800x63] tile_step=[800x63] scaling_mode=Bilinear blend_mode=2 inline_clips=[clip=[0,0 800x600]]- PaintLinearGradient@s1/e0 rect=[0,0 800x63]+DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x63] clip_rect=[0,0 800x600] tile_size=[800x63] tile_step=[800x63] scaling_mode=Bilinear compositing_and_blending_operator=Multiply repeat={x=true y=true} inline_clips=[clip=[0,0 800x600]]+ PaintLinearGradient@s1/e0 gradient_rect=[0,0 800x63] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(255, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb}Painted by the body:AccumulatedVisualContext Tree:@@ -24,7 +24,7 @@ DisplayList:FillRect@s0 rect=[0,0 800x600] color=rgb(255, 255, 255)FillRect@s1/e0 rect=[0,0 800x600] color=rgb(255, 255, 255)FillRect@s1/e0 rect=[0,13 800x50] color=rgb(0, 128, 0)-PaintLinearGradient@s1/e0 rect=[0,13 800x50] blend_mode=2 inline_clips=[clip=[0,13 800x50]]+PaintLinearGradient@s1/e0 gradient_rect=[0,13 800x50] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(255, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb} compositing_and_blending_operator=Multiply inline_clips=[clip=[0,13 800x50]]Propagated to the root again:AccumulatedVisualContext Tree:@@ -37,6 +37,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s0 rect=[0,0 800x600] color=rgb(0, 128, 0)FillRect@s1/e0 rect=[0,0 800x600] color=rgb(0, 128, 0)-DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x63] clip_rect=[0,0 800x600] tile_size=[800x63] tile_step=[800x63] scaling_mode=Bilinear blend_mode=2 inline_clips=[clip=[0,0 800x600]]- PaintLinearGradient@s1/e0 rect=[0,0 800x63]+DrawRepeatedTile@s1/e0 dst_rect=[0,0 800x63] clip_rect=[0,0 800x600] tile_size=[800x63] tile_step=[800x63] scaling_mode=Bilinear compositing_and_blending_operator=Multiply repeat={x=true y=true} inline_clips=[clip=[0,0 800x600]]+ PaintLinearGradient@s1/e0 gradient_rect=[0,0 800x63] gradient_angle=180 color_stops=[rgb(255, 0, 0) 0, rgb(255, 0, 0) 1] repeat_length=1 interpolation_method={rectangular_color_space=Srgb}diff --git a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txtindex ce47dd6f5c0..02a8f480786 100644--- a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt@@ -16,14 +16,14 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x13]CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[20,20 204x154]FillRect@s0/e0 rect=[20,20 204x154] color=rgb(211, 211, 211)-FillRoundedRectRing@s0/e0 rect=[20,20 204x154] widths=[2,2,2,2] color=rgb(0, 0, 0)+FillRoundedRectRing@s0/e0 rect=[20,20 204x154] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s2 rect=[32,32 182x102]-FillRoundedRectRing@s0/e0 rect=[32,32 182x102] widths=[1,1,1,1] color=rgb(0, 0, 255)+FillRoundedRectRing@s0/e0 rect=[32,32 182x102] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255)CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[33,33 300x200]FillRect@s2/c0/e0 rect=[33,33 300x200] color=rgb(240, 128, 128)-DrawGlyphRun@s2/c0/e0 rect=[33,33 179x16] translation=[33,46] color=rgb(0, 0, 0)-CompositorScrollbar@s0/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[204,35 7x48] track_rect=[204,33 9x100] expanded_gutter_rect=[198,33 15x100] expanded_thumb_rect=[200,35 11x48] scroll_size=0.48 expanded_scroll_size=0.48 min_scroll_offset=0 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s0/e0-CompositorScrollbar@s0/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[35,124 97x7] track_rect=[33,124 165x9] expanded_gutter_rect=[33,118 165x15] expanded_thumb_rect=[35,120 97x11] scroll_size=0.53671875 expanded_scroll_size=0.53671875 min_scroll_offset=0 max_scroll_offset=120 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s0/e0+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=23 rect=[33,33 179x16] glyph_bounding_rect=[33,34 184x15] translation=[33,46] color=rgb(0, 0, 0)+CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[204,35 7x48] track_rect=[204,33 9x100] expanded_gutter_rect=[198,33 15x100] expanded_thumb_rect=[200,35 11x48] scroll_size=0.48 expanded_scroll_size=0.48 max_scroll_offset=100 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[204,35 7x48] track_rect=[204,33 9x100] expanded_gutter_rect=[198,33 15x100] scroll_size=0.48 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[35,124 97x7] track_rect=[33,124 165x9] expanded_gutter_rect=[33,118 165x15] expanded_thumb_rect=[35,120 97x11] scroll_size=0.53671875 expanded_scroll_size=0.53671875 max_scroll_offset=120 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[35,124 97x7] track_rect=[33,124 165x9] expanded_gutter_rect=[33,118 165x15] scroll_size=0.53671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt b/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txtindex a52bb3b8755..13116ba98a8 100644--- a/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt+++ b/Tests/LibWeb/Text/expected/display_list/selection-highlight-painting-order.txt@@ -6,16 +6,16 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 shadows_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] orientation=Horizontal layers=[offset=[2,2] blur_radius=0 color=rgb(4, 5, 6)]-PaintTextShadow@s1/e0 shadows_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] orientation=Horizontal layers=[offset=[2,2] blur_radius=0 color=rgb(4, 5, 6)]-PaintTextShadow@s1/e0 shadows_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36] orientation=Horizontal layers=[offset=[2,2] blur_radius=0 color=rgb(4, 5, 6)]-DrawGlyphRun@s1/e0 rect=[0,20 56x20] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[0,20 12x18]]+PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36]+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36]+PaintTextShadow@s1/e0 font_id=font1 glyphs=1 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(4, 5, 6)}] shadows_bounding_rect=[2,22 56x20] rect=[0,20 56x20] translation=[0,36]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[0,20 12x18]]FillRect@s1/e0 rect=[0,38 12x2] color=rgb(7, 8, 9)-DrawGlyphRun@s1/e0 rect=[0,20 56x20] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[44,20 11x18]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(1, 2, 3) inline_clips=[clip=[44,20 11x18]]FillRect@s1/e0 rect=[44,38 11x2] color=rgb(7, 8, 9)FillRect@s1/e0 rect=[12,20 32x20] color=rgb(13, 14, 15)-PaintTextShadow@s1/e0 shadows_rect=[4,24 56x20] rect=[0,20 56x20] translation=[0,36] orientation=Horizontal layers=[offset=[4,4] blur_radius=0 color=rgb(16, 17, 18)]-DrawGlyphRun@s1/e0 rect=[0,20 56x20] translation=[0,36] color=rgb(10, 11, 12) inline_clips=[clip=[12,20 32x18]]+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[4,4] rounded_offset=[4,4] color=rgb(16, 17, 18)}] shadows_bounding_rect=[4,24 56x20] rect=[0,20 56x20] translation=[0,36]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[0,20 56x20] glyph_bounding_rect=[0,20 61x18] translation=[0,36] color=rgb(10, 11, 12) inline_clips=[clip=[12,20 32x18]]FillRect@s1/e0 rect=[12,38 32x2] color=rgb(10, 11, 12)FillRect@s1/e0 rect=[12,28 32x2] color=rgb(19, 20, 21)diff --git a/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt b/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txtindex 18e642c0a44..e1338c6f2df 100644--- a/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt+++ b/Tests/LibWeb/Text/expected/display_list/selection-vertical-writing-mode.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[760,0 20x56] translation=[760,16] color=rgb(0, 0, 0) inline_clips=[clip=[762,0 18x12]]-DrawGlyphRun@s1/e0 rect=[760,0 20x56] translation=[760,16] color=rgb(0, 0, 0) inline_clips=[clip=[762,44 18x11]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,0 18x12]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,44 18x11]]FillRect@s1/e0 rect=[760,12 20x32] color=rgb(1, 2, 3)-DrawGlyphRun@s1/e0 rect=[760,0 20x56] translation=[760,16] color=rgb(0, 0, 0) inline_clips=[clip=[762,12 18x32]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[760,0 20x56] glyph_bounding_rect=[762,0 18x61] translation=[760,16] color=rgb(0, 0, 0) orientation=Vertical inline_clips=[clip=[762,12 18x32]]diff --git a/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt b/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txtindex 481d841d7f2..0b19babe975 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-overflow-containers.txt@@ -15,10 +15,10 @@ ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[9,9ScrollNode scroll_node_index=s3 parent_scroll_node_index=s0 scrollport_rect=[131,9 100x80] min_scroll_offset=[0,0] max_scroll_offset=[50,40] is_viewport=falseDisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 102x82] widths=[1,1,1,1] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[8,8 102x82] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 0)FillRect@s2/c0/e0 rect=[9,9 150x120] color=rgb(240, 128, 128)-DrawGlyphRun@s2/c0/e0 rect=[9,9 110x16] translation=[9,22] color=rgb(0, 0, 0)-FillRoundedRectRing@s1/e0 rect=[130,8 102x82] widths=[1,1,1,1] color=rgb(0, 0, 0)+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=13 rect=[9,9 110x16] glyph_bounding_rect=[9,10 111x15] translation=[9,22] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[130,8 102x82] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 0)FillRect@s3/c1/e0 rect=[131,9 150x120] color=rgb(144, 238, 144)-DrawGlyphRun@s3/c1/e0 rect=[131,9 119x16] translation=[131,22] color=rgb(0, 0, 0)+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=14 rect=[131,9 119x16] glyph_bounding_rect=[131,10 120x15] translation=[131,22] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt b/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txtindex d53825812bb..5c355686473 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-scrollables-in-fixed.txt@@ -22,32 +22,32 @@ CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[0,0 800x600CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x13]CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s0 rect=[10,10 324x224]FillRect@s0/e0 rect=[10,10 324x224] color=rgb(211, 211, 211)-FillRoundedRectRing@s0/e0 rect=[10,10 324x224] widths=[2,2,2,2] color=rgb(0, 0, 0)+FillRoundedRectRing@s0/e0 rect=[10,10 324x224] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s2 rect=[22,22 93.328125x152]-FillRoundedRectRing@s0/e0 rect=[22,22 93x152] widths=[1,1,1,1] color=rgb(0, 0, 255)+FillRoundedRectRing@s0/e0 rect=[22,22 93x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255)CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[23,23 200x300]FillRect@s2/c0/e0 rect=[23,23 200x300] color=rgb(240, 128, 128)-DrawGlyphRun@s2/c0/e0 rect=[23,23 71x16] translation=[23,36] color=rgb(0, 0, 0)-CompositorScrollbar@s0/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[105,25 7x73] track_rect=[105,23 9x150] expanded_gutter_rect=[99,23 15x150] expanded_thumb_rect=[101,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 min_scroll_offset=0 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s0/e0-CompositorScrollbar@s0/e0 scroll_node_index=s2 gutter_rect=[0,0 0x0] thumb_rect=[25,164 33x7] track_rect=[23,164 76x9] expanded_gutter_rect=[23,158 76x15] expanded_thumb_rect=[25,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 min_scroll_offset=0 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s0/e0+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=8 rect=[23,23 71x16] glyph_bounding_rect=[23,24 70x15] translation=[23,36] color=rgb(0, 0, 0)+CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[105,25 7x73] track_rect=[105,23 9x150] expanded_gutter_rect=[99,23 15x150] expanded_thumb_rect=[101,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[105,25 7x73] track_rect=[105,23 9x150] expanded_gutter_rect=[99,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[25,164 33x7] track_rect=[23,164 76x9] expanded_gutter_rect=[23,158 76x15] expanded_thumb_rect=[25,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[25,164 33x7] track_rect=[23,164 76x9] expanded_gutter_rect=[23,158 76x15] scroll_size=0.3617541337167505 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s3 rect=[125.328125,22 93.34375x152]-FillRoundedRectRing@s0/e0 rect=[125,22 94x152] widths=[1,1,1,1] color=rgb(0, 0, 255)+FillRoundedRectRing@s0/e0 rect=[125,22 94x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255)CompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[126.328125,23 200x300]FillRect@s3/c1/e0 rect=[126,23 200x300] color=rgb(144, 238, 144)-DrawGlyphRun@s3/c1/e0 rect=[126,23 67x16] translation=[126.328125,36] color=rgb(0, 0, 0)-CompositorScrollbar@s0/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[209,25 7x73] track_rect=[209,23 9x150] expanded_gutter_rect=[203,23 15x150] expanded_thumb_rect=[205,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 min_scroll_offset=0 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s0/e0-CompositorScrollbar@s0/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[128,164 33x7] track_rect=[126,164 77x9] expanded_gutter_rect=[126,158 77x15] expanded_thumb_rect=[128,160 33x11] scroll_size=0.36180615473109 expanded_scroll_size=0.36180615473109 min_scroll_offset=0 max_scroll_offset=108.65625 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s0/e0+DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=8 rect=[126,23 67x16] glyph_bounding_rect=[126,24 70x15] translation=[126.328125,36] color=rgb(0, 0, 0)+CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[209,25 7x73] track_rect=[209,23 9x150] expanded_gutter_rect=[203,23 15x150] expanded_thumb_rect=[205,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s0/e0 scroll_node_index=s3 thumb_rect=[209,25 7x73] track_rect=[209,23 9x150] expanded_gutter_rect=[203,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[128,164 33x7] track_rect=[126,164 77x9] expanded_gutter_rect=[126,158 77x15] expanded_thumb_rect=[128,160 33x11] scroll_size=0.36180615473109 expanded_scroll_size=0.36180615473109 max_scroll_offset=108.65625 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s0/e0 scroll_node_index=s3 thumb_rect=[128,164 33x7] track_rect=[126,164 77x9] expanded_gutter_rect=[126,158 77x15] scroll_size=0.36180615473109 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s4 rect=[228.67188,22 93.328125x152]-FillRoundedRectRing@s0/e0 rect=[229,22 93x152] widths=[1,1,1,1] color=rgb(0, 0, 255)+FillRoundedRectRing@s0/e0 rect=[229,22 93x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255)CompositorWheelHitTestTarget@s4/c2/e0 target_scroll_node_index=s4 rect=[229.67188,23 200x300]FillRect@s4/c2/e0 rect=[230,23 200x300] color=rgb(173, 216, 230)-DrawGlyphRun@s4/c2/e0 rect=[229,23 68x16] translation=[229.67188,36] color=rgb(0, 0, 0)-CompositorScrollbar@s0/e0 scroll_node_index=s4 gutter_rect=[0,0 0x0] thumb_rect=[312,25 7x73] track_rect=[312,23 9x150] expanded_gutter_rect=[306,23 15x150] expanded_thumb_rect=[308,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 min_scroll_offset=0 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s0/e0-CompositorScrollbar@s0/e0 scroll_node_index=s4 gutter_rect=[0,0 0x0] thumb_rect=[232,164 33x7] track_rect=[230,164 76x9] expanded_gutter_rect=[230,158 76x15] expanded_thumb_rect=[232,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 min_scroll_offset=0 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=false is_painted_by_compositor=false-PaintScrollBar@s0/e0+DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=8 rect=[229,23 68x16] glyph_bounding_rect=[230,24 70x15] translation=[229.67188,36] color=rgb(0, 0, 0)+CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[312,25 7x73] track_rect=[312,23 9x150] expanded_gutter_rect=[306,23 15x150] expanded_thumb_rect=[308,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s0/e0 scroll_node_index=s4 thumb_rect=[312,25 7x73] track_rect=[312,23 9x150] expanded_gutter_rect=[306,23 15x150] scroll_size=0.4866666666666667 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[232,164 33x7] track_rect=[230,164 76x9] expanded_gutter_rect=[230,158 76x15] expanded_thumb_rect=[232,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)+PaintScrollBar@s0/e0 scroll_node_index=s4 thumb_rect=[232,164 33x7] track_rect=[230,164 76x9] expanded_gutter_rect=[230,158 76x15] scroll_size=0.3617541337167505 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098)diff --git a/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt b/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txtindex 5812ece21b5..44f3ca062ed 100644--- a/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt+++ b/Tests/LibWeb/Text/expected/display_list/sibling-transforms.txt@@ -2,14 +2,14 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9848077,-0.17364818,0.17364818,0.9848077,0,0] origin=(48,48) (BlockContainer<DIV>.box.left)- [s3] transform=[0.8,0,0,0.8,0,0] origin=(138,48) (BlockContainer<DIV>.box.right)+ [s2] transform=[0.9848077,-0.17364818,0.17364818,0.9848077,0,0] origin=(48,48) bounds=[8,8 80x80] (BlockContainer<DIV>.box.left)+ [s3] transform=[0.8,0,0,0.8,0,0] origin=(138,48) bounds=[98,8 80x80] (BlockContainer<DIV>.box.right)effects:[e0 in s0] effects=[]DisplayList:FillRect@s2/e0 rect=[8,8 80x80] color=rgb(255, 0, 0)-DrawGlyphRun@s2/e0 rect=[8,8 15x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 15x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s3/e0 rect=[98,8 80x80] color=rgb(0, 0, 255)-DrawGlyphRun@s3/e0 rect=[98,8 10x16] translation=[98,21] color=rgb(0, 0, 0)+DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[98,8 10x16] glyph_bounding_rect=[98,8 13x15] translation=[98,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt b/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txtindex 73033aad0c5..0eaab25534e 100644--- a/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt+++ b/Tests/LibWeb/Text/expected/display_list/simple-overflow-hidden.txt@@ -12,7 +12,7 @@ ScrollNodes:ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[10,10 200x100] min_scroll_offset=[0,0] max_scroll_offset=[100,50] is_viewport=falseDisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 204x104] widths=[2,2,2,2] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[8,8 204x104] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)FillRect@s2/c0/e0 rect=[10,10 300x150] color=rgb(240, 128, 128)-DrawGlyphRun@s2/c0/e0 rect=[10,10 38x16] translation=[10,23] color=rgb(0, 0, 0)+DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=4 rect=[10,10 38x16] glyph_bounding_rect=[10,10 44x15] translation=[10,23] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/solid-border-edge-before-a-groove-edge.txt b/Tests/LibWeb/Text/expected/display_list/solid-border-edge-before-a-groove-edge.txtindex acdc3326f35..201c20e523a 100644--- a/Tests/LibWeb/Text/expected/display_list/solid-border-edge-before-a-groove-edge.txt+++ b/Tests/LibWeb/Text/expected/display_list/solid-border-edge-before-a-groove-edge.txt@@ -6,11 +6,11 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s1/e0 path_bounding_rect=[8,8 140x20]-FillPath@s1/e0 path_bounding_rect=[138,8 10x100]-FillPath@s1/e0 path_bounding_rect=[128,18 10x80]-FillPath@s1/e0 path_bounding_rect=[8,98 140x10]-FillPath@s1/e0 path_bounding_rect=[18,88 120x10]-FillPath@s1/e0 path_bounding_rect=[8,8 10x100]-FillPath@s1/e0 path_bounding_rect=[18,18 10x80]+FillPath@s1/e0 path_bounding_rect=[8,8 140x20] path_data=[path: M8 8L8 8L28 28L128 28L148 8L148 8] color=rgb(48, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[138,8 10x100] path_data=[path: M148 8L148 8L138 18L138 98L148 108L148 108] color=rgb(133, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[128,18 10x80] path_data=[path: M138 18L138 18L128 28L128 88L138 98L138 98] color=rgb(48, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,98 140x10] path_data=[path: M148 108L148 108L138 98L18 98L8 108L8 108] color=rgb(133, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[18,88 120x10] path_data=[path: M138 98L138 98L128 88L28 88L18 98L18 98] color=rgb(48, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,8 10x100] path_data=[path: M8 108L8 108L18 98L18 18L8 8L8 8] color=rgb(48, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[18,18 10x80] path_data=[path: M18 98L18 98L28 88L28 28L18 18L18 18] color=rgb(133, 0, 0) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/solid-border-edges-with-a-dashed-edge.txt b/Tests/LibWeb/Text/expected/display_list/solid-border-edges-with-a-dashed-edge.txtindex 447938ffa80..af2547df124 100644--- a/Tests/LibWeb/Text/expected/display_list/solid-border-edges-with-a-dashed-edge.txt+++ b/Tests/LibWeb/Text/expected/display_list/solid-border-edges-with-a-dashed-edge.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s1/e0 path_bounding_rect=[8,8 120x80]-StrokePath@s1/e0 path_bounding_rect=[8,3 10x90] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=10.00 inline_clips=[clip_path=[bounds: [8,8 10x80], path: M8 88L8 88L18 78L18 18L8 8L8 8]]-StrokePath@s1/e0 path_bounding_rect=[3,88 130x10] thickness=10 color=rgb(255, 0, 0) dash_array_size=2 dash_offset=10.00 inline_clips=[clip_path=[bounds: [8,88 120x10], path: M8 88L8 88L18 98L118 98L128 88L128 88]]-FillPath@s1/e0 path_bounding_rect=[8,88 120x80]+FillPath@s1/e0 path_bounding_rect=[8,8 120x80] path_data=[path: M8 8L8 8L18 18L118 18L128 8L128 8M128 8L128 8L118 18L118 78L128 88L128 88M128 88L128 88L118 78L18 78L8 88L8 88] color=rgb(255, 0, 0) winding_rule=EvenOdd+StrokePath@s1/e0 dash_array=[20, 20] dash_offset=10 path_bounding_rect=[8,3 10x90] path_data=[path: M13 88L13 8] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [8,8 10x80], path: M8 88L8 88L18 78L18 18L8 8L8 8] winding_rule=EvenOdd]+StrokePath@s1/e0 dash_array=[20, 20] dash_offset=10 path_bounding_rect=[3,88 130x10] path_data=[path: M8 93L128 93] color=rgb(255, 0, 0) thickness=10 inline_clips=[clip_path=[bounds: [8,88 120x10], path: M8 88L8 88L18 98L118 98L128 88L128 88] winding_rule=EvenOdd]+FillPath@s1/e0 path_bounding_rect=[8,88 120x80] path_data=[path: M128 88L128 88L118 98L118 158L128 168L128 168M128 168L128 168L118 158L18 158L8 168L8 168M8 168L8 168L18 158L18 98L8 88L8 88] color=rgb(255, 0, 0) winding_rule=EvenOdddiff --git a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-mask-after-relayout.txt b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-mask-after-relayout.txtindex c5b9844ea73..4a42484709d 100644--- a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-mask-after-relayout.txt+++ b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-mask-after-relayout.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)[s2] svg-viewport-transform=[1,0,0,1,8,8] origin=(0,0) (SVGSVGBox<svg>)- [s3] transform=[1,0,0,1,1,0] origin=(0,0) (SVGForeignObjectBox<foreignObject>#fo)+ [s3] transform=[1,0,0,1,1,0] origin=(0,0) flattens_inherited_transform=false bounds=[0,0 100x100] (SVGForeignObjectBox<foreignObject>#fo)clips:[c0 in s1] clip=[8,8 100x100] (SVGSVGBox<svg>)[c1 in s3] clip=[0,0 100x100] (SVGForeignObjectBox<foreignObject>#fo)@@ -13,6 +13,6 @@ AccumulatedVisualContext Tree:DisplayList:DeclareMaskContent@s3/c0/e1 rect=[-10,-10 120x120] effect=e1- FillPath@s3/c0/e1 path_bounding_rect=[0,0 100x100]+ FillPath@s3/c0/e1 path_bounding_rect=[0,0 100x100] path_data=[curved path: 129 commands] color=rgb(255, 255, 255)FillRect@s3/c1/e1 rect=[0,0 100x100] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txtindex f14700d42bf..26e64784c94 100644--- a/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt+++ b/Tests/LibWeb/Text/expected/display_list/svg-foreignobject-scroller-after-relayout.txt@@ -20,11 +20,11 @@ CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[0,0 800x124CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x103]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 784x103]CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[8,8 100x100]-StrokePath@s2/c0/e0 path_bounding_rect=[9.5,9.5 81x81] thickness=1 color=rgb(0, 0, 0)+StrokePath@s2/c0/e0 path_bounding_rect=[9.5,9.5 81x81] path_data=[path: M10 10L90 90] color=rgb(0, 0, 0) thickness=1CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s0 rect=[0,0 100x100]CompositorWheelHitTestTarget@s2/c1/e0 target_scroll_node_index=s3 rect=[0,0 80x80]CompositorWheelHitTestTarget@s3/c2/e0 target_scroll_node_index=s3 rect=[0,0 80x300]FillRect@s3/c2/e0 rect=[0,0 80x300] color=rgb(0, 0, 0)-CompositorScrollbar@s2/c1/e0 scroll_node_index=s3 gutter_rect=[0,0 0x0] thumb_rect=[71,2 7x24] track_rect=[71,0 9x80] expanded_gutter_rect=[65,0 15x80] expanded_thumb_rect=[67,2 11x24] scroll_size=0.23636363636363636 expanded_scroll_size=0.23636363636363636 min_scroll_offset=0 max_scroll_offset=220 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true is_painted_by_compositor=false-PaintScrollBar@s2/c1/e0+CompositorScrollbar@s2/c1/e0 scroll_node_index=s3 thumb_rect=[71,2 7x24] track_rect=[71,0 9x80] expanded_gutter_rect=[65,0 15x80] expanded_thumb_rect=[67,2 11x24] scroll_size=0.23636363636363636 expanded_scroll_size=0.23636363636363636 max_scroll_offset=220 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=true+PaintScrollBar@s2/c1/e0 scroll_node_index=s3 thumb_rect=[71,2 7x24] track_rect=[71,0 9x80] expanded_gutter_rect=[65,0 15x80] scroll_size=0.23636363636363636 thumb_color=rgba(0, 0, 0, 0.5) thumb_outline_color=rgba(255, 255, 255, 0.25) track_color=rgba(0, 0, 0, 0.098) vertical=truediff --git a/Tests/LibWeb/Text/expected/display_list/svg-in-img-is-recorded-without-visual-contexts.txt b/Tests/LibWeb/Text/expected/display_list/svg-in-img-is-recorded-without-visual-contexts.txtindex 2ceab9218ac..9c1536f9642 100644--- a/Tests/LibWeb/Text/expected/display_list/svg-in-img-is-recorded-without-visual-contexts.txt+++ b/Tests/LibWeb/Text/expected/display_list/svg-in-img-is-recorded-without-visual-contexts.txt@@ -6,12 +6,12 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintVectorImage@s1/e0 rect=[8,13 300x200]- FillPath@s1/e0 path_bounding_rect=[0,0 100x100] inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]- FillPath@s1/e0 path_bounding_rect=[0,100 100x100] inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]- DrawIsolatedGroup@s1/e0 clip_rect=[0,0 300x200] has_mask=alpha inline_clips=[clip_path=[bounds: [4,10 55x56], path: M9.0903902 10.833505L58.900124 15.191292L54.542339 65.00103L4.7326026 60.643242L9.0903902 10.833505Z]]- FillPath@s1/e0 path_bounding_rect=[0,0 100x100] inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]- FillPath@s1/e0 path_bounding_rect=[0,100 100x100] inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]+PaintVectorImage@s1/e0 vector_image_id=svg1 rect=[8,13 300x200] recorded_size=[300x200]+ FillPath@s1/e0 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(255, 0, 0) inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]+ FillPath@s1/e0 path_bounding_rect=[0,100 100x100] path_data=[path: M0 100L100 100L100 200L0 200L0 100Z] color=rgb(255, 0, 0) inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]+ DrawIsolatedGroup@s1/e0 clip_rect=[0,0 300x200] inline_clips=[clip_path=[bounds: [4,10 55x56], path: M9.0903902 10.833505L58.900124 15.191292L54.542339 65.00103L4.7326026 60.643242L9.0903902 10.833505Z]]+ FillPath@s1/e0 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(0, 128, 0) inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]+ FillPath@s1/e0 path_bounding_rect=[0,100 100x100] path_data=[path: M0 100L100 100L100 200L0 200L0 100Z] color=rgb(0, 0, 255) inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.961947,0.8715575]Mask:- FillPath@s1/e0 path_bounding_rect=[0,0 100x100] inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.09039,10.833505]+ FillPath@s1/e0 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(0, 0, 0) inline_transform=[0.49809736,0.043577872,-0.043577872,0.49809736,9.09039,10.833505]diff --git a/Tests/LibWeb/Text/expected/display_list/svg-overflow-on-inner-elements.txt b/Tests/LibWeb/Text/expected/display_list/svg-overflow-on-inner-elements.txtindex 6a7d3d838f2..654a63cf077 100644--- a/Tests/LibWeb/Text/expected/display_list/svg-overflow-on-inner-elements.txt+++ b/Tests/LibWeb/Text/expected/display_list/svg-overflow-on-inner-elements.txt@@ -9,5 +9,5 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillPath@s2/c0/e0 path_bounding_rect=[10,10 100x100]+FillPath@s2/c0/e0 path_bounding_rect=[10,10 100x100] path_data=[path: M10 10L110 10L110 110L10 110L10 10Z] color=rgb(0, 128, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/svg-transform-with-opacity.txt b/Tests/LibWeb/Text/expected/display_list/svg-transform-with-opacity.txtindex ca47861be42..ddb2a0b2a4d 100644--- a/Tests/LibWeb/Text/expected/display_list/svg-transform-with-opacity.txt+++ b/Tests/LibWeb/Text/expected/display_list/svg-transform-with-opacity.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)[s2] svg-viewport-transform=[1,0,0,1,8,8] origin=(0,0) (SVGSVGBox<svg>)- [s3] transform=[1,0,0,1,20,20] origin=(0,0) (SVGGeometryBox<rect>)+ [s3] transform=[1,0,0,1,20,20] origin=(0,0) flattens_inherited_transform=false bounds=[0,0 200x200] (SVGGeometryBox<rect>)clips:[c0 in s1] clip=[8,8 200x200] (SVGSVGBox<svg>)effects:@@ -11,5 +11,5 @@ AccumulatedVisualContext Tree:[e1 in s2 out=c0] effects=[opacity=0.5] (SVGGeometryBox<rect>)DisplayList:-FillPath@s3/c0/e1 path_bounding_rect=[0,0 100x100]+FillPath@s3/c0/e1 path_bounding_rect=[0,0 100x100] path_data=[path: M0 0L100 0L100 100L0 100L0 0Z] color=rgb(255, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt b/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txtindex 48bf53707c2..82901e8e999 100644--- a/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-decoration-thin-lines-cover-whole-pixels.txt@@ -6,11 +6,11 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,14 45x14] translation=[8,25] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,14 45x14] glyph_bounding_rect=[8,14 48x13] translation=[8,25] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,27 44x1] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,29 44x1] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,42 43x14] translation=[8,53] color=rgb(0, 0, 0)-StrokePath@s1/e0 path_bounding_rect=[7.5,55 43x1] thickness=1 color=rgb(0, 0, 0) dash_array_size=2 dash_offset=0.00-DrawGlyphRun@s1/e0 rect=[8,70 46x14] translation=[8,81] color=rgb(0, 0, 0)-StrokePath@s1/e0 path_bounding_rect=[7.5,83 47x1] thickness=1 color=rgb(0, 0, 0) dash_array_size=2 dash_offset=0.00+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,42 43x14] glyph_bounding_rect=[8,42 47x13] translation=[8,53] color=rgb(0, 0, 0)+StrokePath@s1/e0 dash_array=[1, 1] path_bounding_rect=[7.5,55 43x1] path_data=[path: M8 55.5L50 55.5] color=rgb(0, 0, 0) thickness=1+DrawGlyphRun@s1/e0 font_id=font1 glyphs=6 rect=[8,70 46x14] glyph_bounding_rect=[8,70 51x13] translation=[8,81] color=rgb(0, 0, 0)+StrokePath@s1/e0 dash_array=[2, 2] path_bounding_rect=[7.5,83 47x1] path_data=[path: M8 83.5L54 83.5] color=rgb(0, 0, 0) thickness=1diff --git a/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt b/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txtindex 47067e103fe..cde16bc9e67 100644--- a/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-decoration-underline-partial-selection.txt@@ -6,13 +6,13 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,-17 169x100] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[9,-15 60x91]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[9,-15 60x91]]FillRect@s1/e0 rect=[8,65 37x10] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[57,65 10x10] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,-17 169x100] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[116,-15 61x91]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[116,-15 61x91]]FillRect@s1/e0 rect=[116,65 37x10] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[165,65 12x10] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[69,-17 47x100] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/e0 rect=[8,-17 169x100] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[69,-15 47x91]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[8,-17 169x100] glyph_bounding_rect=[9,-15 191x91] translation=[8,63] color=rgb(0, 0, 0) inline_clips=[clip=[69,-15 47x91]]FillRect@s1/e0 rect=[109,65 7x10] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txtindex c8c4c1b0d0f..73c280d1cd5 100644--- a/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-input-clip-is-not-rounded.txt@@ -10,6 +10,6 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/c1/e0 rect=[8,11 23x13] color=rgba(101, 2, 0, 0.8)-DrawGlyphRun@s1/c1/e0 rect=[8,11 23x13] translation=[8,21] color=rgb(0, 0, 0)-FillRoundedRectRing@s1/e0 rect=[6,9 160x17] corner_radii=[8x8,8x8,8x8,8x8] widths=[2,2,2,2] color=rgb(61, 174, 233)+DrawGlyphRun@s1/c1/e0 font_id=font1 glyphs=3 rect=[8,11 23x13] glyph_bounding_rect=[8,11 26x12] translation=[8,21] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[6,9 160x17] corner_radii=[8x8,8x8,8x8,8x8] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)diff --git a/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt b/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txtindex 55e885c292f..2e8039b4bb5 100644--- a/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-shadow-multiple-layers.txt@@ -6,6 +6,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 shadows_rect=[-8,-8 100x36] rect=[0,0 84x20] translation=[0,16] orientation=Horizontal layers=[offset=[0,0] blur_radius=4 color=rgb(0, 0, 0), offset=[-1,-1] blur_radius=0 color=rgba(45, 45, 45, 0.6), offset=[1,1] blur_radius=0 color=rgba(45, 45, 45, 0.6), offset=[-1,0] blur_radius=0 color=rgba(0, 0, 0, 0.5), offset=[1,0] blur_radius=0 color=rgba(0, 0, 0, 0.5)]-DrawGlyphRun@s1/e0 rect=[0,0 84x20] translation=[0,16] color=rgb(255, 255, 255)+PaintTextShadow@s1/e0 font_id=font1 glyphs=7 layers=[{blur_radius=4 color=rgb(0, 0, 0)}, {offset=[-1,-1] rounded_offset=[-1,-1] color=rgba(45, 45, 45, 0.6)}, {offset=[1,1] rounded_offset=[1,1] color=rgba(45, 45, 45, 0.6)}, {offset=[-1,0] rounded_offset=[-1,0] color=rgba(0, 0, 0, 0.5)}, {offset=[1,0] rounded_offset=[1,0] color=rgba(0, 0, 0, 0.5)}] shadows_bounding_rect=[-8,-8 100x36] rect=[0,0 84x20] translation=[0,16]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=7 rect=[0,0 84x20] glyph_bounding_rect=[0,0 88x18] translation=[0,16] color=rgb(255, 255, 255)diff --git a/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt b/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txtindex 64df9bfe163..bba26c0fea6 100644--- a/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt+++ b/Tests/LibWeb/Text/expected/display_list/text-shadow-vertical-writing-mode.txt@@ -6,6 +6,6 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-PaintTextShadow@s1/e0 shadows_rect=[762,2 20x35] rect=[760,0 20x35] translation=[760,16] orientation=Vertical layers=[offset=[2,2] blur_radius=0 color=rgb(255, 0, 0)]-DrawGlyphRun@s1/e0 rect=[760,0 20x35] translation=[760,16] color=rgb(0, 0, 0)+PaintTextShadow@s1/e0 font_id=font1 glyphs=3 layers=[{offset=[2,2] rounded_offset=[2,2] color=rgb(255, 0, 0)}] shadows_bounding_rect=[762,2 20x35] rect=[760,0 20x35] translation=[760,16] orientation=Vertical+DrawGlyphRun@s1/e0 font_id=font1 glyphs=3 rect=[760,0 20x35] glyph_bounding_rect=[762,0 18x40] translation=[760,16] color=rgb(0, 0, 0) orientation=Verticaldiff --git a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txtindex c725a1ac2d2..8309720d160 100644--- a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt@@ -8,15 +8,15 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-FillRectWithRoundedCorners@s1/e0 rect=[8,8 106x34] color=rgb(255, 255, 255)-FillRoundedRectRing@s1/e0 rect=[8,8 106x34] corner_radii=[4x4,4x4,4x4,4x4] widths=[1,1,1,1] color=rgb(118, 118, 118)-DrawGlyphRun@s1/c0/e0 rect=[11,11 31x14] translation=[11,22] color=rgb(0, 0, 0)-PaintCaret@s1/c0/e0 rect=[11,11 1x14] color=rgb(0, 0, 0) should_blink=false-FillRoundedRectRing@s1/e0 rect=[6,6 110x38] corner_radii=[6x6,6x6,6x6,6x6] widths=[2,2,2,2] color=rgb(61, 174, 233)-DrawLine@s1/e0 from=[109,39] to=[111,37] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[108,39] to=[111,36] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[106,39] to=[111,34] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[105,39] to=[111,33] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[103,39] to=[111,31] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid-DrawLine@s1/e0 from=[102,39] to=[111,30] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid+FillRectWithRoundedCorners@s1/e0 rect=[8,8 106x34] color=rgb(255, 255, 255) corner_radii=[4x4,4x4,4x4,4x4]+FillRoundedRectRing@s1/e0 rect=[8,8 106x34] corner_radii=[4x4,4x4,4x4,4x4] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(118, 118, 118)+DrawGlyphRun@s1/c0/e0 font_id=font1 glyphs=5 rect=[11,11 31x14] glyph_bounding_rect=[11,12 33x12] translation=[11,22] color=rgb(0, 0, 0)+PaintCaret@s1/c0/e0 rect=[11,11 1x14] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1+FillRoundedRectRing@s1/e0 rect=[6,6 110x38] corner_radii=[6x6,6x6,6x6,6x6] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(61, 174, 233)+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[109,39] to=[111,37] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[108,39] to=[111,36] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[106,39] to=[111,34] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[105,39] to=[111,33] thickness=1+DrawLine@s1/e0 color=rgba(255, 255, 255, 0.392) from=[103,39] to=[111,31] thickness=1+DrawLine@s1/e0 color=rgba(0, 0, 0, 0.392) from=[102,39] to=[111,30] thickness=1diff --git a/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt b/Tests/LibWeb/Text/expected/display_list/three-way-branch.txtindex 794db9344fd..1725c840a91 100644--- a/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt+++ b/Tests/LibWeb/Text/expected/display_list/three-way-branch.txt@@ -2,17 +2,17 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.9659258,-0.25881904,0.25881904,0.9659258,0,0] origin=(38,38) (BlockContainer<DIV>.box.a)- [s3] transform=[1.1,0,0,1.1,0,0] origin=(103,38) (BlockContainer<DIV>.box.b)- [s4] transform=[1,0.17632698,0,1,0,0] origin=(168,38) (BlockContainer<DIV>.box.c)+ [s2] transform=[0.9659258,-0.25881904,0.25881904,0.9659258,0,0] origin=(38,38) bounds=[8,8 60x60] (BlockContainer<DIV>.box.a)+ [s3] transform=[1.1,0,0,1.1,0,0] origin=(103,38) bounds=[73,8 60x60] (BlockContainer<DIV>.box.b)+ [s4] transform=[1,0.17632698,0,1,0,0] origin=(168,38) bounds=[138,8 60x60] (BlockContainer<DIV>.box.c)effects:[e0 in s0] effects=[]DisplayList:FillRect@s2/e0 rect=[8,8 60x60] color=rgb(255, 0, 0)-DrawGlyphRun@s2/e0 rect=[8,8 7x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s2/e0 font_id=font1 glyphs=1 rect=[8,8 7x16] glyph_bounding_rect=[8,8 13x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s3/e0 rect=[73,8 60x60] color=rgb(0, 128, 0)-DrawGlyphRun@s3/e0 rect=[73,8 9x16] translation=[73,21] color=rgb(0, 0, 0)+DrawGlyphRun@s3/e0 font_id=font1 glyphs=1 rect=[73,8 9x16] glyph_bounding_rect=[73,8 13x15] translation=[73,21] color=rgb(0, 0, 0)FillRect@s4/e0 rect=[138,8 60x60] color=rgb(0, 0, 255)-DrawGlyphRun@s4/e0 rect=[138,8 10x16] translation=[138,21] color=rgb(0, 0, 0)+DrawGlyphRun@s4/e0 font_id=font1 glyphs=1 rect=[138,8 10x16] glyph_bounding_rect=[138,8 13x15] translation=[138,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/transform-basic.txt b/Tests/LibWeb/Text/expected/display_list/transform-basic.txtindex 65e5dee812c..de534f6fd8f 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-basic.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-basic.txt@@ -2,11 +2,11 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,50,30] origin=(58,58) (BlockContainer<DIV>.box)+ [s2] transform=[1,0,0,1,50,30] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>.box)effects:[e0 in s0] effects=[]DisplayList:FillRect@s2/e0 rect=[8,8 100x100] color=rgb(0, 0, 255)-DrawGlyphRun@s2/e0 rect=[8,8 38x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s2/e0 font_id=font1 glyphs=4 rect=[8,8 38x16] glyph_bounding_rect=[8,8 44x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/transform-invertibility-invalidation.txt b/Tests/LibWeb/Text/expected/display_list/transform-invertibility-invalidation.txtindex 9e45957200c..1b27d86bbca 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-invertibility-invalidation.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-invertibility-invalidation.txt@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,0,0] origin=(58,58) (BlockContainer<DIV>#box)+ [s2] transform=[1,0,0,1,0,0] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>#box)effects:[e0 in s0] effects=[]diff --git a/Tests/LibWeb/Text/expected/display_list/transform-nested.txt b/Tests/LibWeb/Text/expected/display_list/transform-nested.txtindex 1e194f16d3e..b2674d389a4 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-nested.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-nested.txt@@ -2,13 +2,13 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(108,108) (BlockContainer<DIV>.outer)- [s3] transform=[0.5,0,0,0.5,0,0] origin=(58,58) (BlockContainer<DIV>.inner)+ [s2] transform=[0.70710677,-0.70710677,0.70710677,0.70710677,0,0] origin=(108,108) bounds=[8,8 200x200] (BlockContainer<DIV>.outer)+ [s3] transform=[0.5,0,0,0.5,0,0] origin=(58,58) bounds=[8,8 100x100] (BlockContainer<DIV>.inner)effects:[e0 in s0] effects=[]DisplayList:FillRect@s2/e0 rect=[8,8 200x200] color=rgb(173, 216, 230)FillRect@s3/e0 rect=[8,8 100x100] color=rgb(255, 127, 80)-DrawGlyphRun@s3/e0 rect=[8,8 52x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s3/e0 font_id=font1 glyphs=6 rect=[8,8 52x16] glyph_bounding_rect=[8,8 57x15] translation=[8,21] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt b/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txtindex 9ab59bb9e46..0df199a10b8 100644--- a/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt+++ b/Tests/LibWeb/Text/expected/display_list/transform-with-clip.txt@@ -3,7 +3,7 @@ AccumulatedVisualContext Tree:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)[s2] scroll (BlockContainer<DIV>.container)- [s3] transform=[1,0,0,1,20,20] origin=(110,110) (BlockContainer<DIV>.transformed)+ [s3] transform=[1,0,0,1,20,20] origin=(110,110) bounds=[10,10 200x200] (BlockContainer<DIV>.transformed)clips:[c0 in s1] clip=[10,10 150x150] (BlockContainer<DIV>.container)effects:@@ -13,7 +13,7 @@ ScrollNodes:ScrollNode scroll_node_index=s2 parent_scroll_node_index=s0 scrollport_rect=[10,10 150x150] min_scroll_offset=[0,0] max_scroll_offset=[70,70] is_viewport=falseDisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 154x154] widths=[2,2,2,2] color=rgb(0, 0, 0)+FillRoundedRectRing@s1/e0 rect=[8,8 154x154] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 0)FillRect@s3/c0/e0 rect=[10,10 200x200] color=rgb(144, 238, 144)-DrawGlyphRun@s3/c0/e0 rect=[10,10 185x16] translation=[10,23] color=rgb(0, 0, 0)+DrawGlyphRun@s3/c0/e0 font_id=font1 glyphs=21 rect=[10,10 185x16] glyph_bounding_rect=[10,10 190x15] translation=[10,23] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/display_list/uniform-solid-border-ring.txt b/Tests/LibWeb/Text/expected/display_list/uniform-solid-border-ring.txtindex 8d74bfdf4ca..a4dc22eb506 100644--- a/Tests/LibWeb/Text/expected/display_list/uniform-solid-border-ring.txt+++ b/Tests/LibWeb/Text/expected/display_list/uniform-solid-border-ring.txt@@ -9,23 +9,23 @@ ScrollNodes:ScrollNode scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,20] is_viewport=trueDisplayList:-FillRoundedRectRing@s1/e0 rect=[8,8 106x46] widths=[3,3,3,3] color=rgb(255, 0, 0)-FillRoundedRectRing@s1/e0 rect=[8,64 104x44] corner_radii=[8x8,8x8,8x8,8x8] widths=[2,2,2,2] color=rgb(0, 0, 255)-FillRoundedRectRing@s1/e0 rect=[8,118 100x41] widths=[0,0,1,0] color=rgb(0, 128, 0)-FillRoundedRectRing@s1/e0 rect=[8,169 104x44] corner_radii=[10x10,10x10,10x10,10x10] widths=[4,0,0,4] color=rgb(255, 0, 0)-FillRoundedRectRing@s1/e0 rect=[8,223 106x44] corner_radii=[12x6,12x6,12x6,12x6] widths=[1,2,3,4] color=rgb(255, 165, 0)-FillRoundedRectRing@s1/e0 rect=[8,277 118x58] corner_radii=[10x10,10x10,10x10,10x10] widths=[3,3,3,3] color=rgb(128, 0, 128)-FillRoundedRectRing@s1/e0 rect=[14,283 106x46] corner_radii=[4x4,4x4,4x4,4x4] widths=[3,3,3,3] color=rgb(128, 0, 128)-FillRoundedRectRing@s1/e0 rect=[8,345 104x44] widths=[4,0,0,4] color=rgb(43, 43, 43)-FillPath@s1/e0 path_bounding_rect=[8,399 108x48]-FillPath@s1/e0 path_bounding_rect=[8,399 108x48]-FillPath@s1/e0 path_bounding_rect=[110,457 2x44]-FillPath@s1/e0 path_bounding_rect=[8,499 104x2]-FillPath@s1/e0 path_bounding_rect=[8,457 2x44]-FillPath@s1/e0 path_bounding_rect=[8,457 104x2]-FillPath@s1/e0 path_bounding_rect=[8,511 106x46]-FillPath@s1/e0 path_bounding_rect=[8,556 106x1]-FillPath@s1/e0 path_bounding_rect=[10,554 102x1]-FillPath@s1/e0 path_bounding_rect=[8,511 3x46]-FillRoundedRectRing@s1/e0 rect=[4,563 108x48] widths=[2,2,2,2] color=rgb(0, 128, 128)+FillRoundedRectRing@s1/e0 rect=[8,8 106x46] top_width=3 right_width=3 bottom_width=3 left_width=3 color=rgb(255, 0, 0)+FillRoundedRectRing@s1/e0 rect=[8,64 104x44] corner_radii=[8x8,8x8,8x8,8x8] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 0, 255)+FillRoundedRectRing@s1/e0 rect=[8,118 100x41] bottom_width=1 color=rgb(0, 128, 0)+FillRoundedRectRing@s1/e0 rect=[8,169 104x44] corner_radii=[10x10,10x10,10x10,10x10] top_width=4 left_width=4 color=rgb(255, 0, 0)+FillRoundedRectRing@s1/e0 rect=[8,223 106x44] corner_radii=[12x6,12x6,12x6,12x6] top_width=1 right_width=2 bottom_width=3 left_width=4 color=rgb(255, 165, 0)+FillRoundedRectRing@s1/e0 rect=[8,277 118x58] corner_radii=[10x10,10x10,10x10,10x10] top_width=3 right_width=3 bottom_width=3 left_width=3 color=rgb(128, 0, 128)+FillRoundedRectRing@s1/e0 rect=[14,283 106x46] corner_radii=[4x4,4x4,4x4,4x4] top_width=3 right_width=3 bottom_width=3 left_width=3 color=rgb(128, 0, 128)+FillRoundedRectRing@s1/e0 rect=[8,345 104x44] top_width=4 left_width=4 color=rgb(43, 43, 43)+FillPath@s1/e0 path_bounding_rect=[8,399 108x48] path_data=[path: M116 399L116 399L112 403L112 443L116 447L116 447M116 447L116 447L112 443L12 443L8 447L8 447] color=rgb(128, 128, 128) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,399 108x48] path_data=[path: M8 447L8 447L12 443L12 403L8 399L8 399M8 399L8 399L12 403L112 403L116 399L116 399] color=rgb(43, 43, 43) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[110,457 2x44] path_data=[path: M112 457L112 457L110 459L110 499L112 501L112 501] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,499 104x2] path_data=[path: M112 501L112 501L110 499L10 499L8 501L8 501] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,457 2x44] path_data=[path: M8 501L8 501L10 499L10 459L8 457L8 457] color=rgb(0, 0, 255) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,457 104x2] path_data=[path: M8 457L8 457L10 459L110 459L112 457L112 457] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,511 106x46] path_data=[path: M8 511L8 511L11 514L111 514L114 511L114 511M114 511L114 511L111 514L111 554L114 557L114 557] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,556 106x1] path_data=[path: M114 557L114 557L113 556L9 556L8 557L8 557] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[10,554 102x1] path_data=[path: M112 555L112 555L111 554L11 554L10 555L10 555] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillPath@s1/e0 path_bounding_rect=[8,511 3x46] path_data=[path: M8 557L8 557L11 554L11 514L8 511L8 511] color=rgb(255, 0, 0) winding_rule=EvenOdd+FillRoundedRectRing@s1/e0 rect=[4,563 108x48] top_width=2 right_width=2 bottom_width=2 left_width=2 color=rgb(0, 128, 128)diff --git a/Tests/LibWeb/Text/expected/display_list/will-change-visual-context-nodes.txt b/Tests/LibWeb/Text/expected/display_list/will-change-visual-context-nodes.txtindex 4a2b438c459..10c260072e1 100644--- a/Tests/LibWeb/Text/expected/display_list/will-change-visual-context-nodes.txt+++ b/Tests/LibWeb/Text/expected/display_list/will-change-visual-context-nodes.txt@@ -2,8 +2,8 @@ AccumulatedVisualContext Tree:spatial:[s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)[s1] scroll (Viewport<#document>)- [s2] transform=[1,0,0,1,0,0] origin=(25,25) (BlockContainer<DIV>#transform)- [s3] transform=[1,0,0,1,0,0] origin=(25,75) (BlockContainer<DIV>#translate)+ [s2] transform=[1,0,0,1,0,0] origin=(25,25) bounds=[0,0 50x50] (BlockContainer<DIV>#transform)+ [s3] transform=[1,0,0,1,0,0] origin=(25,75) bounds=[0,50 50x50] (BlockContainer<DIV>#translate)effects:[e0 in s0] effects=[][e1 in s1] effects=[] (BlockContainer<DIV>#opacity)diff --git a/Tests/LibWeb/Text/expected/input-scrolls-caret-width-into-view.txt b/Tests/LibWeb/Text/expected/input-scrolls-caret-width-into-view.txtindex 9b4a3dd111e..b0f074d2ce1 100644--- a/Tests/LibWeb/Text/expected/input-scrolls-caret-width-into-view.txt+++ b/Tests/LibWeb/Text/expected/input-scrolls-caret-width-into-view.txt@@ -1,3 +1,3 @@scrolls to caret: true-rect=[18,8 1x16] color=rgb(0, 0, 0) should_blink=false+rect=[18,8 1x16] color=rgb(0, 0, 0) blink_cycle_start_time_ns=t1RTL caret needs no scroll: truediff --git a/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt b/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txtindex 3afd3a09a54..cbe2d83ffed 100644--- a/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt+++ b/Tests/LibWeb/Text/expected/text-transform-contextual-selection-offset-mapping.txt@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,16 55x16] translation=[8,29] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,32 35x16] translation=[8,45] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=9 rect=[8,16 55x16] glyph_bounding_rect=[8,-8 59x39] translation=[8,29] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[8,32 35x16] glyph_bounding_rect=[8,32 38x15] translation=[8,45] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,48 51x16] color=rgb(1, 2, 3)-DrawGlyphRun@s1/e0 rect=[8,48 51x16] translation=[8,61] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=5 rect=[8,48 51x16] glyph_bounding_rect=[8,48 55x15] translation=[8,61] color=rgb(0, 0, 0)diff --git a/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt b/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txtindex 1ef109cc1bf..764622b074d 100644--- a/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt+++ b/Tests/LibWeb/Text/expected/text-transform-selection-offset-mapping.txt@@ -7,9 +7,9 @@ AccumulatedVisualContext Tree:DisplayList:FillRect@s1/e0 rect=[8,8 24x16] color=rgb(1, 2, 3)-DrawGlyphRun@s1/e0 rect=[8,8 24x16] translation=[8,21] color=rgb(0, 0, 0)-DrawGlyphRun@s1/e0 rect=[8,40 22x16] translation=[8,53] color=rgb(4, 5, 6)-DrawGlyphRun@s1/e0 rect=[29,40 28x16] translation=[29.3125,53] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0)AccumulatedVisualContext Tree:spatial:@@ -19,10 +19,10 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]DisplayList:-DrawGlyphRun@s1/e0 rect=[8,8 24x16] translation=[8,21] color=rgb(0, 0, 0)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,8 24x16] glyph_bounding_rect=[8,8 25x15] translation=[8,21] color=rgb(0, 0, 0)FillRect@s1/e0 rect=[8,40 21x16] color=rgb(1, 2, 3)-DrawGlyphRun@s1/e0 rect=[8,40 22x16] translation=[8,53] color=rgb(4, 5, 6)-DrawGlyphRun@s1/e0 rect=[29,40 28x16] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[38,40 19x15]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=2 rect=[8,40 22x16] glyph_bounding_rect=[8,40 25x15] translation=[8,53] color=rgb(4, 5, 6)+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[38,40 19x15]]FillRect@s1/e0 rect=[29,40 9x16] color=rgb(1, 2, 3)-DrawGlyphRun@s1/e0 rect=[29,40 28x16] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[29,40 9x15]]+DrawGlyphRun@s1/e0 font_id=font1 glyphs=4 rect=[29,40 28x16] glyph_bounding_rect=[29,40 31x15] translation=[29.3125,53] color=rgb(0, 0, 0) inline_clips=[clip=[29,40 9x15]]diff --git a/Tests/LibWeb/Text/input/display_list/scrollbar-of-scroller-above-origin.html b/Tests/LibWeb/Text/input/display_list/scrollbar-of-scroller-above-origin.htmlindex 607f4a13ec5..aab45209c94 100644--- a/Tests/LibWeb/Text/input/display_list/scrollbar-of-scroller-above-origin.html+++ b/Tests/LibWeb/Text/input/display_list/scrollbar-of-scroller-above-origin.html@@ -11,7 +11,7 @@test(() => {for (const line of internals.dumpDisplayList().split("\n")) {if (line.startsWith("CompositorScrollbar"))- println(`${line.match(/vertical=\w+/)[0]} ${line.match(/track_rect=\[[^\]]*\]/)[0]}`);+ println(`vertical=${line.includes(" vertical=true")} ${line.match(/track_rect=\[[^\]]*\]/)[0]}`);}});</script>