Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 353c0103c9ab7f41cbd0ff0c30d1205b6f72e7b9
      
https://github.com/WebKit/WebKit/commit/353c0103c9ab7f41cbd0ff0c30d1205b6f72e7b9
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M Source/WebCore/editing/ApplyStyleCommand.cpp
    M Source/WebCore/editing/EditingStyle.cpp
    M Source/WebCore/editing/FormatBlockCommand.cpp
    M Source/WebCore/editing/IndentOutdentCommand.cpp
    M Source/WebCore/editing/TextInsertionBaseCommand.cpp
    M Source/WebCore/editing/markup.cpp

  Log Message:
  -----------
  Use protect() instead of RefPtr { } in editing code
https://bugs.webkit.org/show_bug.cgi?id=314007
rdar://176206072

Reviewed by Ryosuke Niwa.

Mechanical migration from RefPtr { expr } to protect(expr) in editing code,
aligning with the codebase-wide transition away from brace-initialized smart
pointer temporaries.

No new tests needed (no behavioral change, style-only refactor).

* Source/WebCore/editing/ApplyStyleCommand.cpp:
(WebCore::highestEmbeddingAncestor):
* Source/WebCore/editing/EditingStyle.cpp:
(WebCore::EditingStyle::propertiesMatchingProperty):
(WebCore::EditingStyle::mergeStyle):
* Source/WebCore/editing/FormatBlockCommand.cpp:
(WebCore::FormatBlockCommand::formatRange):
* Source/WebCore/editing/IndentOutdentCommand.cpp:
(WebCore::IndentOutdentCommand::formatSelection):
* Source/WebCore/editing/TextInsertionBaseCommand.cpp:
(WebCore::dispatchBeforeTextInsertedEvent):
* Source/WebCore/editing/markup.cpp:
(WebCore::serializePreservingVisualAppearanceInternal):

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



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

Reply via email to