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/cxfa_fftext.cpp | |
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/cxfa_fftext.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fftext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_fftext.cpp b/xfa/fxfa/cxfa_fftext.cpp index 453a74b3b9..3012ab9f5f 100644 --- a/xfa/fxfa/cxfa_fftext.cpp +++ b/xfa/fxfa/cxfa_fftext.cpp @@ -42,7 +42,7 @@ void CXFA_FFText::RenderWidget(CXFA_Graphics* pGS, CFX_RectF rtText = GetRectWithoutRotate(); CXFA_Margin* margin = m_pNode->GetMarginIfExists(); if (margin) { - CXFA_LayoutItem* pItem = this; + CXFA_ContentLayoutItem* pItem = this; if (!pItem->GetPrev() && !pItem->GetNext()) { XFA_RectWithoutMargin(&rtText, margin); } else { @@ -78,7 +78,7 @@ bool CXFA_FFText::PerformLayout() { return true; pTextLayout->m_Blocks.clear(); - CXFA_LayoutItem* pItem = this; + CXFA_ContentLayoutItem* pItem = this; if (!pItem->GetPrev() && !pItem->GetNext()) return true; |