Bug 225028

Summary: Deploy Ref/RefPtr in DeleteSelectionCommand
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, ews-watchlist, megan_gardner, mifenton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch for landing none

Description Ryosuke Niwa 2021-04-24 19:18:35 PDT
We should use more smart pointers in DeleteSelectionCommand.
Comment 1 Ryosuke Niwa 2021-04-24 19:24:32 PDT
Created attachment 426995 [details]
Patch
Comment 2 Wenson Hsieh 2021-04-24 19:30:19 PDT
Comment on attachment 426995 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=426995&action=review

r=mews

> Source/WebCore/editing/DeleteSelectionCommand.cpp:1044
> +            Text& textNode = downcast<Text>(*endNode);

Nit - auto& here.
Comment 3 Ryosuke Niwa 2021-04-24 19:34:54 PDT
Created attachment 426996 [details]
Patch for landing
Comment 4 Ryosuke Niwa 2021-04-24 19:35:07 PDT
Comment on attachment 426996 [details]
Patch for landing

Wait for EWS.
Comment 5 Ryosuke Niwa 2021-04-24 23:00:03 PDT
Comment on attachment 426996 [details]
Patch for landing

Clearing flags on attachment: 426996

Committed r276563 (236999@main): <https://commits.webkit.org/236999@main>
Comment 6 Ryosuke Niwa 2021-04-24 23:00:05 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2021-04-24 23:01:19 PDT
<rdar://problem/77114154>