Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 53b998c6b1e82fdc2e8c24a2b1026d96722ed011
https://github.com/WebKit/WebKit/commit/53b998c6b1e82fdc2e8c24a2b1026d96722ed011
Author: Vitor Roriz <[email protected]>
Date: 2026-02-14 (Sat, 14 Feb 2026)
Changed paths:
M Source/WebCore/platform/graphics/FontCascade.cpp
M Source/WebCore/platform/graphics/FontCascadeFonts.cpp
M Source/WebCore/platform/graphics/TextMeasurementCache.h
Log Message:
-----------
Change TextMeasurementCache::add to receive TextShapingContext instead of
individual properties
rdar://170357105
https://bugs.webkit.org/show_bug.cgi?id=307870
Reviewed by Sammy Gill.
It is better to encapsulate the properties in a context
as we don't have to compute the flags at each caller as we do now.
* Source/WebCore/platform/graphics/FontCascade.cpp:
(WebCore::TextShapingContext::TextShapingContext):
(WebCore::FontCascade::width const):
* Source/WebCore/platform/graphics/FontCascadeFonts.cpp:
(WebCore::FontCascadeFonts::getOrCreateCachedShapedText):
* Source/WebCore/platform/graphics/TextMeasurementCache.h:
(WebCore::TextMeasurementCache::add):
Canonical link: https://commits.webkit.org/307603@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications