Lines Matching defs:ancestor
323 static SPObject const *AncestorSon(SPObject const *obj, SPObject const *ancestor) {
325 if ( obj && ancestor ) {
326 if (obj->parent == ancestor) {
329 result = AncestorSon(obj->parent, ancestor);
339 SPObject const *ancestor = first->nearestCommonAncestor(second);
340 // Need a common ancestor to be able to compare
341 if ( ancestor ) {
342 // we have an object and its ancestor (should not happen when sorting selection)
343 if (ancestor == first) {
345 } else if (ancestor == second) {
348 SPObject const *to_first = AncestorSon(first, ancestor);
349 SPObject const *to_second = AncestorSon(second, ancestor);