Support linked ("parent") layers of any index number


The implementation used index number 0 as a special value indicating
no linked layer. But both 0 and negative numbers are possible valid
index numbers in Lottie files. Fix by explicitly storing whether a
layer has a linked layer set or not.

Also changes a variable name from "parentLayer" to "linkedLayer", so
the code consistently uses the latter term for this feature, and
avoids confusion with the parent/child relationships in the element
tree.

Change-Id: I56dd206aebd4d12a851b3f5d42b9040b07eaca1c
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit9ae9a8c1c068506920ec9ae6ba83e82b453e3aec
parente558cdc22360fd41964bb4dde5cb708575a60e15
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeThu, 15 May 2025 08:49:29 +0200