summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-17 10:24:35 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-17 20:50:23 +0000
commitf8afce64b4226cfc38d4150dbe28c1964effa015 (patch)
treec365bda63efc168b57225b3c4f34c813c38e0449 /xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp
parenta3cf977f974c67bd2cef8dee5b810784bfc21336 (diff)
downloadpdfium-f8afce64b4226cfc38d4150dbe28c1964effa015.tar.xz
Shorten internal JS prefixes.
This Cl shortens the prefix applied in JavaScript to reduce the size of the generated JavaScript string. Change-Id: Ica5d02cc89b17140ba42deae72484cd159f8e3e5 Reviewed-on: https://pdfium-review.googlesource.com/5590 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp34
1 files changed, 9 insertions, 25 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp
index 3b4dc7017d..fdcb200a2b 100644
--- a/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp
@@ -13,31 +13,15 @@
namespace {
const wchar_t* const gs_lpStrExpFuncName[] = {
- L"foxit_xfa_formcalc_runtime.assign_value_operator",
- L"foxit_xfa_formcalc_runtime.logical_or_operator",
- L"foxit_xfa_formcalc_runtime.logical_and_operator",
- L"foxit_xfa_formcalc_runtime.equality_operator",
- L"foxit_xfa_formcalc_runtime.notequality_operator",
- L"foxit_xfa_formcalc_runtime.less_operator",
- L"foxit_xfa_formcalc_runtime.lessequal_operator",
- L"foxit_xfa_formcalc_runtime.greater_operator",
- L"foxit_xfa_formcalc_runtime.greaterequal_operator",
- L"foxit_xfa_formcalc_runtime.plus_operator",
- L"foxit_xfa_formcalc_runtime.minus_operator",
- L"foxit_xfa_formcalc_runtime.multiple_operator",
- L"foxit_xfa_formcalc_runtime.divide_operator",
- L"foxit_xfa_formcalc_runtime.positive_operator",
- L"foxit_xfa_formcalc_runtime.negative_operator",
- L"foxit_xfa_formcalc_runtime.logical_not_operator",
- L"foxit_xfa_formcalc_runtime.",
- L"foxit_xfa_formcalc_runtime.dot_accessor",
- L"foxit_xfa_formcalc_runtime.dotdot_accessor",
- L"foxit_xfa_formcalc_runtime.concat_fm_object",
- L"foxit_xfa_formcalc_runtime.is_fm_object",
- L"foxit_xfa_formcalc_runtime.is_fm_array",
- L"foxit_xfa_formcalc_runtime.get_fm_value",
- L"foxit_xfa_formcalc_runtime.get_fm_jsobj",
- L"foxit_xfa_formcalc_runtime.fm_var_filter",
+ L"pfm_rt.asgn_val_op", L"pfm_rt.log_or_op", L"pfm_rt.log_and_op",
+ L"pfm_rt.eq_op", L"pfm_rt.neq_op", L"pfm_rt.lt_op",
+ L"pfm_rt.le_op", L"pfm_rt.gt_op", L"pfm_rt.ge_op",
+ L"pfm_rt.plus_op", L"pfm_rt.minus_op", L"pfm_rt.mul_op",
+ L"pfm_rt.div_op", L"pfm_rt.pos_op", L"pfm_rt.neg_op",
+ L"pfm_rt.log_not_op", L"pfm_rt.", L"pfm_rt.dot_acc",
+ L"pfm_rt.dotdot_acc", L"pfm_rt.concat_obj", L"pfm_rt.is_obj",
+ L"pfm_rt.is_ary", L"pfm_rt.get_val", L"pfm_rt.get_jsobj",
+ L"pfm_rt.var_filter",
};
struct XFA_FMBuildInFunc {