diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-05-07 22:44:26 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-07 22:44:26 +0000 |
commit | c732e9aa64a82c06c0ad369088d0481dd2636b86 (patch) | |
tree | e496e58b0c2676e8182a7e01f68742037a1fb814 /testing/resources/pixel | |
parent | aff0dfd7f4b8644ff34a4e4334ee2b25555a6e7a (diff) | |
download | pdfium-c732e9aa64a82c06c0ad369088d0481dd2636b86.tar.xz |
Restore logic of CreateChildUIAndValueNodesIfNeeded().
CreateUIChild() was changed and renamed to
CreateChildUIAndValueNodesIfNeeded() in:
https://pdfium-review.googlesource.com/c/pdfium/+/24390
This caused some bugs but it's too far back for a rollback.
This cl restores the logic of CreateUIChild() keeping the new
signature.
Bug: chromium:838994
Change-Id: I44ce741fdb90f8b0fd11379b5e881e376c307f0c
Reviewed-on: https://pdfium-review.googlesource.com/32090
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/resources/pixel')
-rw-r--r-- | testing/resources/pixel/xfa_specific/xfa_rectangle_node.in | 77 | ||||
-rw-r--r-- | testing/resources/pixel/xfa_specific/xfa_rectangle_node_expected.pdf.0.png | bin | 0 -> 3795 bytes |
2 files changed, 77 insertions, 0 deletions
diff --git a/testing/resources/pixel/xfa_specific/xfa_rectangle_node.in b/testing/resources/pixel/xfa_specific/xfa_rectangle_node.in new file mode 100644 index 0000000000..c2f7875b9e --- /dev/null +++ b/testing/resources/pixel/xfa_specific/xfa_rectangle_node.in @@ -0,0 +1,77 @@ +{{header}} + +%% Original object ID: 24 0 +{{object 1 0}} +<< + /AcroForm 2 0 R + /Extensions << + /ADBE << + /BaseVersion /1.7 + /ExtensionLevel 8 + >> + >> + /NeedsRendering true + /Type /Catalog +>> +endobj + +%% Original object ID: 32 0 +{{object 2 0}} +<< + /XFA [ + (preamble) + 3 0 R + (config) + 4 0 R + (template) + 5 0 R + (localeSet) + 6 0 R + (postamble) + 7 0 R + ] +>> +endobj + +{{xfapreamble 3 0}} +{{xfaconfig 4 0}} + +{{object 5 0}} +<< + {{streamlen}} +>> +stream +<template xmlns="http://www.xfa.org/schema/xfa-template/3.3/"> + <subform name="form1" layout="tb" locale="en_US" restoreState="auto"> + <pageSet> + <pageArea name="Page1" id="Page1"> + <contentArea x="18pt" y="18pt" w="612pt" h="792pt"/> + <medium stock="default" short="612pt" long="792pt"/> + </pageArea> + </pageSet> + <subform w="576pt" h="756pt" name="Page1"> + <draw h="11.43mm" name="Rectangle3" w="30.48mm" x="170.18mm" y="65.868mm"> + <ui> + <defaultUi /> + </ui> + <value> + <rectangle> + <corner radius="5.08mm" /> + <edge /> + </rectangle> + </value> + </draw> + </subform> + </subform> +</template> +endstream +endobj + +{{xfalocale 6 0}} + +{{xfapostamble 7 0}} + +{{xref}} +{{trailer}} +{{startxref}} +%%EOF diff --git a/testing/resources/pixel/xfa_specific/xfa_rectangle_node_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/xfa_rectangle_node_expected.pdf.0.png Binary files differnew file mode 100644 index 0000000000..a7eb49eec8 --- /dev/null +++ b/testing/resources/pixel/xfa_specific/xfa_rectangle_node_expected.pdf.0.png |