summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-node.h
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-09-11 14:29:13 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-09-11 14:29:13 +0000
commita4530a981342d92a0a5226a87734753d60d56f93 (patch)
tree06a932cfcd4b0ee2bc0c933e3670d7943e8a1803 /src/xml/simple-node.h
parentFix bug 1684238 (diff)
downloadinkscape-a4530a981342d92a0a5226a87734753d60d56f93.tar.gz
inkscape-a4530a981342d92a0a5226a87734753d60d56f93.zip
Make XML tree a double-linked-list (significant improvement on previous node lookup)
Diffstat (limited to 'src/xml/simple-node.h')
-rw-r--r--src/xml/simple-node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xml/simple-node.h b/src/xml/simple-node.h
index d7ea1f16d..97e0b1d89 100644
--- a/src/xml/simple-node.h
+++ b/src/xml/simple-node.h
@@ -62,6 +62,8 @@ public:
Node *next() override { return _next; }
Node const *next() const override { return _next; }
+ Node *prev() override { return _prev; }
+ Node const *prev() const override { return _prev; }
Node *firstChild() override { return _first_child; }
Node const *firstChild() const override { return _first_child; }
@@ -139,6 +141,7 @@ private:
SimpleNode *_parent;
SimpleNode *_next;
+ SimpleNode *_prev;
Document *_document;
mutable unsigned _cached_position;