[webkit-changes] [WebKit/WebKit] 26968a: [WebCore] Shrink FontDescription
Tadeu Zagallo
noreply at github.com
Mon Feb 20 13:25:34 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 26968a0b0a522e031d2d2e5887d1e16f089caecb
https://github.com/WebKit/WebKit/commit/26968a0b0a522e031d2d2e5887d1e16f089caecb
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-02-20 (Mon, 20 Feb 2023)
Changed paths:
M Source/WebCore/platform/graphics/FontCascadeDescription.cpp
M Source/WebCore/platform/graphics/FontDescription.h
Log Message:
-----------
[WebCore] Shrink FontDescription
https://bugs.webkit.org/show_bug.cgi?id=252478
rdar://105594136
Reviewed by Simon Fraser.
Use `WTF::Marked` instead of `std::optional` in `FontDescription::sizeAdjust` to
reduce its size from 216 to 208 bytes. Consequently, this shrinks `StyleRareData`
from 320 to 304 bytes, which takes it from the 352b to the 304b size class.
* Source/WebCore/platform/graphics/FontCascadeDescription.cpp:
* Source/WebCore/platform/graphics/FontDescription.h:
(WebCore::FloatMarkableTraits::isEmptyValue):
(WebCore::FloatMarkableTraits::emptyValue):
Canonical link: https://commits.webkit.org/260564@main
More information about the webkit-changes
mailing list