Fix <use> element not working inside <symbol>, <marker>, and <pattern>


The createUseNode() function only allowed <use> elements inside Doc,
Defs, Group, Switch, and Mask parent nodes. However, <use> is also
valid inside <symbol>, <marker>, and <pattern> elements per the SVG
specification. All three inherit from QSvgStructureNode, so the
static_cast is safe.

Without this fix, any <use> element nested inside these containers
was silently ignored with a "wrong context" warning, and the
referenced content was not rendered.

Pick-to: 6.11
Change-Id: I1c05a4eb6b11218da11473570853031220e6b5e9
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commitae222e37919fcb4ec316b79fc868ffabf3a8b322
parente882b114c39f4c5a7e2ca3dba417d57acb445cab
authorVladimir Belyavsky <belyavskyv@gmail.com>
committerVladimir Belyavsky <belyavskyv@gmail.com>
commit timeTue, 5 May 2026 11:15:00 +0000