Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 870535e9e6a98a440bd344a1bc91de997f869f00
      
https://github.com/WebKit/WebKit/commit/870535e9e6a98a440bd344a1bc91de997f869f00
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderInline.cpp
    M Source/WebCore/rendering/RenderInline.h
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/RenderLayer.h

  Log Message:
  -----------
  [cleanup] RenderLayer hit tests an inline box through the line layout
https://bugs.webkit.org/show_bug.cgi?id=324490
<rdar://problem/187727582>

Reviewed by Antti Koivisto.

RenderInline::nodeAtPoint() only ran for a self-painting layer, where it handed 
the request to the containing line layout. RenderLayer asks the line layout 
directly now, the way a block already hit tests its inline content, and an 
inline box's nodeAtPoint() joins paint() as unreachable.

* Source/WebCore/rendering/RenderInline.cpp:
(WebCore::RenderInline::nodeAtPoint): Deleted.
* Source/WebCore/rendering/RenderInline.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTestContentForRenderer):
(WebCore::RenderLayer::hitTestContents):
* Source/WebCore/rendering/RenderLayer.h:

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



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

Reply via email to