[webkit-changes] [WebKit/WebKit] 0b2ad9: Use WeakPtr to store CSSFontFace::Client and FontS...
Ryosuke Niwa
noreply at github.com
Thu Jan 19 16:22:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0b2ad9a154b0e9e3b86c932f976164c2cbbfc90f
https://github.com/WebKit/WebKit/commit/0b2ad9a154b0e9e3b86c932f976164c2cbbfc90f
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2023-01-19 (Thu, 19 Jan 2023)
Changed paths:
M Source/WebCore/css/CSSFontFace.cpp
M Source/WebCore/css/CSSFontFace.h
M Source/WebCore/css/CSSFontSelector.h
M Source/WebCore/css/FontFace.h
M Source/WebCore/platform/graphics/FontCache.cpp
M Source/WebCore/platform/graphics/FontCache.h
M Source/WebCore/platform/graphics/FontSelector.h
Log Message:
-----------
Use WeakPtr to store CSSFontFace::Client and FontSelector
https://bugs.webkit.org/show_bug.cgi?id=250756
Reviewed by Chris Dumez.
Use WeakPtr instead of raw pointers to keep track of CSSFontFace::Client and FontSelector.
* Source/WebCore/css/CSSFontFace.cpp:
(WebCore::iterateClients):
(WebCore::CSSFontFace::addClient):
(WebCore::CSSFontFace::removeClient):
* Source/WebCore/css/CSSFontFace.h:
* Source/WebCore/css/CSSFontSelector.h:
* Source/WebCore/css/FontFace.h:
* Source/WebCore/platform/graphics/FontCache.cpp:
(WebCore::FontCache::addClient):
(WebCore::FontCache::removeClient):
(WebCore::FontCache::invalidate):
* Source/WebCore/platform/graphics/FontCache.h:
* Source/WebCore/platform/graphics/FontSelector.h:
Canonical link: https://commits.webkit.org/259118@main
More information about the webkit-changes
mailing list