Fix of pdf not loading on android (issue 5427)

Fix for pdf on android not visible

Fix for pdf on android not visible
fixes caching of inline images during parsing.

As described in #5444, the evaluator will perform identity checking of
paintImageMaskXObjects to decide if it can use
paintImageMaskXObjectRepeat instead of paintImageMaskXObjectGroup.

This can only ever work if the entry is a cache hit. However the
previous caching implementation was doing a lazy caching, which would
only consider a image cache worthy if it is repeated.
Only then the repeated instance would be cached.
As a result of this the sequence of identical images A1 A2 A3 A4 would
be seen as A1 A2 A2 A2 by the evaluator, which prevents using the
"repeat" optimization. Also only the last encountered image is cached,
so A1 B1 A2 B2, would stay A1 B1 A2 B2.

The new implementation drops the "lazy" init of the cache. The threshold
for enabling an image to be cached is rather small, so the potential waste
in storage and adler32 calculation is rather low. It also caches any
eligible image by its adler32.

The two example from above would now be A1 A1 A1 A1 and A1 B1 A1 B1
which not only saves temporary storage, but also prevents computing
identical masks over and over again (which is the main performance impact
of #2618)
Refactor searching for the SOI marker of inline JPEG image streams
Use 3 param method for converting r,g,b into css string.

This avoids creation of temporary arrays to pass them into the util
method. Also using "arguments" is more expensive then passing in 3
parameters.
Add a (linked) test case for bug 1064894

This should have been part of PR 5284.
Merge pull request #5528 from Snuffleupagus/test-bug-1064894

Add a (linked) test case for bug 1064894
Merge pull request #5448 from thejdeep/androidfix

Added try/catch #5427
Merge pull request #5449 from CodingFabian/preferParamsOverArguments

Use 3 param method for converting r,g,b into css string.
Add a (linked) test case for bug 1108753 (PR 5276)

When submitting PR 5276 there wasn't a good PDF file to include in the test suite. However, with https://bugzilla.mozilla.org/show_bug.cgi?id=1108753, we now have a better source for a test file, hence this patch.
Merge pull request #5532 from Snuffleupagus/test-pr-5276

Add a (linked) test case for bug 1108753 (PR 5276)
Merge pull request #5508 from Snuffleupagus/jpeg-stream-find-soi

Refactor searching for the SOI marker of inline JPEG image streams
Merge pull request #5445 from CodingFabian/fixImageCachingInParser

Fixes caching of inline images during parsing.