// Token: 0x06000314 RID: 788 RVA: 0x00008A70 File Offset: 0x00006C70
        internal static void AddOrRemoveHasLoadedChangeHandlerFlag(DependencyObject d, DependencyObject oldParent, DependencyObject newParent)
        {
            bool flag = BroadcastEventHelper.SubtreeHasLoadedChangeHandlerHelper(d);

            if (flag)
            {
                if (oldParent == null && newParent != null)
                {
                    BroadcastEventHelper.AddHasLoadedChangeHandlerFlagInAncestry(newParent);
                    return;
                }
                if (oldParent != null && newParent == null)
                {
                    BroadcastEventHelper.RemoveHasLoadedChangeHandlerFlagInAncestry(oldParent);
                }
            }
        }