Everywhere: Replace miscellaneous references to the chrome process

This commit is contained in:
Timothy Flynn 2025-03-15 17:20:05 -04:00 committed by Tim Flynn
commit 3af63bc5a3
Notes: github-actions[bot] 2025-03-15 23:58:25 +00:00
10 changed files with 36 additions and 32 deletions

View file

@ -72,7 +72,7 @@ SourceHighlighterClient::SourceHighlighterClient(String const& source, Syntax::L
: m_document(SourceDocument::create(source))
{
// HACK: Syntax highlighters require a palette, but we don't actually care about the output styling, only the type of token for each span.
// Also, getting a palette from the chrome is nontrivial. So, create a dummy blank one and use that.
// Also, getting a palette from the UI is nontrivial. So, create a dummy blank one and use that.
auto buffer = MUST(Core::AnonymousBuffer::create_with_size(sizeof(Gfx::SystemTheme)));
auto palette_impl = Gfx::PaletteImpl::create_with_anonymous_buffer(buffer);
Gfx::Palette dummy_palette { palette_impl };