X is left-child and parent is right-child? (zig-zag)
X is right-child and parent is left-child? (zag-zig)
X and parent are both left children? (zig-zig)
X and parent are both right children? (zag-zag)
Adapted from Chapter 13 of Introduction to Algorithms, 2nd Edition by Cormen, Leiserson, Rivest, and Stein, and notes of unknown provenance.