
The constructor would call the CTFontWithSpec method before the object was constructed at all, which trips -fsanitize=vptr. However the method never actually accessed `this`. It should simply have been static the whole time. This fixes errors like the following: https://ci.chromium.org/ui/labs/p/chromium/inv/build-8737084650289924497/test/ninja%3A%2F%2Fui%2Fgfx%3Agfx_unittests%2FFontTest.Ascent/variant/5ed0314f10d9734f?resultIndex=0 Probably also a hair more efficient too, as we won't need to waste a register on an unused parameter in the calling convention. Bug: 40248746 Change-Id: I4441dbf8090fa2e2d013a24afabae2702a2915a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5856619 Reviewed-by: Robert Liao <robliao@chromium.org> Auto-Submit: David Benjamin <davidben@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/main@{#1354854}
This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).