mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Everywhere: Replace miscellaneous references to the chrome process
This commit is contained in:
parent
d94bb99c50
commit
3af63bc5a3
Notes:
github-actions[bot]
2025-03-15 23:58:25 +00:00
Author: https://github.com/trflynn89
Commit: 3af63bc5a3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3959
Reviewed-by: https://github.com/awesomekling ✅
10 changed files with 36 additions and 32 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue