Yury Delendik
69efd9cb96
CMaps binary packing
11 years ago
Nicholas Nethercote
3759c11f42
Avoid more allocations in bidi().
11 years ago
Yury Delendik
1aaeec8020
Heuristic to optimize chunking
11 years ago
Yury Delendik
257898b359
Caching inlined mask images
11 years ago
Yury Delendik
f48f57e30a
Caches last parsed resource image, recornizes image repeats
11 years ago
Yury Delendik
2c23be369b
Optimizing pdf when text printed char-by-char
11 years ago
Yury Delendik
dbb3d17d8f
Refactors optimization list
11 years ago
Jonas Jenwald
b0824e1626
Prevent circular reference when checking for blend modes (issue 4370)
11 years ago
Nicholas Nethercote
b3024db677
Estimate the size of decoded streams in advance.
...
When decoding a stream, the decode buffer is often grown multiple times, its
byte size increasing like so: 512, 1024, 2048, etc. This patch estimates the
minimum size in advance (using the length of the encoded stream), often
allowing the smaller sizes to be skipped. It also renames numerous |length|
variables as |maybeLength| to make it clear that they can be |null|.
I measured this change on eight documents. This change reduces the cumulative
size of decode buffer allocations by 0--32%, with 10--20% being typical. This
reduces peak RSS by 10 or 20 MiB for several of them.
11 years ago
Nicholas Nethercote
00c1cff405
Transfer image masks when when possible, instead of copying.
11 years ago
Samuel Chantaraud
076b3433b4
Improved annotations' display/behavior.
...
Added an "InteractiveAnnotation" class to homogenize the annotations' structure (highlighting) and user interactions (for now, used for text and link annotations).
Text annotations:
The appearance (AP) has priority over the icon (Name).
The popup extends horizontally (up to a limit) as well as vertically.
Reduced the title's font size.
The annotation's color (C) is used to color the popup's background.
On top of the mouseover show/hide behavior, a click on the icon will lock the annotation open (for mobile purposes). It can be closed with another click on either the icon or the popup.
An annotation printing is conditioned by its "print" bit
Unsupported annotations are not displayed at all.
11 years ago
Mitar
2c82e720b8
Updated to current latest stable version of jshint.
11 years ago
Brendan Dahl
a77efa0587
Remove unused calculation from bad merge.
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Nicholas Nethercote
f62c1c469f
Special-case 24-bit RGB image-handling.
11 years ago
Nicholas Nethercote
d4e8b41639
Remove some unnecessary local variables.
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Nicholas Nethercote
a966909754
Reduce memory consumption of simple black and white images.
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago
Rob Wu
2779bab03e
Use [].forEach instead of for-..-in in evaluator
...
To prevent errors whenever the array's prototype is extended.
(cmap is an array)
11 years ago
Yury Delendik
4054b0c385
SMask emulation
11 years ago
Jonas Jenwald
575bdd8863
Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112)
11 years ago
Yury Delendik
96fff4cc74
Refactors getTextContent return value
11 years ago
Yury Delendik
09f8f951c8
Extracts evaluator preprocessor and refactor text extraction
11 years ago
Nicholas Nethercote
3f533a1cb0
Use a more compact typed array to pass the image mask from the worker to the main thread.
11 years ago
Yury Delendik
96eaa15578
Fixes fips regression from #4068
11 years ago
Yury Delendik
0131101275
Takes ascent/descent in account in the text layer
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
11 years ago
Yury Delendik
5973d40afe
Adjusts heuristic for disabling Symbol encoding
11 years ago
Jonas Jenwald
b1c5ef9ccc
Fix loading of fonts that are not referenced by an object identifier
12 years ago
Brendan Dahl
a4f329aa38
Combine if/else block with switch for getOperatorList.
12 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
Jonas Jenwald
564ae6e4f7
Prevent updating the current transformation matrix when the stateStack is empty
12 years ago
Yury Delendik
4ce6cb8b0f
Uses postMessage transfers
12 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Yury Delendik
104d89856d
Renames Symbol encoding name.
12 years ago
Brendan Dahl
f32e65b19f
Read multi-byte character codes based on codespace ranges.
12 years ago
Srishti
3808d02a53
implementing transform matrix to getTextContent
12 years ago
Brendan Dahl
60586e3101
Ensure there's data to build path.
12 years ago
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Brendan Dahl
efa8f561a5
Move chars to glyphs conversion to the worker.
12 years ago
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
12 years ago
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
12 years ago
Brendan Dahl
a8ad07ccbf
Cache fonts by reference.
12 years ago
Jonas
d206a1ccdc
Fix regression from issue 3312
12 years ago
Yury Delendik
c3030dee8f
Bug 861638: ignoring double-EI
12 years ago
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
12 years ago