1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibHTML: RenderingContext should keep the Palette alive

We were lugging around a reference to a temporary here.
This commit is contained in:
Andreas Kling 2019-12-29 12:01:24 +01:00
parent 985d906189
commit ffbe975ffc

View file

@ -24,7 +24,7 @@ public:
private:
GPainter& m_painter;
const Palette& m_palette;
Palette m_palette;
Rect m_viewport_rect;
bool m_should_show_line_box_borders { false };
};