diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2023-05-06 12:46:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-08 14:47:52 +0200 |
commit | c719a542c5a51016124040b7c092cba946b538fd (patch) | |
tree | 7c8f78702f94b722221b3055280858cde33720a4 /Ladybird/FontPluginQt.h | |
parent | af26b76e0accf6eb7ef673b02501ba2c235a991b (diff) | |
download | serenity-c719a542c5a51016124040b7c092cba946b538fd.zip |
LibWeb: Add `--layout-test-mode` flag to HeadlessBrowser
The `layout-test-mode` flag changes the font to be SerenitySans as this
is the font used for layout tests for cross-platform compatibility of
tests.
Diffstat (limited to 'Ladybird/FontPluginQt.h')
-rw-r--r-- | Ladybird/FontPluginQt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ladybird/FontPluginQt.h b/Ladybird/FontPluginQt.h index 35a577aed3..984628855f 100644 --- a/Ladybird/FontPluginQt.h +++ b/Ladybird/FontPluginQt.h @@ -14,7 +14,7 @@ namespace Ladybird { class FontPluginQt final : public Web::Platform::FontPlugin { public: - FontPluginQt(); + FontPluginQt(bool is_layout_test_mode); virtual ~FontPluginQt(); virtual Gfx::Font& default_font() override; @@ -27,6 +27,7 @@ private: Vector<DeprecatedString> m_generic_font_names; RefPtr<Gfx::Font> m_default_font; RefPtr<Gfx::Font> m_default_fixed_width_font; + bool m_is_layout_test_mode { false }; }; } |