Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7b4c51c38b4971634886850b1b9cedb11b9d7775
      
https://github.com/WebKit/WebKit/commit/7b4c51c38b4971634886850b1b9cedb11b9d7775
  Author: Richard Robinson <richard_robins...@apple.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Source/WebKit/_WebKit_SwiftUI/API/View+WebViewModifiers.swift
    M Source/WebKit/_WebKit_SwiftUI/Implementation/CocoaWebViewAdapter.swift
    M 
Source/WebKit/_WebKit_SwiftUI/Implementation/EnvironmentValues+Extras.swift
    M Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifierContexts.swift
    R Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifiers.swift
    M Source/WebKit/_WebKit_SwiftUI/Implementation/WebViewRepresentable.swift

  Log Message:
  -----------
  [SwiftUI] Improve efficiency and memory usage of 
`OnScrollGeometryChangeContext`
https://bugs.webkit.org/show_bug.cgi?id=289283
rdar://145869526

Reviewed by Abrar Rahman Protyasha.

Effectively reverts 291350@main, since upon investigation, the issue is a 
client-side issue and not an implementation issue.
As a result, a hacky implementation workaround should be avoided; it is the 
client's responsibiilty to ensure views in general
are not redrawn excessively.

* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/_WebKit_SwiftUI/API/View+WebViewModifiers.swift:
* Source/WebKit/_WebKit_SwiftUI/Implementation/CocoaWebViewAdapter.swift:
(CocoaWebViewAdapter.geometryDidChange(_:)):
* Source/WebKit/_WebKit_SwiftUI/Implementation/EnvironmentValues+Extras.swift:
(EnvironmentValues.webViewOnScrollGeometryChange):
* Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifierContexts.swift:
(Change.transform): Deleted.
(Change.action): Deleted.
(changes): Deleted.
(apply(from:to:)): Deleted.
* Source/WebKit/_WebKit_SwiftUI/Implementation/ViewModifiers.swift: Removed.
* Source/WebKit/_WebKit_SwiftUI/Implementation/WebViewRepresentable.swift:
(WebViewRepresentable.updatePlatformView(_:context:)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to