LibWeb: Skip backing store allocation for traversables created for SVG

Recently, we moved the backing store manager into Navigable, which means
we now try to allocate a backing store for all navigables, including
those corresponding to SVG image documents. This change disables that
behavior for all navigables except top-level non-SVG traversables,
because otherwise it causes issues when we stop repainting: the browser
process was notified about an allocated backing stores that does not
correspond to the page, and then all subsequent repaints are ignored
until the window is resized.
This commit is contained in:
Aliaksandr Kalenik 2025-07-12 23:38:18 +02:00 committed by Alexander Kalenik
commit 4f9aca4302
Notes: github-actions[bot] 2025-07-12 22:07:43 +00:00
2 changed files with 5 additions and 0 deletions

View file

@ -220,6 +220,8 @@ public:
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
bool is_svg_page() const { return m_is_svg_page; }
template<typename T>
bool fast_is() const = delete;