Bug 209247

Summary: Several TextMarker attributes need to run on the main thread.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: New BugsAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, darin, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Andres Gonzalez
Reported 2020-03-18 13:11:25 PDT
Several TextMarker attributes need to run on the main thread.
Attachments
Patch (43.92 KB, patch)
2020-03-18 13:21 PDT, Andres Gonzalez
no flags
Andres Gonzalez
Comment 1 2020-03-18 13:21:36 PDT
EWS
Comment 2 2020-03-18 19:09:50 PDT
Committed r258673: <https://trac.webkit.org/changeset/258673> All reviewed patches have been landed. Closing bug and clearing flags on attachment 393894 [details].
Radar WebKit Bug Importer
Comment 3 2020-03-18 19:10:13 PDT
Darin Adler
Comment 4 2020-03-18 20:26:37 PDT
Comment on attachment 393894 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393894&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:560 > +static inline RetainPtr<WebAccessibilityObjectWrapper> retainWrapper(WebAccessibilityObjectWrapper* wrapper) > +{ > + return RetainPtr<WebAccessibilityObjectWrapper>(wrapper); > +} I’m surprised we need this. Doesn’t the retainPtr function from RetainPtr.h work?
Andres Gonzalez
Comment 5 2020-03-18 21:19:01 PDT
(In reply to Darin Adler from comment #4) > Comment on attachment 393894 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=393894&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:560 > > +static inline RetainPtr<WebAccessibilityObjectWrapper> retainWrapper(WebAccessibilityObjectWrapper* wrapper) > > +{ > > + return RetainPtr<WebAccessibilityObjectWrapper>(wrapper); > > +} > > I’m surprised we need this. Doesn’t the retainPtr function from RetainPtr.h > work? I misread your comment about this in a previous review as that should use a helper function, but didn't realize that retainPtr already existed. Fixed it in: https://bugs.webkit.org/show_bug.cgi?id=209269 Thanks very much.
Note You need to log in before you can comment on or make changes to this bug.