Bug 191927

Summary: Replace LayerOrView typedef with a class
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, simon.fraser, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch
none
patch none

Description Antti Koivisto 2018-11-23 09:47:13 PST
This typedef restricts remote layer representation to be either a CA layer or a view. We might want have more flexibility, for example tiles don't really need to be UIViews.
Comment 1 Antti Koivisto 2018-11-23 10:05:51 PST
Created attachment 355522 [details]
patch
Comment 2 Antti Koivisto 2018-11-23 11:49:16 PST
Created attachment 355529 [details]
patch
Comment 3 Antti Koivisto 2018-11-23 11:56:30 PST
Created attachment 355531 [details]
patch
Comment 4 Tim Horton 2018-11-23 13:29:22 PST
Comment on attachment 355531 [details]
patch

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

Seems reasonable.

> Source/WebKit/ChangeLog:9
> +        have more flexibility, for example tiles don't really need to be UIViews. It will also make it easier

If you do make the view-ness optional, please add an ASSERTion that we never parent a view under a raw layer.
Comment 5 WebKit Commit Bot 2018-11-23 23:17:42 PST
Comment on attachment 355531 [details]
patch

Clearing flags on attachment: 355531

Committed r238468: <https://trac.webkit.org/changeset/238468>
Comment 6 WebKit Commit Bot 2018-11-23 23:17:43 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2018-11-23 23:18:26 PST
<rdar://problem/46226532>