summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpvt_lineinfo.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-05-10 14:01:25 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-10 14:01:25 +0000
commit35557c3ce83cc6e26f07cf5d5c520ee6afd39a67 (patch)
tree69a5c3322c00807c3e04fb5172cfc8b4a6c6f694 /core/fpdfdoc/cpvt_lineinfo.h
parentad18d2fba9dd5833a2e34bfe90c8e3c9a485e805 (diff)
downloadpdfium-35557c3ce83cc6e26f07cf5d5c520ee6afd39a67.tar.xz
Change formcalc javascript method output
This CL changes the formcalc JS conversion code so that method calls no longer generate exponential amounts of JavaScript. Previously we'd duplicate the code to call into a method twice. This would then generate twice once for arrays and once for other types of object. This CL changes the code to wrap the actual method call into a JavaScript function which will be used from both the array and non-array calling code. For the referenced bug, the generated JS originally needed a buffer of 365meg to generate. With this CL, it needs a buffer of 7.5k. Bug: chromium:814840 Change-Id: Ibb5993fa52b7c13b20b325cf8848a306f82ae014 Reviewed-on: https://pdfium-review.googlesource.com/32312 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpvt_lineinfo.h')
0 files changed, 0 insertions, 0 deletions