[webkit-changes] [WebKit/WebKit] 1615ac: [Intelligence Effects] Remaining text doesn't shif...

Richard Robinson noreply at github.com
Sun Jan 12 17:07:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1615acbb126895eb148ca2b625639a9c7c282399
      https://github.com/WebKit/WebKit/commit/1615acbb126895eb148ca2b625639a9c7c282399
  Author: Richard Robinson <richard_robinson2 at apple.com>
  Date:   2025-01-12 (Sun, 12 Jan 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
    M Source/WebKit/WebKitSwift/WritingTools/PlatformIntelligenceTextEffectView.swift
    M Source/WebKit/WebKitSwift/WritingTools/WKIntelligenceTextEffectCoordinator.h
    M Source/WebKit/WebKitSwift/WritingTools/WKIntelligenceTextEffectCoordinator.swift

  Log Message:
  -----------
  [Intelligence Effects] Remaining text doesn't shift down after proofreading if the line count changes
https://bugs.webkit.org/show_bug.cgi?id=285789
rdar://142712429

Reviewed by Wenson Hsieh.

If a Proofreading operation involves multiple "chunks", the remaining text after each subsequent replacement
needs to be shifted vertically while the replacement animation is ongoing.

* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView intelligenceTextEffectCoordinator:contentPreviewForRange:completion:]):
* Source/WebKit/WebKitSwift/WritingTools/PlatformIntelligenceTextEffectView.swift:
(PlatformIntelligenceTextEffectViewSource.textPreview(for:)):
(PlatformIntelligenceTextEffectViewSource.performReplacementAndGeneratePreview(for:effect:animation:remainder:)):
(WTTextPreviewAsyncSourceAdapter.textPreview(for:)):
(Previews.heightDelta):
(PlatformIntelligenceTextEffectViewSource.performReplacementAndGeneratePreview(for:effect:animation:)): Deleted.
* Source/WebKit/WebKitSwift/WritingTools/WKIntelligenceTextEffectCoordinator.h:
* Source/WebKit/WebKitSwift/WritingTools/WKIntelligenceTextEffectCoordinator.swift:
(requestReplacement(withProcessedRange:finished:characterDelta:operation:)):
(startReplacementAnimation(using:)):
(WKIntelligenceTextEffectCoordinator.textPreview(for:)):
(WKIntelligenceTextEffectCoordinator.performReplacementAndGeneratePreview(for:effect:animation:remainder:)):
(WKIntelligenceTextEffectCoordinator.replacementEffectWillBegin(_:)):
(platformTextPreview(from:)):
(WKIntelligenceTextEffectCoordinator.performReplacementAndGeneratePreview(for:effect:animation:)): Deleted.

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



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


More information about the webkit-changes mailing list