Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5f7ab494f00fa5a696fcd9fddbe70cc01c926734
https://github.com/WebKit/WebKit/commit/5f7ab494f00fa5a696fcd9fddbe70cc01c926734
Author: Vitor Roriz <[email protected]>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M Source/WebCore/platform/graphics/FontCascadeDescription.cpp
M Source/WebCore/platform/graphics/FontCascadeDescription.h
M Source/WebCore/rendering/RenderText.cpp
M Source/WebCore/style/StyleBuilderCustom.h
M Source/WebCore/style/StyleBuilderStateInlines.h
M Source/WebCore/style/StyleResolveForFont.cpp
M
Source/WebCore/style/computed/StyleComputedStyleProperties+GettersCustomInlines.h
M Source/WebCore/style/values/fonts/StyleFontFamily.h
Log Message:
-----------
FontCascadeDescription: Rename isSpecifiedFont to
hasAuthorSpecifiedNonGenericPrimaryFont
https://bugs.webkit.org/show_bug.cgi?id=310759
rdar://173363991
Reviewed by Elika Etemad.
In Japanese encodings (EUC-JP, Shift_JIS, etc.), the backslash byte (0x5C)
maps to the yen sign. When the CSS author explicitly chose a non-generic
primary font, WebKit respects that font's backslash glyph rather than
substituting yen. This flag tracks that provenance, so rename it to make
its purpose clear.
* Source/WebCore/platform/graphics/FontCascadeDescription.cpp:
(WebCore::FontCascadeDescription::FontCascadeDescription):
(WebCore::operator<<):
* Source/WebCore/platform/graphics/FontCascadeDescription.h:
(WebCore::FontCascadeDescription::hasAuthorSpecifiedNonGenericPrimaryFont
const):
(WebCore::FontCascadeDescription::setHasAuthorSpecifiedNonGenericPrimaryFont):
(WebCore::FontCascadeDescription::operator== const):
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::RenderText::computeUseBackslashAsYenSymbol const):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyInitialFontFamily):
* Source/WebCore/style/StyleBuilderStateInlines.h:
(WebCore::Style::BuilderState::setFontDescriptionFamilies):
* Source/WebCore/style/StyleResolveForFont.cpp:
(WebCore::Style::fontFamilyFromUnresolvedFontFamily):
(WebCore::Style::resolveForUnresolvedFont):
*
Source/WebCore/style/computed/StyleComputedStyleProperties+GettersCustomInlines.h:
(WebCore::Style::ComputedStyleProperties::fontFamily const):
* Source/WebCore/style/values/fonts/StyleFontFamily.h:
Canonical link: https://commits.webkit.org/309956@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications