Jonas Jenwald
c36468cbce
Fix errors reported by the `keyword-spacing` ESLint rule
...
http://eslint.org/docs/rules/keyword-spacing
8 years ago
Tim van der Meij
6a7012aaca
Remove unused variables
...
These have been found using `gulp lint` in combination with the `unused:
true` parameter for JSHint. Unfortunately there are too many false
positives to enable this feature, but now that most globals have been
removed because of the conversion to UMD the results are much more
useful than before.
9 years ago
Yury Delendik
0d591719d9
Makes PDF data reading Streams API friendly.
9 years ago
Yury Delendik
2edf2792dc
Replaces literal {} created lookup tables with Object.create
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
9 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Yury Delendik
59c13b32aa
Adds destroy method to the document loading task.
...
Also renames PDFPageProxy.destroy method to cleanup.
10 years ago
Yury Delendik
f3c3b1fc2d
Removes B2G preprocessing directives.
10 years ago
Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Jonas Jenwald
6dfc73a5da
Modify |getUint16| to correctly handle missing data in Stream, DecodeStream and ChunkedStream
10 years ago
fkaelberer
e5477c3156
Simplify nextMissingChunk(), getEndChunk()
11 years ago
Yury Delendik
07a2539867
Replaces (chunk in this.loadedChunks)
11 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Jonas Jenwald
d1974eae34
Add peekByte method to Stream, DecodeStream and ChunkedStream
11 years ago
fkaelberer
a7bbc12a81
Fix ensureByte() function name (copy-and-paste error)
11 years ago
Jonas Jenwald
643ad37f2a
Revert commit 9a41659
(PR 5005) for breaking the loading of certain PDF files in the Firefox addon when range requests are active
11 years ago
fkaelberer
9a41659ae7
Faster chunkedStream_getByte()
11 years ago
Nicholas Nethercote
4428cebdbc
Add ChunkedStream.ensureByte().
...
This new function is much faster than ensureRange(pos, pos+1), which is a very
common case.
This speeds up the rendering of some test cases (including the Tracemonkey
paper) by 4--5%.
11 years ago
Jonas Jenwald
ea0453f106
Add isEmpty method to Stream, DecodeStream and ChunkedStream
11 years ago
Jonas Jenwald
b6ff4aea2b
Add onError function to ChunkedStreamManager
11 years ago
Jonas Jenwald
89c11ca9a2
Remove LegacyPromise in src/core/chunked_stream.js
11 years ago
fkaelberer
b06c10cbbd
rename getUint32 to getInt32 and collect readInt*() in util.js
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
Jonas Jenwald
53bbdcb0a1
Fix coding style in src/core/chunked_stream.js
11 years ago
Nicholas Nethercote
6a75e45309
Allocate fewer objects when parsing 2 and 4 byte chunks.
...
This is achieved by adding getBytes2() and getBytes4() to streams, and by
changing int16() and int32() to take multiple scalar args instead of an array
arg.
11 years ago
Nicholas Nethercote
f12d588258
Add an ensureRange() call to ChunkedStream_makeSubStream().
...
By checking if the data is all present before making a substream, we avoid
cases where we parse part of a stream and then throw a MissingDataException
part-way through, which forces us to later re-read the stream -- possibly
multiple times. This is a sizeable performance win for some cases when file
loading is slow (e.g. over the web).
11 years ago
terje.kristiansen
08737375f8
Added withCredentials parameter and passing it to xhr requests
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Yury Delendik
90956ce3e0
Takes chunk id == 0 into account during grouping
12 years ago
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Yury Delendik
19e8f2f059
lookChar refactoring
12 years ago
Brendan Dahl
09aafa830b
Remove caching of stream data and fix object loader for streams.
12 years ago
Yury Delendik
4d9ee7b530
#2098 : scanning for stream length when it's incorrect
12 years ago
Brendan Dahl
01ce3d056c
Load all resources before getOperatorList/getTextContent.
12 years ago
Mack Duan
1d48e9c201
Handle server returning 200 for range request
12 years ago
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
12 years ago
Mack Duan
fdd092bb92
Clamp end of range request to be the length of the file
12 years ago
Mack Duan
2ce00279be
Address more of brendan's comments
12 years ago
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago