Revert "Remove the parsing limit in QSvgHandler"


This reverts commit b85a6475bffa4dbbc310e17ca9de5e745e8975e8.

Reason for revert: There are other functions that rely on recursion for
calculations. This change removes the safeguard that prevented this from
happening.

The test was modified to expect failure on 2048 nested elements or more,
since the parsing limit is reintroduced in this revert.

Task-number: QTBUG-148407
Pick-to: 6.12 6.11
Change-Id: Id2ffe1849da5eccd5e9c6036bac1b2120e60a47b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit487dc571a1c02e9ecc6ccf56eb2eafc99fc59375
parent4ad207e127fe7b8a52afcc452abf04e1383af006
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeTue, 28 Jul 2026 09:17:33 +0000