Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete RenderTheme::cachedSystemFontDescription() because it does not…
…hing https://bugs.webkit.org/show_bug.cgi?id=241329 Reviewed by Cameron McCormack. RenderTheme::cachedSystemFontDescription() is supposed to maintain storage for cached font descriptors. However, every time this storage is referenced, it is immediately copied from, leaving the storage in its default uninitialized state. There's no point in keeping default initialized objects around for no reason. This is the second piece in a sequence of patches to fix the accessibility bold setting in web content. * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::consumeSystemFont): * Source/WebCore/rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::getReplacementTextGeometry const): * Source/WebCore/rendering/RenderTheme.cpp: (WebCore::RenderTheme::cachedSystemFontDescription const): Deleted. (WebCore::RenderTheme::systemFont const): Deleted. * Source/WebCore/rendering/RenderTheme.h: (WebCore::RenderTheme::canPaint const): * Source/WebCore/rendering/RenderThemeAdwaita.h: * Source/WebCore/rendering/RenderThemeCocoa.h: * Source/WebCore/rendering/RenderThemeCocoa.mm: (WebCore::RenderThemeCocoa::systemFont const): (WebCore::RenderThemeCocoa::cachedSystemFontDescription const): Deleted. (WebCore::RenderThemeCocoa::updateCachedSystemFontDescription const): Deleted. * Source/WebCore/rendering/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::systemFont const): (WebCore::RenderThemeGtk::updateCachedSystemFontDescription const): Deleted. * Source/WebCore/rendering/RenderThemeGtk.h: * Source/WebCore/rendering/RenderThemePlayStation.cpp: (WebCore::RenderThemePlayStation::systemFont const): (WebCore::RenderThemePlayStation::updateCachedSystemFontDescription const): Deleted. * Source/WebCore/rendering/RenderThemePlayStation.h: * Source/WebCore/rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::systemFont const): (WebCore::fillFontDescription): Deleted. (WebCore::RenderThemeWin::updateCachedSystemFontDescription const): Deleted. * Source/WebCore/rendering/RenderThemeWin.h: Canonical link: https://commits.webkit.org/251350@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
14 changed files
with
43 additions
and
129 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
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