UnsafeSetNodes() 정적인 개인적인 메소드

static private UnsafeSetNodes ( CssBox childNode, CssBox parent, LinkedListNode linkNode ) : void
childNode CssBox
parent CssBox
linkNode LinkedListNode
리턴 void
예제 #1
0
        public void Remove(CssBox box)
        {
            var linkedNode = CssBox.UnsafeGetLinkedNode(box);

            this._boxes.Remove(linkedNode);
            CssBox.UnsafeSetNodes(box, null, null);
        }
예제 #2
0
        public void InsertBefore(CssBox owner, CssBox beforeBox, CssBox box)
        {
            var beforeLinkedNode = CssBox.UnsafeGetLinkedNode(beforeBox);

            CssBox.UnsafeSetNodes(box, owner,
                                  this._boxes.AddBefore(beforeLinkedNode, box));
        }
예제 #3
0
        public void AddChild(CssBox owner, CssBox box)
        {
#if DEBUG
            if (owner == box)
            {
                throw new NotSupportedException();
            }
#endif
            CssBox.UnsafeSetNodes(box, owner, _boxes.AddLast(box));
        }
예제 #4
0
        public void dbugChangeSiblingIndex(CssBox owner, CssBox box, int newIndex)
        {
            //for compat with old version
            //find target linked node
            LinkedListNode <CssBox> foundNode = this.dbugGetNodeAtIndex(newIndex);

            //1. remove from current box
            this.Remove(box);
            //2.
            CssBox.UnsafeSetNodes(box, owner, this._boxes.AddBefore(foundNode, box));
        }