summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2017-01-05 13:39:50 -0800
committerCommit bot <commit-bot@chromium.org>2017-01-05 13:39:50 -0800
commit2f55999b499fb80ba9987154cfe0c87cf2b8a1e5 (patch)
treea7255fd29d13ea2fedc2d166e5091e0ace06bd5e /core
parent73cb5c454852e159c85f90a63f7f970374505819 (diff)
downloadpdfium-2f55999b499fb80ba9987154cfe0c87cf2b8a1e5.tar.xz
Banish CFX_Points, CFX_PointsF, and CFX_RectFArray to XFA-side only.
Removes more array template usage fron non-XFA code. Review-Url: https://codereview.chromium.org/2614013002
Diffstat (limited to 'core')
-rw-r--r--core/fxcrt/fx_coordinates.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h
index 19abde1921..d8ad4efe48 100644
--- a/core/fxcrt/fx_coordinates.h
+++ b/core/fxcrt/fx_coordinates.h
@@ -74,8 +74,11 @@ typedef CFX_PSTemplate<int32_t> CFX_Point;
typedef CFX_PSTemplate<FX_FLOAT> CFX_PointF;
typedef CFX_PSTemplate<int32_t> CFX_Size;
typedef CFX_PSTemplate<FX_FLOAT> CFX_SizeF;
+
+#ifdef PDF_ENABLE_XFA
typedef CFX_ArrayTemplate<CFX_Point> CFX_Points;
typedef CFX_ArrayTemplate<CFX_PointF> CFX_PointsF;
+#endif // PDF_ENABLE_XFA
template <class BaseType>
class CFX_VTemplate : public CFX_PSTemplate<BaseType> {
@@ -432,7 +435,10 @@ class CFX_RTemplate {
};
typedef CFX_RTemplate<int32_t> CFX_Rect;
typedef CFX_RTemplate<FX_FLOAT> CFX_RectF;
+
+#ifdef PDF_ENABLE_XFA
typedef CFX_ArrayTemplate<CFX_RectF> CFX_RectFArray;
+#endif // PDF_ENABLE_XFA
class CFX_FloatRect {
public: