diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-13 19:57:33 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-13 19:57:33 +0000 |
commit | 1e364c42c16d1688eef4c1faa9d0929564cea04f (patch) | |
tree | 1c0855c4a9d124f5f9899d218c80267dd5131a00 /xfa/fxfa/parser/cxfa_node.h | |
parent | 7045ea7bf62216232d0163461ec68b12aa5cd337 (diff) | |
download | pdfium-1e364c42c16d1688eef4c1faa9d0929564cea04f.tar.xz |
Add previous sibling pointer to CXFA_Node
This CL adds a prev_sibling_ pointer into CXFA_Node and updates the code
as needed.
Change-Id: I3125f59780da34dc26a176c7264a31335be528fe
Reviewed-on: https://pdfium-review.googlesource.com/26410
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 7362c206bd..e800c3c0c3 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -179,7 +179,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* Clone(bool bRecursive); CXFA_Node* GetNextSibling() const { return next_sibling_; } - CXFA_Node* GetPrevSibling() const; + CXFA_Node* GetPrevSibling() const { return prev_sibling_; } CXFA_Node* GetFirstChild() const { return first_child_; } CXFA_Node* GetLastChild() const { return last_child_; } CXFA_Node* GetParent() const { return parent_; } @@ -499,6 +499,7 @@ class CXFA_Node : public CXFA_Object { // order that doesn't necessarily match up to the tree structure. CXFA_Node* parent_; CXFA_Node* next_sibling_; + CXFA_Node* prev_sibling_; CXFA_Node* first_child_; CXFA_Node* last_child_; |