diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-23 21:38:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-23 21:38:28 +0000 |
commit | 5ff1ddeb54a425e1af25607646697e93a39bd51d (patch) | |
tree | 31266c1e22ab146883cc165bc7925a341ce28a9d /core/fxge/cfx_gemodule.h | |
parent | 401077e47c49c3b1cb865ee6f1f29a931a6ca45b (diff) | |
download | pdfium-5ff1ddeb54a425e1af25607646697e93a39bd51d.tar.xz |
Test color.convert() and equal() from JS (and fix comparison logic).
Currently, color.equal(a, b) may not give the same result as
color.equal(b, a) since arg1 is converted to be the type of
arg2, and some of these conversions lose information. Instead
promote to the type with the most components in the hope of
preserving the most information.
Better error message when there are the right number of parameters
but the types are wrong.
Change-Id: I1d93fa29db4fb65e0f7c07c3ba7d9ca87ebf7bc9
Reviewed-on: https://pdfium-review.googlesource.com/c/44413
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_gemodule.h')
0 files changed, 0 insertions, 0 deletions