Bug 224708 - Deploy Ref/RefPtr in Editor
Summary: Deploy Ref/RefPtr in Editor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-16 18:10 PDT by Ryosuke Niwa
Modified: 2021-04-24 15:08 PDT (History)
8 users (show)

See Also:


Attachments
Patch (42.26 KB, patch)
2021-04-16 18:27 PDT, Ryosuke Niwa
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Fixed release builds (42.51 KB, patch)
2021-04-16 18:34 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Patch for landing (42.50 KB, patch)
2021-04-16 18:59 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>