Bug 224708

Summary: Deploy Ref/RefPtr in Editor
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, esprehn+autocc, ews-watchlist, kangil.han, 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-
Fixed release builds
none
Patch for landing none

Description Ryosuke Niwa 2021-04-16 18:10:47 PDT
Deploy smart pointers in Editor.
Comment 1 Ryosuke Niwa 2021-04-16 18:27:26 PDT
Created attachment 426305 [details]
Patch
Comment 2 Ryosuke Niwa 2021-04-16 18:34:32 PDT
Created attachment 426308 [details]
Fixed release builds
Comment 3 Wenson Hsieh 2021-04-16 18:35:45 PDT
Comment on attachment 426308 [details]
Fixed release builds

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

r=mews

> Source/WebCore/editing/Editor.cpp:3674
> +    if (auto startNode = makeRefPtr(range.startContainer()); startNode->hasEditableStyle())

Nit - I think this one can be `makeRef`.

> Source/WebKit/WebProcess/WebPage/WebPage.cpp:1196
> +    Editor& editor = frame->editor();

Nit - auto&?
Comment 4 Ryosuke Niwa 2021-04-16 18:56:01 PDT
Thanks for the review!

(In reply to Wenson Hsieh from comment #3)
> Comment on attachment 426308 [details]
> Fixed release builds
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=426308&action=review
> 
> r=mews
> 
> > Source/WebCore/editing/Editor.cpp:3674
> > +    if (auto startNode = makeRefPtr(range.startContainer()); startNode->hasEditableStyle())
> 
> Nit - I think this one can be `makeRef`.

Fixed.

> > Source/WebKit/WebProcess/WebPage/WebPage.cpp:1196
> > +    Editor& editor = frame->editor();
> 
> Nit - auto&?

Fixed.
Comment 5 Ryosuke Niwa 2021-04-16 18:59:04 PDT
Created attachment 426310 [details]
Patch for landing
Comment 6 EWS 2021-04-16 19:33:02 PDT
Committed r276191 (236673@main): <https://commits.webkit.org/236673@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426310 [details].
Comment 7 Radar WebKit Bug Importer 2021-04-24 15:08:30 PDT
<rdar://problem/77110110>