Truly independent web browser
LibCompositing+Compositor: Let the window server show each caret
Aliaksandr Kalenik2fa7d18f9e34
diff --git a/Libraries/LibCompositing/Rust/src/display_list/layers.rs b/Libraries/LibCompositing/Rust/src/display_list/layers.rsindex c42f57a338b..22c32f19391 100644--- a/Libraries/LibCompositing/Rust/src/display_list/layers.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/layers.rs@@ -365,9 +365,12 @@ pub enum BarrierCutsOfCell {pub enum LayerContent {/// The records of a band that the layer holds in some of its tiles.Painted,- /// A canvas, video, nested context or caret, replayed or shown by the window server, whose content the identity of- /// the layer names.+ /// A canvas, video or nested context, replayed or shown by the window server, whose content the identity of the+ /// layer names.Media { record_span: ListSpan },+ /// A caret, alone in the run of `record_span`, which a frame replays and a window server that shows tiles shows+ /// from a surface of its own.+ Caret { record_span: ListSpan },}#[derive(Clone, Debug, PartialEq)]@@ -867,7 +870,11 @@ impl LayerStack {identity: LayerIdentity::Media { content, ordinal },placement_node_index: bands[band_index.0].placement_node_index,band_index,- content: LayerContent::Media { record_span },+ content: if content == LiveContent::Caret {+ LayerContent::Caret { record_span }+ } else {+ LayerContent::Media { record_span }+ },may_hold_content: true,reach,});@@ -1235,14 +1242,19 @@ impl LayerStack {shows_tiles_of_painted_layers&& (window_server.can_composite_effect_of_node)(self.bands[band_index.0].placement_node_index)});- let is_media = matches!(self.layers[layer_index.0].content, LayerContent::Media { .. });+ let window_server_cannot_show_content = match self.layers[layer_index.0].content {+ LayerContent::Painted => false,+ LayerContent::Media { .. } => !(window_server.can_show_media_of_layer)(layer_index),+ // The window server shows a caret from a surface of its own as it shows a tile.+ LayerContent::Caret { .. } => !shows_tiles_of_painted_layers,+ };if !window_server_composites_effects_around_layer {Some(WhyFrameHoldsLayer::InsideAnEffectTheCompositorComposites)} else if !shows_tiles_of_painted_layers && self.layer_is_composited_within_rounded_clips(layer_index) {Some(WhyFrameHoldsLayer::CompositedWithinRoundedCorners)} else if !shows_tiles_of_painted_layers && self.layer_is_in_animated_space(layer_index) {Some(WhyFrameHoldsLayer::InSpaceTheCompositorAnimates)- } else if is_media && !(window_server.can_show_media_of_layer)(layer_index) {+ } else if window_server_cannot_show_content {Some(WhyFrameHoldsLayer::WindowServerCannotShowItsContent)} else {Nonediff --git a/Libraries/LibCompositing/Rust/src/display_list/layers/planning/lines_of_plan.rs b/Libraries/LibCompositing/Rust/src/display_list/layers/planning/lines_of_plan.rsindex 2d043311211..61852152034 100644--- a/Libraries/LibCompositing/Rust/src/display_list/layers/planning/lines_of_plan.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/layers/planning/lines_of_plan.rs@@ -225,7 +225,7 @@ impl PlannedLayers {return vec![LayerIndex(0)];}for (index, layer) in stack.layers.iter().enumerate() {- let LayerContent::Media { record_span, .. } = &layer.content else {+ let (LayerContent::Media { record_span } | LayerContent::Caret { record_span }) = &layer.content else {continue;};if record_span.contains(position) {diff --git a/Libraries/LibCompositing/Rust/src/display_list/layers/wire.rs b/Libraries/LibCompositing/Rust/src/display_list/layers/wire.rsindex 399989eaa42..089fb46e00f 100644--- a/Libraries/LibCompositing/Rust/src/display_list/layers/wire.rs+++ b/Libraries/LibCompositing/Rust/src/display_list/layers/wire.rs@@ -418,7 +418,7 @@ impl Encode for LayerStack {match &self.layers[cut.layer_above_cut.0 - 1] {StackLayer {identity: LayerIdentity::Media { content, ordinal },- content: LayerContent::Media { record_span },+ content: LayerContent::Media { record_span } | LayerContent::Caret { record_span },reach,..} => {@@ -928,7 +928,7 @@ mod tests {use crate::display_list::layers::{BandIndex, CutsOfCell, LARGEST_SUMMED_READ_REACH_OF_COMPOSITED_FILTERS_IN_DEVICE_PIXELS, LayerIndex,MAXIMUM_NESTING_OF_COMPOSITED_EFFECTS, NodeNamesFromIndices, PlacementNodeBand, WhatWindowServerShowsOfFrame,- WindowServerCompositing, WindowServerPresentationOfMedia,+ WhyFrameHoldsLayer, WindowServerCompositing, WindowServerPresentationOfMedia,};use crate::display_list::placement::{RasterSpace, RasterSpaceGeometry, WhatEverySpaceOfTreeShares};use crate::display_list::test_fixtures::{@@ -2231,6 +2231,41 @@ mod tests {}// Reads the stack as the compositor reads it for a frame over the whole viewport, and as the dump reads it.+ // A window server that shows tiles shows a caret from a surface of its own, as it shows a tile, and the base layer+ // with it. Any other leaves the caret to the frame.+ #[test]+ fn only_a_window_server_that_shows_tiles_shows_a_caret() {+ let stack = page_with_carets().planned().stack;+ let composite_offsets = stack.composite_offsets(&[FloatPoint::default(); 4]);+ let window_server = |shows_tiles_of_painted_layers| WhatWindowServerShowsOfFrame {+ compositing: WindowServerCompositing {+ shows_tiles_of_painted_layers,+ filters_what_is_below_layers: shows_tiles_of_painted_layers,+ },+ can_show_media_of_layer: &|_| true,+ can_composite_effect_of_node: &|_| true,+ };+ let caret_layers: Vec<LayerIndex> = (0..stack.layers.len())+ .map(LayerIndex)+ .filter(|layer| matches!(stack.layers[layer.0].content, LayerContent::Caret { .. }))+ .collect();+ assert_eq!(caret_layers.len(), 2);+ let shown_by_window_server_that_shows_tiles =+ stack.layers_the_window_server_shows(&composite_offsets, &window_server(true));+ assert!(shown_by_window_server_that_shows_tiles[stack.base_layer.0]);+ assert!(+ caret_layers+ .iter()+ .all(|layer| shown_by_window_server_that_shows_tiles[layer.0])+ );+ for layer in caret_layers {+ assert_eq!(+ stack.why_frame_holds_layer(layer, &window_server(false)),+ WhyFrameHoldsLayer::WindowServerCannotShowItsContent+ );+ }+ }+fn read_as_consumers_do(page: &Page, frame_tree: &VisualContextTree, planned: &PlannedLayers, stack: &LayerStack) {let list = &page.list;let scroll_offsets = [FloatPoint { x: 0.0, y: 300.0 }; 4];diff --git a/Services/Compositor/Rust/src/presenting/layers.rs b/Services/Compositor/Rust/src/presenting/layers.rsindex 57978fe2e89..c9983d4bfa7 100644--- a/Services/Compositor/Rust/src/presenting/layers.rs+++ b/Services/Compositor/Rust/src/presenting/layers.rs@@ -11,7 +11,9 @@ use super::layer_overlay::{FrameWorkCounts, LayerOverlayModel, MediaPresentation, ModelLayer, ModelLayerContent, NamedVisualContextNode,PaintedLayerPresentation, RasterCountsByCause, layers_whose_names_are_shown,};-use super::tiles::{LayerTiles, LayerToRaster, TileDraw, TileShownInFrame, joined_rects_of_grid_given_row_by_row};+use super::tiles::{+ CaretPainting, LayerTiles, LayerToRaster, TileDraw, TileShownInFrame, joined_rects_of_grid_given_row_by_row,+};use super::window_server::{WhyMediaIsReplayed, WindowServerLayers};use super::{ContextPresenting, FrameToPaint, NestedContexts, PresentingEnvironment, apply_raster_transform,@@ -37,6 +39,7 @@ use libcompositing_rust::display_list::placement::{};use libcompositing_rust::display_list::reach::Reach;use libcompositing_rust::display_list::replay::{CompositeClipsOfRaster, ReplaySelection};+use libcompositing_rust::display_list::storage::ListSpan;use libcompositing_rust::display_list::tile_keys::{BandTileKeys, ContentHash, FrameStateReadByReplay, LayerRasterSettings, LiveContentVersions, TileCoverage,TileKeyingOfList, TileKeyingOfRasterSpace,@@ -1278,7 +1281,7 @@ impl ContextPresenting {for compositing in &compositing_of_layers {let layer_index = compositing.layer_index;let layer = &stack.layers[layer_index.0];- if let LayerContent::Media { record_span } = &layer.content {+ if let LayerContent::Media { record_span } | LayerContent::Caret { record_span } = &layer.content {let raster_space_index = stack.space_of_layer(layer_index);let media_replayed = MediaRecordsReplayedInFrame {content_hash: tile_keying_by_raster_space[raster_space_index.0]@@ -1412,6 +1415,21 @@ impl ContextPresenting {MediaPresentation::Replayed { why: why.to_string() }},},+ LayerContent::Caret { .. } => ModelLayerContent::Media {+ reach: layer.reach,+ presentation: if window_server_shows_layers && compositing.shown_by_window_server {+ MediaPresentation::ShownByWindowServer+ } else {+ let why = why_context_shows_no_media.map_or_else(+ || {+ self.why_frame_holds_layer(env, &layer_update.layers, layer_index, live_content)+ .to_string()+ },+ |why| why.to_string(),+ );+ MediaPresentation::Replayed { why }+ },+ },};let NameOfLayerForOverlay { name, nodes_named } = if name_is_shown_by_layer[position] {names_of_layers@@ -1670,23 +1688,17 @@ impl ContextPresenting {compositing.space_to_frame,viewport_rect,);- let replay_tiles = |target: &Rc<PaintingSurface>, tiles_replayed: &[&TileShownInFrame]| {- let band_tile_keys = stack_of_frames.band_tile_keys[layer.band_index.0]+ let band_tile_keys = || {+ stack_of_frames.band_tile_keys[layer.band_index.0].as_ref()- .expect("a band with shown tiles has tile keys");- let geometry = &band_tile_keys.geometry;- let record_spans = (!tiles_replay_the_whole_list).then(|| {- band_tile_keys- .tile_keys- .record_spans_of_tiles(tiles_replayed.iter().map(|tile| {- band_tile_keys- .tile_keys- .tile(tile.coord, layer_index)- .expect("a shown tile is keyed")- }))- });+ .expect("a band with a layer the frame shows has tile keys")+ };+ // Replays the records within `record_spans`, or the whole list, into a target whose origin is that of the+ // layer's space.+ let replay = |target: &Rc<PaintingSurface>, record_spans: Option<&[ListSpan]>| {+ let geometry = &band_tile_keys().geometry;let selection = ReplaySelection {- record_spans: record_spans.as_deref(),+ record_spans,clips_left_to_composite: (!geometry.clips_left_to_composite.is_empty()).then_some(&geometry.clips_left_to_composite[..]),composited_effect: stack.nodes[layer.placement_node_index.0].composited_effect,@@ -1698,6 +1710,36 @@ impl ContextPresenting {apply_raster_transform(raster, target, raster_scale, raster_translation);replay_with_scroll_offsets(env, target, frame, selection, &geometry.raster_scroll_offsets);};+ if let LayerContent::Caret { record_span } = layer.content {+ if layer_update.layers.window_server_shows_tiles_of(compositing) {+ let painting = CaretPainting {+ content_hash: layer_update.layers.media_replayed_by_identity[&compositing.identity]+ .content_hash,+ rect: layer.reach,+ raster_scale,+ raster_translation,+ };+ let painted =+ self.layers+ .tiles+ .paint_caret_surface(env, like, compositing.identity, painting, |target| {+ replay(target, Some(std::slice::from_ref(&record_span)));+ });+ layer_update.work_counts.tiles_rastered += u64::from(painted);+ }+ continue;+ }+ let replay_tiles = |target: &Rc<PaintingSurface>, tiles_replayed: &[&TileShownInFrame]| {+ let tile_keys = &band_tile_keys().tile_keys;+ let record_spans = (!tiles_replay_the_whole_list).then(|| {+ tile_keys.record_spans_of_tiles(+ tiles_replayed+ .iter()+ .map(|tile| tile_keys.tile(tile.coord, layer_index).expect("a shown tile is keyed")),+ )+ });+ replay(target, record_spans.as_deref());+ };let rastered = self.layers.tiles.raster_layer(env,like,@@ -1894,7 +1936,7 @@ impl ContextPresenting {compositing_session.enter_effect(effect);entered_composited_bands.push(band_index);}- if let LayerContent::Media { record_span } = &layer.content {+ if let LayerContent::Media { record_span } | LayerContent::Caret { record_span } = &layer.content {if !compositing.rect_in_frame(layer.reach, damage_grown_by_filter_reads).is_empty()diff --git a/Services/Compositor/Rust/src/presenting/tiles.rs b/Services/Compositor/Rust/src/presenting/tiles.rsindex 01ea89cf619..0d2630ba1f6 100644--- a/Services/Compositor/Rust/src/presenting/tiles.rs+++ b/Services/Compositor/Rust/src/presenting/tiles.rs@@ -6,7 +6,8 @@//! The tiles the layers of a context hold, the pool of their pixels, and the surface tiles are rastered through. The//! pixels of a tile are pooled under the tile's content hash, which hashes all they depend on, so a layer finds the-//! tiles another layer or an earlier stack rastered.+//! tiles another layer or an earlier stack rastered. A window server that shows tiles shows each caret from a surface+//! of its own, painted anew each time the caret blinks or moves.use super::layer_overlay::{ModelTile, RasterCause};use super::layers::LayerCompositingInFrame;@@ -19,7 +20,7 @@ use libcompositing_rust::display_list::layers::{BarrierCutsOfCell, LayerIdentityuse libcompositing_rust::display_list::tile_keys::{ContentHash, TileCoverage};use libcompositing_rust::display_list::tiles::{CellRange, TileCoord, entries_within};use libcompositing_rust::time::{Duration, MonotonicTime};-use libgfx_rust::{Color, IntRect, IntSize};+use libgfx_rust::{Color, FloatPoint, FloatSize, IntRect, IntSize};use std::collections::{BTreeMap, HashMap, HashSet};use std::rc::Rc;@@ -178,11 +179,28 @@ pub(super) struct RasteredLayer {pub(super) tile_count: u64,}+/// What the surface of a caret holds: what the caret's records draw, rastered into `rect` of the layer's space under+/// the raster transform of the frame.+#[derive(Clone, Copy, PartialEq)]+pub(super) struct CaretPainting {+ pub(super) content_hash: ContentHash,+ pub(super) rect: IntRect,+ pub(super) raster_scale: FloatSize,+ pub(super) raster_translation: FloatPoint,+}++struct CaretSurface {+ surface: Rc<PresentableSurface>,+ painting: CaretPainting,+}+/// The tiles the layers of a context hold under the identities of the layers, and the pool of their pixels.#[derive(Default)]pub(super) struct LayerTiles {held_by_layer: HashMap<LayerIdentity, HeldTiles>,pool: TilePool,+ /// The surface a window server that shows tiles shows each caret from.+ caret_surface_by_layer: HashMap<LayerIdentity, CaretSurface>,/// Whether a layer took or let go of tiles, or the pixels of pooled tiles changed, since spare tiles were last/// evicted.changed_since_eviction: bool,@@ -193,6 +211,7 @@ pub(super) struct LayerTiles {impl LayerTiles {pub(super) fn invalidate_every_tile(&mut self) {self.changed_since_eviction = true;+ self.caret_surface_by_layer.clear();for tile in self.pool.values_mut() {tile.holds_current_pixels = false;}@@ -400,6 +419,62 @@ impl LayerTiles {let layer_count_before = self.held_by_layer.len();self.held_by_layer.retain(|identity, _| identities.contains(identity));self.changed_since_eviction |= self.held_by_layer.len() != layer_count_before;+ self.caret_surface_by_layer+ .retain(|identity, _| identities.contains(identity));+ }++ /// Keeps the surface that the window server shows the caret of the layer of `identity` from, and paints `painting`+ /// into it with `paint` where it holds something else, as each time the caret blinks or moves. Nothing is painted+ /// into a surface the window server shows or still reads, so the caret takes a spare surface and spares the one it+ /// held. Answers whether it painted. Where no surface can be had, the window server shows no caret.+ pub(super) fn paint_caret_surface(+ &mut self,+ env: &PresentingEnvironment<'_>,+ like: &Rc<PaintingSurface>,+ identity: LayerIdentity,+ painting: CaretPainting,+ paint: impl FnOnce(&Rc<PaintingSurface>),+ ) -> bool {+ if self+ .caret_surface_by_layer+ .get(&identity)+ .is_some_and(|held| held.painting == painting)+ {+ return false;+ }+ if let Some(left) = self.caret_surface_by_layer.remove(&identity) {+ self.spare_surfaces+ .keep(left.surface, size_of(left.painting.rect), env.now);+ self.changed_since_eviction = true;+ }+ let size = size_of(painting.rect);+ let usable = |surface: &Rc<PresentableSurface>| {+ surface.can_be_shown_by_window_server() && surface.painting_surface().shares_backend_with(like)+ };+ let Some(surface) = self+ .spare_surfaces+ .take(size, usable)+ .or_else(|| create_tile_surface_on_backend_of(env.raster, size, like, true).filter(usable))+ else {+ return false;+ };+ let (raster, target) = (env.raster, surface.painting_surface());+ let save_count = raster.save(target);+ raster.translate(target, -painting.rect.x as f32, -painting.rect.y as f32);+ raster.clip_rect(target, painting.rect);+ raster.clear(target, Color::TRANSPARENT);+ paint(target);+ raster.restore_to_count(target, save_count);+ self.caret_surface_by_layer+ .insert(identity, CaretSurface { surface, painting });+ true+ }++ /// The surface the window server shows the caret of the layer of `identity` from, and where it lies in the layer's+ /// space.+ pub(super) fn caret_surface_of(&self, identity: &LayerIdentity) -> Option<(&Rc<PresentableSurface>, IntRect)> {+ let held = self.caret_surface_by_layer.get(identity)?;+ Some((&held.surface, held.painting.rect))}/// Evicts spare tiles where the tiles changed since spare tiles were last evicted, as otherwise every tile held thendiff --git a/Services/Compositor/Rust/src/presenting/window_server.rs b/Services/Compositor/Rust/src/presenting/window_server.rsindex aadc489d49f..c84cc1dcf0b 100644--- a/Services/Compositor/Rust/src/presenting/window_server.rs+++ b/Services/Compositor/Rust/src/presenting/window_server.rs@@ -22,6 +22,7 @@ use libcompositing_rust::display_list::layers::{WindowServerPlacementsOfMedia,};use libcompositing_rust::display_list::summary::LiveContent as LiveMedia;+use libcompositing_rust::display_list::tiles::TileCoord;use libcompositing_rust::display_list::window_server_placement::{WhyWindowServerCannotShowMedia, WindowServerPlacement,};@@ -485,16 +486,15 @@ impl ContextPresenting {/// Appends the sublayers of a painted layer the window server shows tile by tile, in the group of `group_index`,/// whose pixels are the frame's: a group per clip the layer is composited within, each in the one before, and in- /// the innermost, the group of the layer's space, which holds the tiles of the layer that reach into the viewport,- /// and a fill per run of tiles of one color.+ /// the innermost, the group of the layer's space, which holds `draws` of the layer: its tiles and a fill per run of+ /// tiles of one color.fn append_sublayers_of_tiled_layer(&self,sublayers: &mut Vec<FfiSublayer>,compositing: &LayerCompositingInFrame,- viewport_rect: IntRect,+ draws: Vec<TileDraw<'_>>,group_index: i32,) {- let draws = self.layers.tiles.draws_reaching_into(compositing, viewport_rect);if draws.is_empty() {return;}@@ -689,7 +689,9 @@ impl ContextPresenting {let group_index = entered_composited_bands_and_their_groups.last().map_or(-1, |(_, group_index)| *group_index);- if let LayerIdentity::Media { content, ordinal } = layer.identity {+ if let (LayerContent::Media { .. }, LayerIdentity::Media { content, ordinal }) =+ (&layer.content, layer.identity)+ {let Some(Ok(placement)) = painted.window_server_placements_of_media.of_layer(layer_index) else {continue;};@@ -729,8 +731,22 @@ impl ContextPresenting {});continue;}+ if let LayerContent::Caret { .. } = layer.content {+ if let Some((surface, rect_in_layer_space)) = self.layers.tiles.caret_surface_of(&compositing.identity)+ {+ let draw = TileDraw::TileSurface {+ coord: TileCoord::new(0, 0),+ surface,+ every_pixel_is_opaque: false,+ rect_in_layer_space,+ };+ self.append_sublayers_of_tiled_layer(&mut sublayers, compositing, vec![draw], group_index);+ }+ continue;+ }if painted.window_server_compositing.shows_tiles_of_painted_layers {- self.append_sublayers_of_tiled_layer(&mut sublayers, compositing, viewport_rect, group_index);+ let draws = self.layers.tiles.draws_reaching_into(compositing, viewport_rect);+ self.append_sublayers_of_tiled_layer(&mut sublayers, compositing, draws, group_index);continue;}let Some(presentation) = layers.presentation_by_layer.get(&compositing.identity) else {diff --git a/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt b/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txtindex 84d8549fe90..9ee9d3d535d 100644--- a/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/contenteditable-caret.txt@@ -6,7 +6,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[5,5 7x22][L2] painted space=viewport above L1diff --git a/Tests/LibWeb/Text/expected/display_list/empty-inline-caret.txt b/Tests/LibWeb/Text/expected/display_list/empty-inline-caret.txtindex d6ae1d0d913..5e7fd15bd17 100644--- a/Tests/LibWeb/Text/expected/display_list/empty-inline-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/empty-inline-caret.txt@@ -6,7 +6,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[71,5 7x22][L2] painted space=viewport above L1diff --git a/Tests/LibWeb/Text/expected/display_list/input-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-caret.txtindex 2d90dad0672..458724286a1 100644--- a/Tests/LibWeb/Text/expected/display_list/input-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/input-caret.txt@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[10,8 7x20][L2] painted space=viewport above L1diff --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 f1cfadd8a25..45cdd983a8f 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,7 +11,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[196,8 7x20][L2] painted space=viewport above L1diff --git a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txtindex d3599b8cba8..7ef84547f26 100644--- a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt+++ b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt@@ -95,7 +95,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[16,0 7x20]DisplayList:@@ -148,7 +148,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[16,0 7x20]DisplayList:diff --git a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txtindex cd29177677f..1ef34319a34 100644--- a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt+++ b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt@@ -8,7 +8,7 @@ AccumulatedVisualContext Tree:[e0 in s0] effects=[]Layers (for a window server that shows tiles and filters what is below layers):- [L0] base space=viewport held by the frame: it is under a layer the frame holds+ [L0] base space=viewport[L1] caret #0 space=viewport region=[8,8 7x20][L2] painted space=viewport above L1