/*
5 * Authors: see git history
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
20 auto ancestor = Inkscape::Algorithms::nearest_common_ancestor<Inkscape::XML::NodeConstParentIterator>(a, b,
nullptr);
42 }
else if (descendant == ancestor) {
45 descendant = descendant->
parent();
Interface for refcounted XML nodes.
virtual Node * parent()=0
Get the parent of this node.
static char const *const parent
@ DOCUMENT_NODE
Top-level document node. Do not confuse with the root node.
bool is_descendant_of(Inkscape::XML::Node const *descendant, Inkscape::XML::Node const *ancestor)
Inkscape::XML::Node const * lowest_common_ancestor(Inkscape::XML::Node const *a, Inkscape::XML::Node const *b)
Inkscape::XML::Node const * find_containing_child(Inkscape::XML::Node const *descendant, Inkscape::XML::Node const *ancestor)
TODO: insert short description here.