Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shadows paint at the wrong scale in replayed CGDisplayLists
https://bugs.webkit.org/show_bug.cgi?id=246369 rdar://96967173 Reviewed by Simon Fraser. * Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContextCG::fillRect): (WebCore::GraphicsContextCG::fillRoundedRectImpl): (WebCore::GraphicsContextCG::fillRectWithRoundedHole): (WebCore::GraphicsContextCG::setCGShadow): (WebCore::GraphicsContextCG::clearCGShadow): (WebCore::GraphicsContextCG::didUpdateState): (WebCore::setCGShadow): Deleted. Make setCGShadow virtual so that GraphicsContextCGDisplayList can adjust its behavior. Drive-by factor out clearCGShadow so all the CGContext-touching code is all in one place. * Source/WebCore/platform/graphics/cg/GraphicsContextCG.h: * Source/WebKit/Shared/RemoteLayerTree/CGDisplayListImageBufferBackend.mm: (WebKit::GraphicsContextCGDisplayList::GraphicsContextCGDisplayList): Work around a confusion re: the base CTM with CGDisplayList image buffers by mapping the shadow parameters out through the hidden immutable base transform. We don't actually use the transform here, instead just faking it with the scale and flip, because we have no mechanism for mapping a size with negative values through an AffineTransform. Canonical link: https://commits.webkit.org/255442@main
- Loading branch information
1 parent
eeb0925
commit ff0ba2b
Showing
3 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters