summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_layoutitem.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-02-04 11:12:46 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-06 16:52:23 +0000
commite5f4f22e4c67f40123bca91c2213223cc5a12ebd (patch)
tree6edca38b1c3aedeee265917c7b984f5256b3e6f2 /xfa/fxfa/parser/cxfa_layoutitem.h
parentaaf0bdc5bf420d08dfcbb049c4511c55eec0dd6c (diff)
downloadpdfium-e5f4f22e4c67f40123bca91c2213223cc5a12ebd.tar.xz
Cleanup xfa layout code
Split XFA layout code into correct files, move static methods into anonymous namespace blocks. Cleanup formatting where possible. Change-Id: Ia342d7db42f947db02a52aa86bfa69e4fda916fd Reviewed-on: https://pdfium-review.googlesource.com/2512 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutitem.h')
-rw-r--r--xfa/fxfa/parser/cxfa_layoutitem.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutitem.h b/xfa/fxfa/parser/cxfa_layoutitem.h
index 5991cd6f3e..00f1917433 100644
--- a/xfa/fxfa/parser/cxfa_layoutitem.h
+++ b/xfa/fxfa/parser/cxfa_layoutitem.h
@@ -25,15 +25,13 @@ class CXFA_LayoutItem {
CXFA_ContentLayoutItem* AsContentLayoutItem();
CXFA_ContainerLayoutItem* GetPage() const;
- CXFA_Node* GetFormNode() const;
+ CXFA_Node* GetFormNode() const { return m_pFormNode; }
void GetRect(CFX_RectF& rtLayout, bool bRelative = false) const;
int32_t GetIndex() const;
int32_t GetCount() const;
- CXFA_LayoutItem* GetParent() const;
- const CXFA_LayoutItem* GetFirst() const;
+ CXFA_LayoutItem* GetParent() const { return m_pParent; }
CXFA_LayoutItem* GetFirst();
const CXFA_LayoutItem* GetLast() const;
- CXFA_LayoutItem* GetLast();
CXFA_LayoutItem* GetPrev() const;
CXFA_LayoutItem* GetNext() const;