diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-30 21:50:07 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-30 21:50:07 +0000 |
commit | 87c1fdcc9a5669e29c4440e2b220587de7134e7a (patch) | |
tree | cf890e10d6233205505a0d89eae13b3bd0deba14 /xfa/fxfa/parser/cxfa_contentlayoutitem.h | |
parent | 649e059f5fe93c0de53aaa48a74068703df46301 (diff) | |
download | pdfium-87c1fdcc9a5669e29c4440e2b220587de7134e7a.tar.xz |
Don't static_cast<>(this) to subclass in CXFA_LayoutItem methods.chromium/3508
Instead, move the methods to the subclass where they belong.
Fix IWYU in CJX_Object.h to fix compilation.
Change-Id: I4c71f28235b9cf5000e9ddaf33d6602baf22205f
Reviewed-on: https://pdfium-review.googlesource.com/39170
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_contentlayoutitem.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_contentlayoutitem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_contentlayoutitem.h b/xfa/fxfa/parser/cxfa_contentlayoutitem.h index 500d3e4959..c7c440f9c2 100644 --- a/xfa/fxfa/parser/cxfa_contentlayoutitem.h +++ b/xfa/fxfa/parser/cxfa_contentlayoutitem.h @@ -14,6 +14,15 @@ class CXFA_ContentLayoutItem : public CXFA_LayoutItem { explicit CXFA_ContentLayoutItem(CXFA_Node* pNode); ~CXFA_ContentLayoutItem() override; + CXFA_ContentLayoutItem* GetFirst(); + CXFA_ContentLayoutItem* GetLast(); + CXFA_ContentLayoutItem* GetPrev() const { return m_pPrev; } + CXFA_ContentLayoutItem* GetNext() const { return m_pNext; } + + CFX_RectF GetRect(bool bRelative) const; + int32_t GetIndex() const; + int32_t GetCount() const; + CXFA_ContentLayoutItem* m_pPrev; CXFA_ContentLayoutItem* m_pNext; CFX_PointF m_sPos; |