Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move HashCountedSet to WeakHashCountedSet in StyleGeneratedImage
https://bugs.webkit.org/show_bug.cgi?id=254835 rdar://107480319 Reviewed by Chris Dumez. Generated images should use a Weak container to keep track of RenderElements so that we don't trigger UAF issues. * Source/WebCore/html/CanvasBase.cpp: (WebCore:: const): * Source/WebCore/rendering/style/StyleCanvasImage.cpp: (WebCore::StyleCanvasImage::image const): (WebCore::StyleCanvasImage::canvasChanged): (WebCore::StyleCanvasImage::canvasResized): * Source/WebCore/rendering/style/StyleCrossfadeImage.cpp: (WebCore::StyleCrossfadeImage::imageChanged): * Source/WebCore/rendering/style/StyleFilterImage.cpp: (WebCore::StyleFilterImage::imageChanged): * Source/WebCore/rendering/style/StyleGeneratedImage.cpp: (WebCore::StyleGeneratedImage::addClient): (WebCore::StyleGeneratedImage::removeClient): (WebCore::StyleGeneratedImage::hasClient const): * Source/WebCore/rendering/style/StyleGeneratedImage.h: (WebCore::StyleGeneratedImage::clients const): (WebCore::StyleGeneratedImage:: const): Deleted. * Source/WebCore/rendering/style/StyleGradientImage.cpp: (WebCore::StyleGradientImage::image const): Canonical link: https://commits.webkit.org/262469@main
- Loading branch information
Showing
7 changed files
with
30 additions
and
21 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
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
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