[webkit-changes] [WebKit/WebKit] 0fd2f4: EditorCommandSource and EditorParagraphSeparator s...

Ryosuke Niwa noreply at github.com
Mon May 8 11:03:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0fd2f46306b7c97422a6668742c5b94dae9ea872
      https://github.com/WebKit/WebKit/commit/0fd2f46306b7c97422a6668742c5b94dae9ea872
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/TextEvent.h
    M Source/WebCore/editing/Editing.cpp
    M Source/WebCore/editing/Editor.cpp
    M Source/WebCore/editing/Editor.h
    M Source/WebCore/editing/EditorCommand.cpp

  Log Message:
  -----------
  EditorCommandSource and EditorParagraphSeparator should be enum classes
https://bugs.webkit.org/show_bug.cgi?id=256446

Reviewed by Wenson Hsieh.

Made them enum classes.

* Source/WebCore/dom/Document.cpp:
(WebCore::command):
* Source/WebCore/dom/TextEvent.h:
* Source/WebCore/editing/Editing.cpp:
(WebCore::createDefaultParagraphElement):
* Source/WebCore/editing/Editor.cpp:
(WebCore::Editor::clear):
* Source/WebCore/editing/Editor.h:
* Source/WebCore/editing/EditorCommand.cpp:
(WebCore::applyCommandToFrame):
(WebCore::executeApplyParagraphStyle):
(WebCore::executeCopy):
(WebCore::executeCopyFont):
(WebCore::executeCut):
(WebCore::executeDefaultParagraphSeparator):
(WebCore::executeDelete):
(WebCore::executeForwardDelete):
(WebCore::executeInsertLineBreak):
(WebCore::executePaste):
(WebCore::executePasteFont):
(WebCore::executePasteGlobalSelection):
(WebCore::executePasteAndMatchStyle):
(WebCore::executePasteAsPlainText):
(WebCore::executePasteAsQuotation):
(WebCore::enabledCopy):
(WebCore::enabledCut):
(WebCore::enabledDelete):
(WebCore::enabledPaste):
(WebCore::valueDefaultParagraphSeparator):
(WebCore::allowExecutionWhenDisabledCopyCut):
(WebCore::Editor::command):
(WebCore::Editor::Command::isSupported const):

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




More information about the webkit-changes mailing list