summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-16 19:07:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-16 19:07:22 +0000
commit12822171aa7d5853b77d9e497c55cbc584c17606 (patch)
treee79677d205d04cf90c6de06f3fcceb590c1ed29b
parent33515fbec463e3038b3d54fb74fe4b51af1791c6 (diff)
downloadpdfium-12822171aa7d5853b77d9e497c55cbc584c17606.tar.xz
Move FX_LBUN shorthand codes from .h to .cpp file
They are not used outside of it. Change-Id: I0baa84c5a015621bc0ba211c2ddb01608997dc7d Reviewed-on: https://pdfium-review.googlesource.com/32633 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--xfa/fgas/layout/cfx_linebreak.cpp8
-rw-r--r--xfa/fgas/layout/cfx_linebreak.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fgas/layout/cfx_linebreak.cpp b/xfa/fgas/layout/cfx_linebreak.cpp
index 14352481bd..4c54c00742 100644
--- a/xfa/fgas/layout/cfx_linebreak.cpp
+++ b/xfa/fgas/layout/cfx_linebreak.cpp
@@ -8,6 +8,14 @@
#include "core/fxcrt/fx_unicode.h"
+#define FX_LBUN FX_LBT_UNKNOWN
+#define FX_LBDB FX_LBT_DIRECT_BRK
+#define FX_LBIB FX_LBT_INDIRECT_BRK
+#define FX_LBCB FX_LBT_COM_INDIRECT_BRK
+#define FX_LBCP FX_LBT_COM_PROHIBITED_BRK
+#define FX_LBPB FX_LBT_PROHIBITED_BRK
+#define FX_LBHS FX_LBT_HANGUL_SPACE_BRK
+
const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32] = {
{FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB,
FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB,
diff --git a/xfa/fgas/layout/cfx_linebreak.h b/xfa/fgas/layout/cfx_linebreak.h
index 8ba022e71e..ca2e4b5618 100644
--- a/xfa/fgas/layout/cfx_linebreak.h
+++ b/xfa/fgas/layout/cfx_linebreak.h
@@ -19,14 +19,6 @@ enum FX_LINEBREAKTYPE : uint8_t {
FX_LBT_HANGUL_SPACE_BRK = 0x6F,
};
-#define FX_LBUN FX_LBT_UNKNOWN
-#define FX_LBDB FX_LBT_DIRECT_BRK
-#define FX_LBIB FX_LBT_INDIRECT_BRK
-#define FX_LBCB FX_LBT_COM_INDIRECT_BRK
-#define FX_LBCP FX_LBT_COM_PROHIBITED_BRK
-#define FX_LBPB FX_LBT_PROHIBITED_BRK
-#define FX_LBHS FX_LBT_HANGUL_SPACE_BRK
-
extern const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32];
#endif // XFA_FGAS_LAYOUT_CFX_LINEBREAK_H_