blink::EventHandler (Blink core input handling)
Blink28623 Syys 2025

blink::EventHandler (Blink core input handling)

Scroll chain builder and overscroll chaining logic. Blink’s EventHandler is responsible for building the scroll chain (the sequence of nested scrollable ancestors) when the user scrolls an element . It determines how scroll events propagate up through parent containers and when to terminate the chain. Crucially, it respects the CSS overscroll-behavior of each element to decide if overscroll should propagate or stop at that element. For example, if an inner element is scrolled to its boundary, by default the scroll chains to its parent – but if that element’s style has overscroll-behavior: contain or none, the chain is broken and the overscroll is handled locally . To implement non-root elastic overscroll, one must modify how EventHandler (and associated scroll logic) interprets these style flags and sends overscroll events: instead of always bubbling to the root, it should allow an overscroll at the element itself when appropriate. In short, EventHandler is where the blink style system meets input: it ensures the scroll chain and overscroll-behavior rules are applied, so the developer must understand it to route overscroll to non-root scrollers.

Jaksot(392)

Chromium LayerContext Deep Dive: RenderingNG and Scroll Updates

Chromium LayerContext Deep Dive: RenderingNG and Scroll Updates

The source material, primarily an excerpt from a 2025 technical report, provides an in-depth analysis of the LayerContext abstraction within the Chromium RenderingNG pipeline, specifically when the br...

8 Loka 202532min

[ext] Blink's Paint Property Tree Builder: A Surgical Tour of Dragons

[ext] Blink's Paint Property Tree Builder: A Surgical Tour of Dragons

(Make it over 20000 words) source text provides an extremely detailed, technical overview of the blink::PaintPropertyTreeBuilder class in Chromium, which is responsible for building the rendering pipe...

7 Loka 20251h 36min

Blink's Paint Property Tree Builder: A Surgical Tour of Dragons

Blink's Paint Property Tree Builder: A Surgical Tour of Dragons

The source text provides an extremely detailed, technical overview of the blink::PaintPropertyTreeBuilder class in Chromium, which is responsible for building the rendering pipeline's four synchronize...

7 Loka 202543min

Chrome Compositor LayerTree Architecture and Input Handling

Chrome Compositor LayerTree Architecture and Input Handling

The text provides a detailed overview of the architecture and function of Chrome's Compositor (cc) component, specifically focusing on the core data structures: LayerTree and LayerTreeImpl. It explain...

7 Loka 202527min

viz::Display::DrawAndSwap

viz::Display::DrawAndSwap

In Chrome’s rendering pipeline, the Viz service in the GPU process owns a viz::Display object. A Display is responsible for taking aggregated CompositorFrames (produced by the SurfaceAggregator), draw...

5 Loka 202528min

Chrome RenderingNG: Paint Artifact and Compositor Architecture

Chrome RenderingNG: Paint Artifact and Compositor Architecture

source provides an extensive, lecture-style examination of Chrome’s RenderingNG pipeline, specifically focusing on the roles of the PaintArtifact and the PaintArtifactCompositor. The text explains tha...

5 Loka 202534min

Browser Rendering: Calculating Draw Properties

Browser Rendering: Calculating Draw Properties

The source provides an extensive explanation of the internal browser rendering mechanism used in Blink and Chrome, specifically focusing on the CalculateDrawProperties algorithm. This process translat...

5 Loka 202539min

Chrome Compositor Transform Updates on Scroll

Chrome Compositor Transform Updates on Scroll

These sources provide an extensive technical explanation of how the Chrome compositor manages dynamic properties, specifically focusing on transformations and scrolling, using a structure called Prope...

4 Loka 202532min