summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_annot.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-13 21:26:56 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-13 21:26:56 +0000
commit8e631772e34256ca2f3bb86a1e23cca34fe8d4fa (patch)
tree9db04b7412a6f2cd3339c508712e6a97cee7096e /fpdfsdk/cpdfsdk_annot.h
parent571053a44f876fe970dd85ee61483b6846a2f383 (diff)
downloadpdfium-8e631772e34256ca2f3bb86a1e23cca34fe8d4fa.tar.xz
Collapse some more xfa/non-xfa code in cpdfsdk annots.chromium/3459chromium/3458
cpdfsdk_annot.cpp:315 and cpdfsdk_annot.cpp:338 are nearly identical, except that the #ifdef XFA code passed along the correct type from the argument. Prefer this behaviour even when non-XFA. Change-Id: Id4d5fbcc773ffd10746c4ddc77a571e818e5a957 Reviewed-on: https://pdfium-review.googlesource.com/35030 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_annot.h')
-rw-r--r--fpdfsdk/cpdfsdk_annot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_annot.h b/fpdfsdk/cpdfsdk_annot.h
index 2d97f0870c..459c6d0233 100644
--- a/fpdfsdk/cpdfsdk_annot.h
+++ b/fpdfsdk/cpdfsdk_annot.h
@@ -45,7 +45,7 @@ class CPDFSDK_Annot : public Observable<CPDFSDK_Annot> {
virtual CFX_FloatRect GetRect() const;
virtual void SetRect(const CFX_FloatRect& rect);
- IPDF_Page* GetPage();
+ IPDF_Page* GetPage(); // Returns XFA Page if possible, else PDF page.
CPDF_Page* GetPDFPage();
#ifdef PDF_ENABLE_XFA
CPDFXFA_Page* GetPDFXFAPage();