Fixes null dereference crashes when running these four layout tests with GPUP enabled: - fast/canvas/2d.fillText.gradient.html - fast/canvas/2d.text.draw.fill.maxWidth.gradient.html - fast/canvas/canvas-text-alignment.html - fast/canvas/gradient-text-with-shadow.html
Created attachment 409813 [details] WIP
Created attachment 409814 [details] WIP
Created attachment 409820 [details] WIP
Created attachment 409840 [details] WIP
Created attachment 409841 [details] WIP
Created attachment 409842 [details] WIP
Created attachment 409846 [details] Patch
<rdar://problem/69663834>
Created attachment 409961 [details] WIP
Created attachment 409962 [details] WIP
Created attachment 409966 [details] Patch
Comment on attachment 409966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409966&action=review > Source/WebCore/platform/graphics/GraphicsContext.h:414 > + ClipToDrawingCommandsResult clipToDrawingCommands(const FloatRect& destination, ColorSpace, Function<void(GraphicsContext&)>&&); This is great. We might end up generalizing this for other image buffer code paths, but it's a good start.
Comment on attachment 409966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409966&action=review >> Source/WebCore/platform/graphics/GraphicsContext.h:414 >> + ClipToDrawingCommandsResult clipToDrawingCommands(const FloatRect& destination, ColorSpace, Function<void(GraphicsContext&)>&&); > > This is great. We might end up generalizing this for other image buffer code paths, but it's a good start. 👍🏻
Committed r267742: <https://trac.webkit.org/changeset/267742> All reviewed patches have been landed. Closing bug and clearing flags on attachment 409966 [details].