Changes in GraphicsContextState are tracked by an OptionSet. GraphicsContextState::mergeChanges() relies on this OptionSet to copy the changes from GraphicsContextState to another. This should work correctly if the two GraphicsContexts are synced all the times. But what we need for the canvas filter API is to copy the current GraphicsContextState of a canvas context to a newly created ImageBuffer.
<rdar://problem/101282195>
Pull request: https://github.com/WebKit/WebKit/pull/5485
Committed 255741@main (f3147a407737): <https://commits.webkit.org/255741@main> Reviewed commits have been landed. Closing PR #5485 and removing active labels.