pdf.js/src/core
Tim van der Meij 980aa10e04 Refactor annotation rectangle code and add unit tests
This patch refactors the code responsible for setting the annotation's rectangle. Its goal is to:

- Actually check that the input array is actually an array, and if so, that it contains exactly four elements.
- Only call `normalizeRect` if the input array is valid, i.e., we do not call it for the default rectangle anymore.

Unit tests are provided just like with the other patches in this series.
2015-07-20 22:01:47 +02:00
..
annotation.js Refactor annotation rectangle code and add unit tests 2015-07-20 22:01:47 +02:00
arithmetic_decoder.js cleaned whitespace 2015-02-17 11:07:37 -05:00
bidi.js cleaned whitespace 2015-02-17 11:07:37 -05:00
charsets.js cleaned whitespace 2015-02-17 11:07:37 -05:00
chunked_stream.js Merge pull request #4990 from fkaelberer/refactor_chunked_stream 2015-07-13 16:51:35 -07:00
cmap.js Attempt to infer if a CMap file actually contains just a standard Identity-H/Identity-V map 2015-04-25 11:28:33 +02:00
colorspace.js Ensure that we fetch all indirect objects (i.e. |Ref|s) in ColorSpace_parseToIR 2015-06-19 10:34:27 +02:00
core.js Simplify annotation data passing 2015-07-19 14:02:49 +02:00
crypto.js Convert UTF8 encoded passwords to ISO-8859-1 for |R = 6| encryption (issue 6010) 2015-05-14 21:46:31 +02:00
evaluator.js Ignore paint form XObject when the name is missing (issue 4558) 2015-06-22 22:10:26 +02:00
font_renderer.js cleaned whitespace 2015-02-17 11:07:37 -05:00
fonts.js Merge pull request #6166 from Snuffleupagus/issue-5801-2 2015-07-10 22:29:50 +02:00
function.js Ensure that the result of |constructStichedFromIRResult| is a number (issue 6113) 2015-06-14 23:29:38 +02:00
glyphlist.js Add basic support for ZapfDingbats 2014-09-03 21:54:04 +02:00
image.js Apply the GRAYSCALE_1BPP optimization when needsDecode is set. 2014-08-18 16:45:19 -07:00
jbig2.js avoid out of range array access in JBIG2 decoder 2015-01-23 23:50:09 +01:00
jpg.js Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761) 2015-03-10 13:07:09 +01:00
jpx.js cleaned whitespace 2015-02-17 11:07:37 -05:00
metrics.js cleaned whitespace 2015-02-17 11:07:37 -05:00
murmurhash3.js Removes B2G preprocessing directives. 2015-06-30 16:53:32 -05:00
network.js Merge pull request #5531 from Rob--W/moz-chunked-only-moz 2015-07-02 09:08:08 -05:00
obj.js Fetch all indirect objects (i.e. Refs) in NameTree_getAll and NameTree_get (issue 6204) 2015-07-14 10:56:56 +02:00
parser.js Ignore double negative in Lexer_getNumber (issue 6218) 2015-07-16 12:11:49 +02:00
pattern.js Merge pull request #5449 from CodingFabian/preferParamsOverArguments 2014-12-08 15:23:12 -06:00
pdf_manager.js cleaned whitespace 2015-02-17 11:07:37 -05:00
ps_parser.js Add strict equalities in src/core/ps_parser.js 2014-08-01 22:02:10 +02:00
stream.js Revert PR 6024 "[Firefox] Parse all JPEG images in the addon", since it's fixed upstream 2015-05-29 12:58:17 +02:00
worker.js Revert #5603 regarding Chrome range request bug 2015-04-30 22:37:52 +02:00