Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bfaede7cf21865fae630d3a54e058bf986a8d3a3
      
https://github.com/WebKit/WebKit/commit/bfaede7cf21865fae630d3a54e058bf986a8d3a3
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-06-30 (Tue, 30 Jun 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderLayerSVGAdditions.cpp

  Log Message:
  -----------
  REGRESSION(315610@main): [LBSE] Event regions missing for non-layer SVG 
children
https://bugs.webkit.org/show_bug.cgi?id=308565

Reviewed by Simon Fraser.

Since SVG renderers no longer unconditionally own a RenderLayer, leaf renderers
(path/image/text) are no longer reached by collectEventRegionForFragments() and
must collect their event region through the layered ancestor's DOM-order child
walk (paintChildrenInDOMOrderForSVG). That walk only paints non-layer children
in their precomputed phasesToPaint ({ Foreground, Outline }), never in the
EventRegion phase, so touch/wheel/pointer regions for non-layer SVG content were
dropped -- e.g. an ontouchstart handler on a <path> registered no region. (The
<svg> root still contributed via RenderSVGRoot::paintObject().)

Collect the event region for non-layer children through the same DOM-order walk.
Fixes regressions on iOS in 
fast/events/touch/ios/touch-event-regions-layer-tree.

* Source/WebCore/rendering/RenderLayerSVGAdditions.cpp:
(WebCore::RenderLayer::paintNonLayerChildForFragmentsForSVG): In the EventRegion
phase, mirror collectEventRegionForFragments(): run even when shouldPaintContent
is false, and propagate regionContext into the child PaintInfo.
(WebCore::RenderLayer::paintChildrenInDOMOrderForSVG): When collecting the event
region, paint non-layer children in the EventRegion phase.

Canonical link: https://commits.webkit.org/316229@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to