Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3b2eaabb33ceef9cedb1c56149a532f7064743c5
      
https://github.com/WebKit/WebKit/commit/3b2eaabb33ceef9cedb1c56149a532f7064743c5
  Author: Zak Ridouh <[email protected]>
  Date:   2026-04-13 (Mon, 13 Apr 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebPage/WebPage.messages.in

  Log Message:
  -----------
  Introduce convertRectsToMainFrameCoordinates for batching multiple rect 
conversions
https://bugs.webkit.org/show_bug.cgi?id=311871
rdar://174446469

Reviewed by Aditya Keerthi.

convertRectToMainFrameCoordinates converts a single rect from a subframe's
coordinate space to the main frame via a recursive IPC chain (one round-trip
per frame level). Callers that need to convert multiple rects from the same
frame must make separate sequential calls, each incurring their own IPC
round-trips.

Introduce a batch variant `convertRectsToMainFrameCoordinates`that
converts a Vector<FloatRect> in a single IPC call per frame level. A new
ContentsToRootViewRects IPC message handles the WebProcess side by iterating
the vector through the existing contentsToRootView template.

No new tests, as this is not changing any functionality.

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::convertRectsToMainFrameCoordinates):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::contentsToRootViewRects):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:

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



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

Reply via email to