Check null parent before using because we allow View to have null parent.