summaryrefslogtreecommitdiff
path: root/xfa/fxfa/README.md
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-07-05 16:20:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-05 16:20:28 +0000
commit3fab31fb8e35eca693322ac292228e993b508102 (patch)
tree1a3e5986b50f9fad72a17258199c76f5862841a1 /xfa/fxfa/README.md
parent86b4f67d40c351ea8e67ba7b7dcc9d8dd7ad371e (diff)
downloadpdfium-3fab31fb8e35eca693322ac292228e993b508102.tar.xz
Clean up ProcessFormatTestValidate
The existing implementation was overly complex and hard to understand, so this simplifies the logic. As part of this a number of issues, such as the lack of a failure path, have been resolved. The spec implies that a picture clause of "" should only accept the empty string, but existing implementation returns that validation does exist. This is due to the GetPicture() method returning a string, instead of a pointer or an Optional, so there is no mechanism to differentiate between a clause with an empty string and the clause not being present. This CL maintains the existing behaviour, because there may be code elsewhere that depends on it. The existing implementation returns validation not existing if the node under test is non-interactive. Though this seems intuitively correct, it is problematic, because this logic isn't just called via an interaction with the node. The validity check could be initiated by a call from JS attached to an event or a different node. Thus it is possible for a node under test to be non-interactive, but the result of the test is still important. The caller may make the node interactive if it isn't valid, for example. The spec doesn't state anything about interactivity controlling if validity checks run. This CL removes the related logic, since it was causing issues with an example PDF from the wild. BUG=pdfium:1065 Change-Id: Icb5b97e0d90f6fbc7ad6b87d81e256803c757eb0 Reviewed-on: https://pdfium-review.googlesource.com/37131 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/README.md')
0 files changed, 0 insertions, 0 deletions