Bug 203136

Summary: Refactor AbstractEventLoop out of WindowEventLoop
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: ScrollingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, dbates, esprehn+autocc, ews-watchlist, ggaren, kangil.han, koivisto, webkit-bug-importer, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 203137    
Attachments:
Description Flags
Cleanup koivisto: review+

Description Ryosuke Niwa 2019-10-17 21:48:37 PDT
This is to prepare for the addition of WorkerEventLoop, which is needed to integrate DOMTimer with HTML5 event loop.
Comment 1 Radar WebKit Bug Importer 2019-10-17 21:50:38 PDT
<rdar://problem/56396749>
Comment 2 Ryosuke Niwa 2019-10-17 22:41:00 PDT
Created attachment 381274 [details]
Cleanup
Comment 3 Antti Koivisto 2019-10-18 07:15:59 PDT
Comment on attachment 381274 [details]
Cleanup

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

> Source/WebCore/dom/AbstractEventLoop.h:40
> +class AbstractEventLoop : public RefCounted<AbstractEventLoop> {
> +    WTF_MAKE_FAST_ALLOCATED;

RefCounted is WTF_MAKE_FAST_ALLOCATED by default.

> Source/WebCore/dom/WindowEventLoop.h:37
> +class WindowEventLoop final : public AbstractEventLoop {
>      WTF_MAKE_FAST_ALLOCATED;

Not needed here either.
Comment 4 Ryosuke Niwa 2019-10-18 15:49:12 PDT
(In reply to Antti Koivisto from comment #3)
> Comment on attachment 381274 [details]
> Cleanup
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=381274&action=review
> 
> > Source/WebCore/dom/AbstractEventLoop.h:40
> > +class AbstractEventLoop : public RefCounted<AbstractEventLoop> {
> > +    WTF_MAKE_FAST_ALLOCATED;
> 
> RefCounted is WTF_MAKE_FAST_ALLOCATED by default.

Good point. Removed.

> > Source/WebCore/dom/WindowEventLoop.h:37
> > +class WindowEventLoop final : public AbstractEventLoop {
> >      WTF_MAKE_FAST_ALLOCATED;
> 
> Not needed here either.

Ditto.
Comment 5 Ryosuke Niwa 2019-10-18 16:34:38 PDT
Committed r251308: <https://trac.webkit.org/changeset/251308>