Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4cf517d5ce5eec2f7df269c82e6c6bb24d348265
      
https://github.com/WebKit/WebKit/commit/4cf517d5ce5eec2f7df269c82e6c6bb24d348265
  Author: Richard Robinson <richard_robins...@apple.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M Source/WebCore/editing/cocoa/HTMLConverter.h
    M Source/WebCore/editing/cocoa/HTMLConverter.mm
    M Source/WebCore/page/writing-tools/WritingToolsController.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WritingTools.mm

  Log Message:
  -----------
  [Writing Tools] Quoted text in emails is rewritten (should be excluded from 
modification)
https://bugs.webkit.org/show_bug.cgi?id=276004
rdar://120563824

Reviewed by Abrar Rahman Protyasha.

Add the `WTWritingToolsPreserved` attribute to the ranges corresponding to text 
enclosed in `blockquote` or `pre` tags,
so that Writing Tools does not rewrite the content.

* Source/WebCore/editing/cocoa/HTMLConverter.h:
* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(hasAncestorQualifyingForWritingToolsPreservation):
(WebCore::editingAttributedString):
* Source/WebCore/page/writing-tools/WritingToolsController.mm:
(WebCore::WritingToolsController::willBeginWritingToolsSession):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WritingTools.mm:
(TEST(WritingTools, BlockquoteAndPreContentsAreIgnored)):

Canonical link: https://commits.webkit.org/280542@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