Bug 225224

Summary: Avoid some null pointer dereferences in PlatformCALayer::drawLayerContents.
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: Layout and RenderingAssignee: Cameron McCormack (:heycam) <heycam>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Cameron McCormack (:heycam) 2021-04-29 21:48:40 PDT
<rdar://76359027>
Comment 1 Cameron McCormack (:heycam) 2021-04-29 21:57:55 PDT
Created attachment 427398 [details]
Patch
Comment 2 Cameron McCormack (:heycam) 2021-04-29 22:09:36 PDT
Comment on attachment 427398 [details]
Patch

Will split this into two patches.
Comment 3 Cameron McCormack (:heycam) 2021-04-30 14:52:23 PDT
Created attachment 427453 [details]
Patch
Comment 4 Simon Fraser (smfr) 2021-04-30 14:53:39 PDT
Comment on attachment 427453 [details]
Patch

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

> Source/WebCore/ChangeLog:13
> +        setIsCALayerContext and setIsAcceleratedContext both assume (and assert)
> +        that the GraphicsContext has a platform context directly in m_data,
> +        but m_data is null when the GraphicsContext a display list recording
> +        context.  These calls are unnecessary when not working with a
> +        CG-backed GraphicsContext, so just skip them in this case.

This should probably mention DOM Rendering in GPUP
Comment 5 Cameron McCormack (:heycam) 2021-04-30 14:56:52 PDT
Created attachment 427454 [details]
Patch
Comment 6 EWS 2021-04-30 17:43:14 PDT
Committed r276866 (237212@main): <https://commits.webkit.org/237212@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 427454 [details].