Truly independent web browser
LibWeb+LibCompositing+Compositor: Clean up after viewport scroll bars
Aliaksandr Kalenike520b408830f
diff --git a/Libraries/LibCompositing/Rust/src/display_list/commands.rs b/Libraries/LibCompositing/Rust/src/display_list/commands.rsindex 9972bca2df4..1faa1404b81 100644--- a/Libraries/LibCompositing/Rust/src/display_list/commands.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/commands.rs@@ -1679,7 +1679,6 @@ impl DisplayListCommand for CompositorMainThreadWheelEventRegion {#[repr(C)]pub struct CompositorScrollbar {pub scroll_node_index: SpatialNodeIndex,- pub gutter_rect: IntRect,pub thumb_rect: IntRect,pub track_rect: IntRect,pub expanded_gutter_rect: IntRect,@@ -1688,14 +1687,10 @@ pub struct CompositorScrollbar {pub expanded_scroll_size: f64,pub min_scroll_offset: f32,pub max_scroll_offset: f32,- pub thumb_color: Color,- pub thumb_outline_color: Color,- pub track_color: Color,pub vertical: bool,}display_list_record_fields!(CompositorScrollbar {scroll_node_index,- gutter_rect,thumb_rect,track_rect,expanded_gutter_rect,@@ -1704,9 +1699,6 @@ display_list_record_fields!(CompositorScrollbar {expanded_scroll_size,min_scroll_offset,max_scroll_offset,- thumb_color,- thumb_outline_color,- track_color,vertical});diff --git a/Libraries/LibCompositing/Rust/src/display_list/replay.rs b/Libraries/LibCompositing/Rust/src/display_list/replay.rsindex 9993afe3d3e..4c6ae0ad32f 100644--- a/Libraries/LibCompositing/Rust/src/display_list/replay.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/replay.rs@@ -282,7 +282,7 @@ pub fn thumb_rect_kept_inside_track(mut thumb_rect: IntRect, track_rect: IntRect}/// A scrollbar at the geometry the frame presents it with, in the colors given.-pub fn presented_scrollbar_with_colors(+fn presented_scrollbar_with_colors(gutter_rect: FloatRect,thumb_rect: FloatRect,expansion: f32,diff --git a/Libraries/LibCompositing/Rust/src/scrolling/async_scrolling_state.rs b/Libraries/LibCompositing/Rust/src/scrolling/async_scrolling_state.rsindex 5ef1636c4ac..7fdc7d2f9e7 100644--- a/Libraries/LibCompositing/Rust/src/scrolling/async_scrolling_state.rs+++ b/Libraries/LibCompositing/Rust/src/scrolling/async_scrolling_state.rs@@ -19,7 +19,7 @@ use crate::visual_context::{CompositorScrollNodeRecord, CompositorSnapAreaRecord, CompositorSnapContainerRecord, VISUAL_VIEWPORT_NODE_INDEX,VisualContextTree,};-use libgfx_rust::{Color, CornerRadii, FloatPoint, FloatRect, IntRect};+use libgfx_rust::{CornerRadii, FloatPoint, FloatRect, IntRect};pub type AsyncScrollOperationID = u64;@@ -111,7 +111,6 @@ pub struct AsyncScrollbar {// The rects of a scrollbar the display list paints are in the space of this context.pub context: ContextRef,pub paint_order_index: u32,- pub gutter_rect: IntRect,pub thumb_rect: IntRect,pub track_rect: IntRect,pub expanded_gutter_rect: IntRect,@@ -120,9 +119,6 @@ pub struct AsyncScrollbar {pub expanded_scroll_size: f64,pub min_scroll_offset: f32,pub max_scroll_offset: f32,- pub thumb_color: Color,- pub thumb_outline_color: Color,- pub track_color: Color,pub vertical: bool,// The page takes no pointer input on a scrollbar of the viewport, which the compositor drags by itself.pub scrolls_viewport: bool,@@ -402,7 +398,6 @@ pub fn async_scrolling_state_from(scroll_node_index: command.scroll_node_index,context,paint_order_index: next_paint_order_index,- gutter_rect: command.gutter_rect,thumb_rect: command.thumb_rect,track_rect: command.track_rect,expanded_gutter_rect: command.expanded_gutter_rect,@@ -411,9 +406,6 @@ pub fn async_scrolling_state_from(expanded_scroll_size: command.expanded_scroll_size,min_scroll_offset: command.min_scroll_offset,max_scroll_offset: command.max_scroll_offset,- thumb_color: command.thumb_color,- thumb_outline_color: command.thumb_outline_color,- track_color: command.track_color,vertical: command.vertical,scrolls_viewport: false,});diff --git a/Libraries/LibWeb/Rust/src/painting/record/async_scroll_metadata.rs b/Libraries/LibWeb/Rust/src/painting/record/async_scroll_metadata.rsindex e49ddf6bf97..1417be98ce9 100644--- a/Libraries/LibWeb/Rust/src/painting/record/async_scroll_metadata.rs+++ b/Libraries/LibWeb/Rust/src/painting/record/async_scroll_metadata.rs@@ -9,7 +9,7 @@ use crate::painting::record::trace::Observer;use crate::css::css_pixels::{CssPixelRect, CssPixelSize};use crate::layout::node_data::{DomPaintFact, NodeSlotId};-use crate::painting::chrome_geometry::{ChromeGeometry, ScrollbarColors, maximum_scroll_offset, minimum_scroll_offset};+use crate::painting::chrome_geometry::{ChromeGeometry, maximum_scroll_offset, minimum_scroll_offset};use crate::painting::display_list::commands::*;use crate::painting::ffi::ScrollDirection;use crate::painting::paintable_geometry;@@ -173,7 +173,6 @@ impl<O: Observer> PaintRecorder<'_, O> {&self,paintable: NodeSlotId,direction: ScrollDirection,- colors: ScrollbarColors,) -> Option<CompositorScrollbar> {let chrome_geometry = ChromeGeometry::for_recording(self.source, self.inputs);let scrollbar = chrome_geometry.compute_scrollbar_data(paintable, direction, false)?;@@ -186,7 +185,6 @@ impl<O: Observer> PaintRecorder<'_, O> {let vertical = direction == ScrollDirection::Vertical;Some(CompositorScrollbar {scroll_node_index: self.data(paintable).own_scroll_node_index,- gutter_rect: self.converter.rounded_device_rect(scrollbar.gutter_rect),thumb_rect: self.converter.rounded_device_rect(scrollbar.thumb_rect),track_rect: self.converter.rounded_device_rect(scrollbar.track_rect),expanded_gutter_rect: self.converter.rounded_device_rect(expanded.gutter_rect),@@ -203,21 +201,13 @@ impl<O: Observer> PaintRecorder<'_, O> {} else {max_scroll_offset.x},- thumb_color: colors.thumb,- thumb_outline_color: colors.thumb_outline,- track_color: colors.track,vertical,})}// The compositor may drag a scrollbar only where the main thread would hit test that scrollbar, so// this mirrors the conditions its chrome widget hit test items are recorded under.- pub(crate) fn record_compositor_scrollbar(- &mut self,- paintable: NodeSlotId,- direction: ScrollDirection,- colors: ScrollbarColors,- ) {+ pub(crate) fn record_compositor_scrollbar(&mut self, paintable: NodeSlotId, direction: ScrollDirection) {if !self.has_compositor_scroll_node(paintable)|| !self.visibility_is_visible(paintable)|| !self.visible_for_hit_testing(paintable)@@ -232,7 +222,7 @@ impl<O: Observer> PaintRecorder<'_, O> {if !could_be_scrolled_along_direction {return;}- if let Some(scrollbar) = self.compositor_scrollbar_for(paintable, direction, colors) {+ if let Some(scrollbar) = self.compositor_scrollbar_for(paintable, direction) {self.recorder.compositor_scrollbar(scrollbar);}}diff --git a/Libraries/LibWeb/Rust/src/painting/record/paint/overlay.rs b/Libraries/LibWeb/Rust/src/painting/record/paint/overlay.rsindex bac1155b97d..ced8f028d03 100644--- a/Libraries/LibWeb/Rust/src/painting/record/paint/overlay.rs+++ b/Libraries/LibWeb/Rust/src/painting/record/paint/overlay.rs@@ -55,7 +55,7 @@ pub(crate) fn paint_overlay<O: Observer>(recorder: &mut PaintRecorder<'_, O>, pa.compute_scrollbar_data(paintable, direction, true).map(|expanded| expanded.gutter_rect).unwrap_or_default();- recorder.record_compositor_scrollbar(paintable, direction, colors);+ recorder.record_compositor_scrollbar(paintable, direction);recorder.recorder.paint_scrollbar(scroll_node_index,converter.rounded_device_rect(scrollbar.gutter_rect),diff --git a/Services/Compositor/Rust/src/frame_inputs.rs b/Services/Compositor/Rust/src/frame_inputs.rsindex 221596f4999..5c4c26cb95a 100644--- a/Services/Compositor/Rust/src/frame_inputs.rs+++ b/Services/Compositor/Rust/src/frame_inputs.rs@@ -9,43 +9,8 @@use crate::context_scene::ReceivedLayerPlan;use crate::overlays::OverlayPicture;use libcompositing_rust::display_list::replay::ScrollbarShownByFrame;-use libcompositing_rust::scrolling::{AccumulatedVisualContextTree, ScrollStateSnapshot, SpatialNodeIndex};+use libcompositing_rust::scrolling::{AccumulatedVisualContextTree, ScrollStateSnapshot};use libcompositing_rust::time::MonotonicTime;-use libgfx_rust::{Color, FloatRect, IntRect};--#[derive(Clone, Copy)]-#[repr(C)]-pub struct ScrollbarOfFrame {- pub scroll_node_index: SpatialNodeIndex,- pub vertical: bool,- pub gutter_rect: FloatRect,- pub thumb_rect: FloatRect,- pub expansion: f32,- pub opacity: f32,- pub thumb_color: Color,- pub thumb_outline_color: Color,- pub track_color: Color,- pub thin_and_expanded_gutter_rect: IntRect,-}--impl Default for ScrollbarOfFrame {- fn default() -> Self {- Self {- scroll_node_index: Default::default(),- vertical: false,- gutter_rect: Default::default(),- thumb_rect: Default::default(),- expansion: 0.0,- opacity: 1.0,- thumb_color: Default::default(),- thumb_outline_color: Default::default(),- track_color: Default::default(),- thin_and_expanded_gutter_rect: Default::default(),- }- }-}--pub use libcompositing_rust::display_list::replay::thumb_rect_kept_inside_track;pub struct FrameInputs {pub visual_context_tree: AccumulatedVisualContextTree,@@ -54,27 +19,11 @@ pub struct FrameInputs {/// plan does not hold for the frame then.pub layer_plan: Option<ReceivedLayerPlan>,pub presented_scroll_state_snapshot: ScrollStateSnapshot,- pub scrollbars: Vec<ScrollbarOfFrame>,+ /// The scrollbars of the page as the frame presents them, which replace the geometry the display list recorded for+ /// them.+ pub scrollbars: Vec<ScrollbarShownByFrame>,/// When the frame is painted, which is the time a blinking caret shows as of.pub painted_at: MonotonicTime,/// What the compositor draws over the page in the frame.pub overlays: OverlayPicture,}--impl FrameInputs {- /// The scrollbars of the page that the frame presents, which replace the geometry the display list recorded for- /// them.- pub fn scrollbars_shown_for_the_page(&self) -> Vec<ScrollbarShownByFrame> {- self.scrollbars- .iter()- .map(|scrollbar| ScrollbarShownByFrame {- scroll_node_index: scrollbar.scroll_node_index,- vertical: scrollbar.vertical,- gutter_rect: scrollbar.gutter_rect,- thumb_rect: scrollbar.thumb_rect,- expansion: scrollbar.expansion,- opacity: scrollbar.opacity,- })- .collect()- }-}diff --git a/Services/Compositor/Rust/src/overlays.rs b/Services/Compositor/Rust/src/overlays.rsindex 23c5f861d1a..098246ad10c 100644--- a/Services/Compositor/Rust/src/overlays.rs+++ b/Services/Compositor/Rust/src/overlays.rs@@ -365,11 +365,8 @@ impl OverlayPicture {&& picture_in_picture_controls_draw_the_same}- /// Paints the overlays over a frame, unless they are left out.- pub fn paint(&self, painter: &mut impl ReplayPainter, paints_ui_overlays: bool) {- if !paints_ui_overlays {- return;- }+ /// Paints the overlays over a frame.+ pub fn paint(&self, painter: &mut impl ReplayPainter) {replay_overlay_records(&self.ui_overlay_records, painter);if let Some(controls) = &self.picture_in_picture_controls {painter.push_layer(&ReplayLayer {diff --git a/Services/Compositor/Rust/src/presenting/layers.rs b/Services/Compositor/Rust/src/presenting/layers.rsindex fa0d7a6dd65..b487fb4c1e0 100644--- a/Services/Compositor/Rust/src/presenting/layers.rs+++ b/Services/Compositor/Rust/src/presenting/layers.rs@@ -1113,7 +1113,6 @@ impl ContextPresenting {..compositing_of_layer(stack, layer_index, &composite_offsets, &spaces_to_frame)}).collect();- let scrollbars = frame.frame_inputs.scrollbars_shown_for_the_page();let live_content_versions = LiveContentVersionsOfFrame {live_content,nested_contexts: env.nested_contexts,@@ -1123,7 +1122,7 @@ impl ContextPresenting {tree,stack,FrameStateReadByReplay {- scrollbars: &scrollbars,+ scrollbars: &frame.frame_inputs.scrollbars,time_ns: frame.frame_inputs.painted_at.nanoseconds(),live_content: &live_content_versions,},@@ -1831,8 +1830,10 @@ impl ContextPresenting {replay_into(env, surface, frame, selection_painting_straight);raster.restore_to_count(surface, save_count);}- self.apply_raster_transform(raster, surface);- self.paint_overlays(env, surface, frame.frame_inputs, paints_ui_overlays);+ if paints_ui_overlays {+ self.apply_raster_transform(raster, surface);+ self.paint_overlays(env, surface, frame.frame_inputs);+ }}raster.restore_to_count(surface, save_count);}diff --git a/Services/Compositor/Rust/src/presenting/mod.rs b/Services/Compositor/Rust/src/presenting/mod.rsindex 722a0b5891c..b1b023f050c 100644--- a/Services/Compositor/Rust/src/presenting/mod.rs+++ b/Services/Compositor/Rust/src/presenting/mod.rs@@ -989,7 +989,6 @@ impl ContextPresenting {if !screenshots_paint_from_layers() || !self.paint_screenshot_from_layers(env, target, &frame) {let save_count = env.raster.save(target);replay_into(env, target, &frame, ReplaySelection::default());- self.paint_overlays(env, target, frame_inputs, false);env.raster.restore_to_count(target, save_count);}env.raster.flush(target);@@ -1097,7 +1096,7 @@ impl ContextPresenting {rect_of_surface,&painted_frame.layers,);- self.paint_overlays(&snapshot_env, composited, &painted_frame.frame_inputs, true);+ self.paint_overlays(&snapshot_env, composited, &painted_frame.frame_inputs);};// No store holds a frame the window server shows every layer of, so the frame is composited from its layers.if let Some(painted_frame) = painted_frame_shown_by_window_server@@ -1147,20 +1146,18 @@ impl ContextPresenting {&& !tree.blend_mode_or_backdrop_filter_reads_root_group()}- /// Paints what the compositor draws over the page: its scrollbars, and unless they are left out, the overlays of the- /// browser and of the layers.+ /// Paints what the compositor draws over the page: the overlays of the browser and of the layers.fn paint_overlays(&self,env: &PresentingEnvironment<'_>,target: &Rc<PaintingSurface>,frame_inputs: &FrameInputs,- paints_ui_overlays: bool,) {env.raster.paint(env.context_id, target, PaintingResources::Overlays, false, |painter| {- frame_inputs.overlays.paint(painter, paints_ui_overlays);+ frame_inputs.overlays.paint(painter);});- let Some(layer_overlay_frame) = self.layer_overlay.latest_frame().filter(|_| paints_ui_overlays) else {+ let Some(layer_overlay_frame) = self.layer_overlay.latest_frame() else {return;};env.raster@@ -1230,10 +1227,9 @@ pub(crate) fn replay_with_scroll_offsets(PaintingResources::Page,selection.allows_lcd_text,|painter| {- let scrollbars = frame_inputs.scrollbars_shown_for_the_page();let replay_frame = ReplayFrame {scroll_offsets,- scrollbars: &scrollbars,+ scrollbars: &frame_inputs.scrollbars,time_ns: frame_inputs.painted_at.nanoseconds(),composited_contexts: env.nested_contexts,};@@ -1263,10 +1259,9 @@ pub(crate) fn composite_inside_effects_of_frame(let display_list = frame.display_list;env.raster.paint(env.context_id, target, PaintingResources::Page, false, |painter| {- let scrollbars = frame_inputs.scrollbars_shown_for_the_page();let replay_frame = ReplayFrame {scroll_offsets: frame_inputs.presented_scroll_state_snapshot.device_offsets(),- scrollbars: &scrollbars,+ scrollbars: &frame_inputs.scrollbars,time_ns: frame_inputs.painted_at.nanoseconds(),composited_contexts: env.nested_contexts,};diff --git a/Services/Compositor/Rust/src/presenting/window_server.rs b/Services/Compositor/Rust/src/presenting/window_server.rsindex 5308fc33a66..5f24d04cc53 100644--- a/Services/Compositor/Rust/src/presenting/window_server.rs+++ b/Services/Compositor/Rust/src/presenting/window_server.rs@@ -452,7 +452,7 @@ impl ContextPresenting {raster.clear(target, Color::TRANSPARENT);let save_count = raster.save(target);raster.translate(target, -overlays_rect.x as f32, -overlays_rect.y as f32);- self.paint_overlays(env, target, frame.frame_inputs, true);+ self.paint_overlays(env, target, frame.frame_inputs);raster.restore_to_count(target, save_count);self.layers.window_server.latest_compositor_overlays_surface_and_rect = Some((presentable, overlays_rect));// An overlay of the layers shows what the frame did, which the next frame does not repeat.diff --git a/Services/Compositor/Rust/src/scrollbar_controller.rs b/Services/Compositor/Rust/src/scrollbar_controller.rsindex 6fb8e0412df..69d829376da 100644--- a/Services/Compositor/Rust/src/scrollbar_controller.rs+++ b/Services/Compositor/Rust/src/scrollbar_controller.rs@@ -4,7 +4,7 @@* SPDX-License-Identifier: BSD-2-Clause*/-use crate::frame_inputs::{ScrollbarOfFrame, thumb_rect_kept_inside_track};+use libcompositing_rust::display_list::replay::{ScrollbarShownByFrame, thumb_rect_kept_inside_track};use libcompositing_rust::scrolling::overlay_fade::OverlayFade;use libcompositing_rust::scrolling::{AccumulatedVisualContextTree, AsyncScrollNodeStableID, AsyncScrollTree, AsyncScrollbar, ClipBehavior,@@ -125,14 +125,6 @@ fn position_in_space_of_scrollbar(visual_context_tree.transform_point_for_hit_test(scrollbar.context, position, scroll_state_snapshot, clip_behavior)}-fn scrollbar_gutter_rect(scrollbar: &AsyncScrollbar, expanded: bool) -> IntRect {- if expanded {- scrollbar.expanded_gutter_rect- } else {- scrollbar.gutter_rect- }-}-fn scrollbar_scroll_size(scrollbar: &AsyncScrollbar, expanded: bool) -> f64 {if expanded {scrollbar.expanded_scroll_size@@ -351,7 +343,7 @@ impl ScrollbarController {let thumb_grab_position = if position_is_along_thumb {primary_position - thumb_rect.primary_offset_for_orientation(orientation) as f32} else {- let gutter_rect = scrollbar_gutter_rect(scrollbar, true);+ let gutter_rect = scrollbar.expanded_gutter_rect;let thumb_size = thumb_rect.primary_size_for_orientation(orientation) as f32;let gutter_start = gutter_rect.primary_offset_for_orientation(orientation) as f32;let gutter_size = gutter_rect.primary_size_for_orientation(orientation) as f32;@@ -623,7 +615,7 @@ fn interpolated_rect(from: IntRect, to: IntRect, progress: f32) -> FloatRect {}impl ScrollbarController {- pub fn scrollbars_of_frame(&self, scroll_state_snapshot: &ScrollStateSnapshot) -> Vec<ScrollbarOfFrame> {+ pub fn scrollbars_of_frame(&self, scroll_state_snapshot: &ScrollStateSnapshot) -> Vec<ScrollbarShownByFrame> {let mut scrollbars_of_frame = Vec::with_capacity(self.scrollbars.len());for (i, scrollbar) in self.scrollbars.iter().enumerate() {let progress = self.expansion(i);@@ -645,17 +637,13 @@ impl ScrollbarController {expanded_thumb_rect = thin_thumb_rect;}- scrollbars_of_frame.push(ScrollbarOfFrame {+ scrollbars_of_frame.push(ScrollbarShownByFrame {scroll_node_index: scrollbar.scroll_node_index,vertical: scrollbar.vertical,gutter_rect: interpolated_rect(scrollbar.track_rect, scrollbar.expanded_gutter_rect, progress),thumb_rect: interpolated_rect(thin_thumb_rect, expanded_thumb_rect, progress),expansion: progress,opacity: self.opacity(i),- thumb_color: scrollbar.thumb_color,- thumb_outline_color: scrollbar.thumb_outline_color,- track_color: scrollbar.track_color,- thin_and_expanded_gutter_rect: scrollbar.gutter_rect.united(scrollbar.expanded_gutter_rect),});}scrollbars_of_framediff --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 33e3c2ccece..ec3992b76e0 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@@ -49,8 +49,8 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 200xL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x100] owner=BlockContainer<DIV>#target phase=scroll-metadataL0 CompositorBlockingWheelEventRegion@s2/c0/e0 rect=[0,0 100x100] owner=BlockContainer<DIV>#target phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,100 1000x1000] owner=BlockContainer<DIV>#spacer phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL1 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 owner=BlockContainer<DIV>#scroller phase=overlay-L0 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) owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 owner=BlockContainer<DIV>#scroller phase=overlayL3 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) owner=BlockContainer<DIV>#scroller phase=overlaydiff --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 c7d5969049d..ffa3915821b 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@@ -26,6 +26,6 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800xL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100] owner=BlockContainer<DIV>#scroller phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x500] owner=BlockContainer<DIV>#spacer phase=scroll-metadataL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000] owner=BlockContainer<DIV>#page-spacer phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL2 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 owner=BlockContainer<DIV>#scroller phase=overlaydiff --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 6c7229ce718..a95fbbafdf4 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@@ -31,8 +31,8 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 80L0 CompositorWheelHitTestTarget@s2/e0 target_scroll_node_index=s1 rect=[0,0 800x100] owner=BlockContainer<DIV>#sticky phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/e0 target_scroll_node_index=s3 rect=[0,0 100x100] owner=BlockContainer<DIV>#scroller phase=scroll-metadataL0 CompositorWheelHitTestTarget@s3/c0/e0 target_scroll_node_index=s3 rect=[0,0 500x500] owner=BlockContainer<DIV>#spacer phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL3 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 owner=BlockContainer<DIV>#scroller phase=overlay-L0 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) owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 owner=BlockContainer<DIV>#scroller phase=overlayL5 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) owner=BlockContainer<DIV>#scroller phase=overlaydiff --git a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txtindex 21416a57679..dd9b53fa8e8 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/scroll-tree-shape.txt@@ -31,8 +31,8 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800xL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100] owner=BlockContainer<DIV>#scroller phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 500x500] owner=BlockContainer<DIV>#spacer phase=scroll-metadataL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000] owner=BlockContainer<DIV> phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL2 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 owner=BlockContainer<DIV>#scroller phase=overlay-L0 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) owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 owner=BlockContainer<DIV>#scroller phase=overlayL4 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) owner=BlockContainer<DIV>#scroller phase=overlaydiff --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 5f8d01a24da..8fe41428df7 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@@ -28,6 +28,6 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,0 800xL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 100x100] owner=BlockContainer<DIV>#scroller phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x500] owner=BlockContainer<DIV>#scroller-spacer phase=scroll-metadataL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s1 rect=[0,100 800x2000] owner=BlockContainer<DIV>#page-spacer phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL2 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 owner=BlockContainer<DIV>#scroller phase=overlaydiff --git a/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt b/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txtindex 94038bfc3a6..703beb3844f 100644--- a/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt+++ b/Tests/LibWeb/Text/expected/async-scrolling/wheel-scroll-admission.txt@@ -36,9 +36,9 @@ L0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s2 rect=[0,0 200xL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,0 100x100] owner=BlockContainer<DIV>#target phase=scroll-metadataL0 CompositorBlockingWheelEventRegion@s2/c0/e0 rect=[0,0 100x100] owner=BlockContainer<DIV>#target phase=scroll-metadataL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[0,100 1000x1000] owner=BlockContainer<DIV>#spacer phase=scroll-metadata-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL1 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 owner=BlockContainer<DIV>#scroller phase=overlay-L0 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) owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 owner=BlockContainer<DIV>#scroller phase=overlayL3 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) owner=BlockContainer<DIV>#scroller phase=overlayL0 CompositorWheelHitTestTarget@s1/e0 target_scroll_node_index=s0 rect=[250,0 100x100] owner=BlockContainer<DIV>#not-scrollable phase=scroll-metadatadiff --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 06d9736e319..59971d9712d 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@@ -24,8 +24,8 @@ L0 CompositorWheelHitTestTargetWithCornerRadii@s1/e0 target_scroll_node_index=s2L0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[20,140 180x300] owner=BlockContainer<DIV>#spacer phase=scroll-metadataL0 CompositorWheelHitTestTargetWithCornerRadii@s2/c0/e0 target_scroll_node_index=s2 rect=[20,20 200x120] corner_radii=[8x8,8x8,8x8,8x8] owner=CanvasBox<CANVAS>#canvas phase=scroll-metadataL2 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)] owner=CanvasBox<CANVAS>#canvas phase=foreground-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 owner=BlockContainer<DIV>#scroller phase=overlay+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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL5 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 owner=BlockContainer<DIV>#scroller phase=overlay-L0 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) owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 owner=BlockContainer<DIV>#scroller phase=overlayL7 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) owner=BlockContainer<DIV>#scroller phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txtindex 10211730b1a..cb53be2896e 100644--- a/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt+++ b/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt@@ -33,8 +33,8 @@ L1 FillRoundedRectRing@s2/c0/e0 rect=[10,10 302x102] top_width=1 right_width=1 bL0 CompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[11,11 400x80] owner=BlockContainer<DIV>.content phase=scroll-metadataL2 FillRect@s3/c1/e0 rect=[11,11 400x80] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.content phase=backgroundL2 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) text="Deeply nested content" owner=BlockContainer<DIV>.content phase=foreground-L0 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) owner=BlockContainer<DIV>.inner-scroll phase=overlay+L0 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 owner=BlockContainer<DIV>.inner-scroll phase=overlayL4 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) owner=BlockContainer<DIV>.inner-scroll phase=overlay-L0 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) owner=BlockContainer<DIV>.outer-scroll phase=overlay+L0 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 owner=BlockContainer<DIV>.outer-scroll phase=overlayL7 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) owner=BlockContainer<DIV>.outer-scroll phase=overlaydiff --git a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txtindex 88cd5ebaf4c..0bc287ee401 100644--- a/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt+++ b/Tests/LibWeb/Text/expected/display_list/scrollable-in-fixed.txt@@ -28,8 +28,8 @@ L0 FillRoundedRectRing@s0/e0 rect=[32,32 182x102] top_width=1 right_width=1 bottL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[33,33 300x200] owner=BlockContainer<DIV>.scroll-content phase=scroll-metadataL1 FillRect@s2/c0/e0 rect=[33,33 300x200] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.scroll-content phase=backgroundL1 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) text="Scrollable inside fixed" owner=BlockContainer<DIV>.scroll-content phase=foreground-L0 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 owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayL3 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 owner=BlockContainer<DIV>.scroll-container phase=overlay-L0 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) owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 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 owner=BlockContainer<DIV>.scroll-container phase=overlayL5 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) owner=BlockContainer<DIV>.scroll-container phase=overlaydiff --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 3796583c23b..db331142f67 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@@ -42,26 +42,26 @@ L0 FillRoundedRectRing@s0/e0 rect=[222,22 93x152] top_width=1 right_width=1 bottL0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s2 rect=[223,23 200x300] owner=BlockContainer<DIV>.scroll-content.red phase=scroll-metadataL1 FillRect@s2/c0/e0 rect=[223,23 200x300] color=rgb(240, 128, 128) owner=BlockContainer<DIV>.scroll-content.red phase=backgroundL1 DrawGlyphRun@s2/c0/e0 font_id=font1 glyphs=8 rect=[223,23 71x16] glyph_bounding_rect=[223,24 70x15] translation=[223,36] color=rgb(0, 0, 0) text="Scroll A" owner=BlockContainer<DIV>.scroll-content.red phase=foreground-L0 CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[305,25 7x73] track_rect=[305,23 9x150] expanded_gutter_rect=[299,23 15x150] expanded_thumb_rect=[301,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 owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[305,25 7x73] track_rect=[305,23 9x150] expanded_gutter_rect=[299,23 15x150] expanded_thumb_rect=[301,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayL3 PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[305,25 7x73] track_rect=[305,23 9x150] expanded_gutter_rect=[299,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 owner=BlockContainer<DIV>.scroll-container phase=overlay-L0 CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[225,164 33x7] track_rect=[223,164 76x9] expanded_gutter_rect=[223,158 76x15] expanded_thumb_rect=[225,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) owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s2 thumb_rect=[225,164 33x7] track_rect=[223,164 76x9] expanded_gutter_rect=[223,158 76x15] expanded_thumb_rect=[225,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 owner=BlockContainer<DIV>.scroll-container phase=overlayL5 PaintScrollBar@s0/e0 scroll_node_index=s2 thumb_rect=[225,164 33x7] track_rect=[223,164 76x9] expanded_gutter_rect=[223,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) owner=BlockContainer<DIV>.scroll-container phase=overlayL0 CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s3 rect=[325.32812,22 93.34375x152] owner=BlockContainer<DIV>.scroll-container phase=scroll-metadataL4 FillRoundedRectRing@s0/e0 rect=[325,22 94x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderL0 CompositorWheelHitTestTarget@s3/c1/e0 target_scroll_node_index=s3 rect=[326.32812,23 200x300] owner=BlockContainer<DIV>.scroll-content.green phase=scroll-metadataL7 FillRect@s3/c1/e0 rect=[326,23 200x300] color=rgb(144, 238, 144) owner=BlockContainer<DIV>.scroll-content.green phase=backgroundL7 DrawGlyphRun@s3/c1/e0 font_id=font1 glyphs=8 rect=[326,23 67x16] glyph_bounding_rect=[326,24 70x15] translation=[326.32812,36] color=rgb(0, 0, 0) text="Scroll B" owner=BlockContainer<DIV>.scroll-content.green phase=foreground-L0 CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[409,25 7x73] track_rect=[409,23 9x150] expanded_gutter_rect=[403,23 15x150] expanded_thumb_rect=[405,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 owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[409,25 7x73] track_rect=[409,23 9x150] expanded_gutter_rect=[403,23 15x150] expanded_thumb_rect=[405,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayL9 PaintScrollBar@s0/e0 scroll_node_index=s3 thumb_rect=[409,25 7x73] track_rect=[409,23 9x150] expanded_gutter_rect=[403,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 owner=BlockContainer<DIV>.scroll-container phase=overlay-L0 CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[328,164 33x7] track_rect=[326,164 77x9] expanded_gutter_rect=[326,158 77x15] expanded_thumb_rect=[328,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) owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s3 thumb_rect=[328,164 33x7] track_rect=[326,164 77x9] expanded_gutter_rect=[326,158 77x15] expanded_thumb_rect=[328,160 33x11] scroll_size=0.36180615473109 expanded_scroll_size=0.36180615473109 max_scroll_offset=108.65625 owner=BlockContainer<DIV>.scroll-container phase=overlayL11 PaintScrollBar@s0/e0 scroll_node_index=s3 thumb_rect=[328,164 33x7] track_rect=[326,164 77x9] expanded_gutter_rect=[326,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) owner=BlockContainer<DIV>.scroll-container phase=overlayL0 CompositorWheelHitTestTarget@s0/e0 target_scroll_node_index=s4 rect=[428.67188,22 93.328125x152] owner=BlockContainer<DIV>.scroll-container phase=scroll-metadataL0,L10 FillRoundedRectRing@s0/e0 rect=[429,22 93x152] top_width=1 right_width=1 bottom_width=1 left_width=1 color=rgb(0, 0, 255) owner=BlockContainer<DIV>.scroll-container phase=borderL0 CompositorWheelHitTestTarget@s4/c2/e0 target_scroll_node_index=s4 rect=[429.67188,23 200x300] owner=BlockContainer<DIV>.scroll-content.blue phase=scroll-metadataL13 FillRect@s4/c2/e0 rect=[430,23 200x300] color=rgb(173, 216, 230) owner=BlockContainer<DIV>.scroll-content.blue phase=backgroundL13 DrawGlyphRun@s4/c2/e0 font_id=font1 glyphs=8 rect=[429,23 68x16] glyph_bounding_rect=[430,24 70x15] translation=[429.67188,36] color=rgb(0, 0, 0) text="Scroll C" owner=BlockContainer<DIV>.scroll-content.blue phase=foreground-L0 CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[512,25 7x73] track_rect=[512,23 9x150] expanded_gutter_rect=[506,23 15x150] expanded_thumb_rect=[508,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 owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[512,25 7x73] track_rect=[512,23 9x150] expanded_gutter_rect=[506,23 15x150] expanded_thumb_rect=[508,25 11x73] scroll_size=0.4866666666666667 expanded_scroll_size=0.4866666666666667 max_scroll_offset=150 vertical=true owner=BlockContainer<DIV>.scroll-container phase=overlayL15 PaintScrollBar@s0/e0 scroll_node_index=s4 thumb_rect=[512,25 7x73] track_rect=[512,23 9x150] expanded_gutter_rect=[506,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 owner=BlockContainer<DIV>.scroll-container phase=overlay-L0 CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[432,164 33x7] track_rect=[430,164 76x9] expanded_gutter_rect=[430,158 76x15] expanded_thumb_rect=[432,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) owner=BlockContainer<DIV>.scroll-container phase=overlay+L0 CompositorScrollbar@s0/e0 scroll_node_index=s4 thumb_rect=[432,164 33x7] track_rect=[430,164 76x9] expanded_gutter_rect=[430,158 76x15] expanded_thumb_rect=[432,160 33x11] scroll_size=0.3617541337167505 expanded_scroll_size=0.3617541337167505 max_scroll_offset=108.671875 owner=BlockContainer<DIV>.scroll-container phase=overlayL17 PaintScrollBar@s0/e0 scroll_node_index=s4 thumb_rect=[432,164 33x7] track_rect=[430,164 76x9] expanded_gutter_rect=[430,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) owner=BlockContainer<DIV>.scroll-container phase=overlaydiff --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 b6f0fd4de7d..a2b52e50bc8 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@@ -29,6 +29,6 @@ L0 CompositorWheelHitTestTarget@s2/c0/e0 target_scroll_node_index=s0 rect=[0,0 1L0 CompositorWheelHitTestTarget@s2/c1/e0 target_scroll_node_index=s3 rect=[0,0 80x80] owner=BlockContainer<DIV>#scroller phase=scroll-metadataL0 CompositorWheelHitTestTarget@s3/c2/e0 target_scroll_node_index=s3 rect=[0,0 80x300] owner=BlockContainer<DIV> phase=scroll-metadataL0 FillRect@s3/c2/e0 rect=[0,0 80x300] color=rgb(0, 0, 0) owner=BlockContainer<DIV> phase=background-L0 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 owner=BlockContainer<DIV>#scroller phase=overlay+L0 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 vertical=true owner=BlockContainer<DIV>#scroller phase=overlayL1 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=true owner=BlockContainer<DIV>#scroller phase=overlay