blink::EventHandler (Blink core input handling)
Blink28623 Sep 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.

Avsnitt(394)

blink::PaintPropertyTreeBuilder

blink::PaintPropertyTreeBuilder

builds/updates paint property trees.Consumes the layout/fragment data and produces the four paint property trees (Transform, Clip, Effect, Scroll) for the current frame. These trees encode coordinate ...

10 Okt 202547min

blink::PrePaintTreeWalk

blink::PrePaintTreeWalk

cross‑frame pre‑paint traversal. Runs in the InPrePaint lifecycle phase. Walks the entire layout tree starting at the root LocalFrameView, updating paint invalidation state and computing the context n...

10 Okt 202531min

blink::NGPhysicalFragment and friends

blink::NGPhysicalFragment and friends

Layout takes the styled DOM and produces a fragment tree of positioned boxes. In modern Blink this is LayoutNG; the core artifact is NGPhysicalFragment, which stores geometry and is used downstream fo...

10 Okt 202537min

blink::StyleEngine

blink::StyleEngine

style invalidation & resolution (recalc). 
Given DOM/style changes since the last frame, StyleEngine computes updated ComputedStyles, manages active stylesheets/media query state, and marks the right ...

10 Okt 202534min

blink::Document & blink::DocumentLifecycle

blink::Document & blink::DocumentLifecycle

states that gate phases. The document owns the DOM and keeps a DocumentLifecycle state machine that ensures we do things in phase order (style before layout, pre‑paint before paint, etc.). Lifecycle t...

10 Okt 202535min

blink::LocalFrameView

blink::LocalFrameView

orchestrates style → layout → pre‑paint/paint for a frame. This is the workhorse that actually runs lifecycle phases. On a frame tick from WebFrameWidgetImpl, it goes through style recalc, layout (Lay...

9 Okt 202544min

blink::LocalFrame

blink::LocalFrame

the document host and local‑root boundary.
The local frame owns the Document and its LocalFrameView. The local root frame coordinates lifecycle for its subtree (including OOPIF boundaries handled late...

9 Okt 202532min

blink::Page

blink::Page

the page container and animation clock keeper. Page holds frame trees and the PageAnimator that services script‑driven animations on each tick. It’s the top‑level context for the document/view that We...

9 Okt 202534min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
market-makers
rss-elektrikerpodden
rss-laddstationen-med-elbilen-i-sverige
natets-morka-sida
skogsforum-podcast
gubbar-som-tjotar-om-bilar
rss-uppgang-och-fall
rss-technokratin
bli-saker-podden
bilar-med-sladd
rss-veckans-ai
rss-ai-med-katarina-gospic-och-viggo-cavling
bosse-bildoktorn-och-hasse-p
hej-bruksbil
rss-it-sakerhetspodden
rss-sogeti-sweden-podcasts
rss-fabriken-2
rss-powerboat-sverige-podcast