private static void AssertEdit(
     RenderTreeEdit edit,
     RenderTreeEditType type,
     int siblingIndex)
 {
     Assert.Equal(type, edit.Type);
     Assert.Equal(siblingIndex, edit.SiblingIndex);
 }
Example #2
0
        private RenderTreeEdit(RenderTreeEditType type, int siblingIndex, int referenceFrameOrMoveToSiblingIndex) : this()
        {
            Type         = type;
            SiblingIndex = siblingIndex;

            // MoveToSiblingIndex is stored in the same slot as ReferenceFrameIndex,
            // so assigning to either one is equivalent
            ReferenceFrameIndex = referenceFrameOrMoveToSiblingIndex;
        }
Example #3
0
 private RenderTreeEdit(RenderTreeEditType type, int siblingIndex, string removedAttributeName) : this()
 {
     Type                 = type;
     SiblingIndex         = siblingIndex;
     RemovedAttributeName = removedAttributeName;
 }
Example #4
0
 private RenderTreeEdit(RenderTreeEditType type, int siblingIndex) : this()
 {
     Type         = type;
     SiblingIndex = siblingIndex;
 }
Example #5
0
 private RenderTreeEdit(RenderTreeEditType type) : this()
 {
     Type = type;
 }
Example #6
0
 private RenderTreeEdit(RenderTreeEditType type, int siblingIndex, int referenceFrameIndex) : this()
 {
     Type                = type;
     SiblingIndex        = siblingIndex;
     ReferenceFrameIndex = referenceFrameIndex;
 }