Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 82fd45f40cfdc4c9ead4a2e30719d186a326b4da
      
https://github.com/WebKit/WebKit/commit/82fd45f40cfdc4c9ead4a2e30719d186a326b4da
  Author: Adrian Taylor <[email protected]>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M Source/WebKit/Shared/WebKit-Swift.h
    M Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
    M Source/WebKit/UIProcess/RemotePageProxy.cpp
    M Source/WebKit/UIProcess/ViewGestureController.cpp
    M Source/WebKit/UIProcess/WebBackForwardList.cpp
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp

  Log Message:
  -----------
  Slightly simplify WebKit-Swift inclusions
https://bugs.webkit.org/show_bug.cgi?id=308743
rdar://171262985

Reviewed by Richard Robinson.

WebKit-Swift.h needs to be included by any C++ file which calls Swift methods.
(In the future we hope to allows its inclusion from header files, which would
reduce the duplication here, but we are taking it slowly as we don't want to
inadvertently cause circular dependencies between C++ and Swift).

This is somewhat verbose and repetitive. The current change reduces the
verbosity a little by moving the #if ENABLED(...) header guards into
WebKit-Swift.h itself.

It also adds a warning to alert people if they're doing something which might
cause a circular Swift <-> C++ dependency.

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



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

Reply via email to