Bug 209714

Summary: ScrollLatchingState should use WeakPtr<Element>
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, darin, ews-watchlist, fred.wang, jamesr, luiz, simon.fraser, tonikitoo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Simon Fraser (smfr) 2020-03-28 20:20:47 PDT
ScrollLatchingState should use WeakPtr<Element>
Comment 1 Simon Fraser (smfr) 2020-03-28 20:21:33 PDT
Created attachment 394856 [details]
Patch
Comment 2 Darin Adler 2020-03-29 01:13:02 PDT
Comment on attachment 394856 [details]
Patch

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

> Source/WebCore/page/scrolling/ScrollLatchingState.h:48
> +    void setWheelEventElement(Element*);

Does this need to accept null? Could it take a references instead of a pointer?

> Source/WebCore/page/scrolling/ScrollLatchingState.h:57
> +    void setPreviousWheelScrolledElement(Element*);

Ditto.

> Source/WebCore/page/scrolling/ScrollLatchingState.h:61
> +

Ditto.
Comment 3 Simon Fraser (smfr) 2020-03-30 20:35:57 PDT
https://trac.webkit.org/changeset/259278/webkit
Comment 4 Radar WebKit Bug Importer 2020-03-30 20:36:15 PDT
<rdar://problem/61087846>