[layout] Fold one function inline Preparation for fixing https://github.com/harfbuzz/harfbuzz/pull/1317