Changeset 235857 in webkit


Ignore:
Timestamp:
Sep 10, 2018, 1:39:57 PM (7 years ago)
Author:
mitz@apple.com
Message:

[macOS] Editor::readSelectionFromPasteboard’s MailBlockquoteHandling argument is effectively unused
https://bugs.webkit.org/show_bug.cgi?id=189480

Reviewed by Anders Carlsson.

No new tests, because this doesn’t change behavior.

  • editing/Editor.h: Removed the MailBlockquoteHandling argument from readSelectionFromPasteboard.
  • editing/mac/EditorMac.mm:

(WebCore::Editor::readSelectionFromPasteboard): Don’t pass mailBlockquoteHandling to

pasteWithPasteboard. It was always set to RespectBlockquote, which is the latter’s
default.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r235856 r235857  
     12018-09-10  Dan Bernstein  <mitz@apple.com>
     2
     3        [macOS] Editor::readSelectionFromPasteboard’s MailBlockquoteHandling argument is effectively unused
     4        https://bugs.webkit.org/show_bug.cgi?id=189480
     5
     6        Reviewed by Anders Carlsson.
     7
     8        No new tests, because this doesn’t change behavior.
     9
     10        * editing/Editor.h: Removed the MailBlockquoteHandling argument from
     11          readSelectionFromPasteboard.
     12        * editing/mac/EditorMac.mm:
     13        (WebCore::Editor::readSelectionFromPasteboard): Don’t pass mailBlockquoteHandling to
     14          pasteWithPasteboard. It was always set to RespectBlockquote, which is the latter’s
     15          default.
     16
    1172018-09-10  Andy Estes  <aestes@apple.com>
    218
  • trunk/Source/WebCore/editing/Editor.h

    r235775 r235857  
    472472    bool canCopyExcludingStandaloneImages();
    473473    void takeFindStringFromSelection();
    474     WEBCORE_EXPORT void readSelectionFromPasteboard(const String& pasteboardName, MailBlockquoteHandling = MailBlockquoteHandling::RespectBlockquote);
     474    WEBCORE_EXPORT void readSelectionFromPasteboard(const String& pasteboardName);
    475475    WEBCORE_EXPORT void replaceNodeFromPasteboard(Node*, const String& pasteboardName);
    476476    WEBCORE_EXPORT RefPtr<SharedBuffer> dataSelectionForPasteboard(const String& pasteboardName);
  • trunk/Source/WebCore/editing/mac/EditorMac.mm

    r235748 r235857  
    119119}
    120120
    121 void Editor::readSelectionFromPasteboard(const String& pasteboardName, MailBlockquoteHandling mailBlockquoteHandling)
     121void Editor::readSelectionFromPasteboard(const String& pasteboardName)
    122122{
    123123    Pasteboard pasteboard(pasteboardName);
    124124    if (m_frame.selection().selection().isContentRichlyEditable())
    125         pasteWithPasteboard(&pasteboard, true, mailBlockquoteHandling);
     125        pasteWithPasteboard(&pasteboard, true);
    126126    else
    127127        pasteAsPlainTextWithPasteboard(pasteboard);
Note: See TracChangeset for help on using the changeset viewer.