Commit Graph

6198 Commits

Author SHA1 Message Date
Peter Pin-Guang Chen
06a24136e5 Backport latest zh-TW strings from l10n-aurora 2014-02-07 00:50:33 +08:00
Yury Delendik
3fa15c0f46 Merge pull request #4241 from brendandahl/csp
Remove inline script warnings.
2014-02-03 14:24:27 -08:00
Brendan Dahl
e477958b74 Remove inline script warnings. 2014-02-03 14:14:54 -08:00
Yury Delendik
2451968bac Merge pull request #4236 from lovasoa/master
Lexer_getNumber faster number parsing
2014-02-02 10:47:20 -08:00
Ophir LOJKINE
77b58543c9 Add @lovasoa to AUTHORS 2014-02-01 21:53:47 +01:00
Ophir LOJKINE
4a66eccedc Rewrite Lexer_getNumber.
Now, it computes the numbers with only basic arithmetic operations, without first creating a string and then calling parseFloat.
The new function doesn't behave exactly the same as the old one.
In particular, the old behaviour was that when there was a number immediatly followed by an 'E', the 'E' was consumed. Now it's not. It allows for "glued" numbers and operators.
Also, the new function is faster and consumes less memory.
2014-02-01 21:46:09 +01:00
Yury Delendik
591bd91482 Merge pull request #4235 from Rob--W/firefox-addon-xhr-private
[privacy] Respect private browsing mode in Firefox add-on
2014-01-31 16:25:38 -08:00
Rob Wu
a01556665e Firefox addon: Let XHR respect private mode 2014-01-31 22:23:45 +01:00
Brendan Dahl
54f6291cc9 Merge pull request #4207 from yurydelendik/function-split
Basic function.js split
2014-01-31 09:37:59 -08:00
Rob Wu
ce9400dc8b Handle navigation keys when viewer is not focused
Restrict the scrollbar hack to the keycode for "spacebar",
since the bug only occurs in Firefox with spacebar.

Keyboard navigation is only activated for the spacebar if
the currently focused element is not a button.
2014-01-31 14:59:49 +01:00
Jonas Jenwald
a8d22ee825 Merge pull request #4231 from fkaelberer/DE_translation
Update DE translation (document properties dialog)
2014-01-31 00:58:22 -08:00
fkaelberer
ab6fd8c0b8 Update DE translation (doc properties) 2014-01-31 09:20:21 +01:00
Rob Wu
eaf7daf7db [CRX] Pass expected length of stream to viewer
To get a progress bar for POST/FTP requests in Chromium.
2014-01-30 23:03:15 +01:00
Brendan Dahl
1e4d35c3a0 Merge pull request #4192 from yurydelendik/shading-r
Implements shading types 4-7
2014-01-30 13:36:01 -08:00
Brendan Dahl
7be0924ac4 Merge pull request #4212 from yurydelendik/jank4181
Removes scrolling jank after bw image optimization
2014-01-30 10:14:27 -08:00
Tim van der Meij
f1b832aa57 Merge pull request #4226 from timvandermeij/bengali-update
Bengali updates
2014-01-30 10:08:34 -08:00
Tim van der Meij
744470167a Bengali updates 2014-01-30 19:06:03 +01:00
Tim van der Meij
7fe8a0cfdd Merge pull request #4221 from rabbihossain/master
add and update Bengali (bn-BD) l10n
2014-01-30 10:00:24 -08:00
Yury Delendik
6cf6d2f4b9 Merge pull request #4223 from Rob--W/grab-to-pan-overlay-fix
Get rid of weird scrollbar on mouse down
2014-01-30 06:31:33 -08:00
Rob Wu
64a4a27455 Remove obsolete code from shortcut handler
These lines were introduced in 612f59aa10
when the only shortcuts were +/-/=/0 (to change zoom level).
Back then, when the input fields were focused, using these keys would
add these unwanted characters to the input field and change the zoom
level of the viewer. Having both operations at the same time was an
undesired event, so a check was inserted, to ignore shortcuts when
the toolbar is focused.

The #toolbar element doesn't exist any more, so these lines are obsolete.
2014-01-30 15:26:51 +01:00
Rob Wu
65701f941d Get rid of weird scrollbar on mouse down 2014-01-30 15:06:04 +01:00
Yury Delendik
acb33b3e7d Merge pull request #4213 from nnethercote/strings
Create less garbage while parsing
2014-01-30 04:41:53 -08:00
rabbihossain
cd976066cf update l10n strings and squash commit 2014-01-30 18:24:11 +06:00
Nicholas Nethercote
164d7a6e15 Don't create a string when lexing all-digit integers. 2014-01-29 18:22:09 -08:00
Nicholas Nethercote
b64cca0bef When lexing numbers, look for digits first. 2014-01-29 18:20:53 -08:00
Nicholas Nethercote
c1ef7e4d63 Use Array.join instead of += to build up strings in the Lexer. 2014-01-29 18:19:58 -08:00
Yury Delendik
b4eceac826 Merge pull request #4209 from Rob--W/grab-to-pan-performance
Update Grab to pan to fix performance issue
2014-01-29 15:30:58 -08:00
Rob Wu
45c633b072 Update Grab to pan to fix performance issue
Reported at http://stackoverflow.com/questions/21392844/pdf-js-recalculating-problme
See also e0f893753a

Changes versus grab-to-pan.js: Moved inline style to viewer.css,
lowered z-index from 2e9 to 50000 (note to future maintainers:
make sure that all other z-index values stay below 50000!).
2014-01-30 00:16:25 +01:00
Tim van der Meij
3deea077ef Merge pull request #4217 from Rob--W/fix-print-shortcut
Print shortcut: Ctrl + (Shift +) P only
2014-01-29 11:16:19 -08:00
Yury Delendik
99bbad3219 Removes scolling jank after bw image optimization 2014-01-29 13:10:34 -06:00
Brendan Dahl
cda181f061 Merge pull request #4187 from Rob--W/issue-4183
Use forEach instead of for-in (was: Replace [] with {} in core/cmap)
2014-01-29 10:54:49 -08:00
Rob Wu
9df998914d Print shortcut: Ctrl + (Shift +) P only
The previous version interfered with the full screen shortcut
 (Ctrl + Alt + P).
The new version only intercepts Cmd/Ctrl + P (all browsers).
And Ctrl + Shift + P in Chrome / Opera (Presto and Chromium),
because these browsers also associate a Print operation with
the shortcut.
2014-01-29 18:38:42 +01:00
Yury Delendik
3595c2c360 Respects current ctx scale for mesh pattern 2014-01-29 10:39:06 -06:00
Yury Delendik
561683d2e9 Dynamically determines how to split patch into triangles 2014-01-29 10:39:06 -06:00
Yury Delendik
c5a804c43a Merge pull request #4181 from nnethercote/compact-images
Reduce memory consumption of simple black and white images.
2014-01-28 15:53:46 -08:00
Nicholas Nethercote
a966909754 Reduce memory consumption of simple black and white images. 2014-01-28 14:36:47 -08:00
Brendan Dahl
c2e31cd1ef Merge pull request #4205 from yurydelendik/blob-open-file
Using blob URL for open file
2014-01-28 14:15:35 -08:00
Brendan Dahl
0e000392ae Merge pull request #4179 from yurydelendik/dataLoaded
Fixes PDFDocumentProxy.getDataLoaded API name (and refactoring)
2014-01-28 13:56:01 -08:00
Yury Delendik
e5e9c6e243 Fixes PDFDocumentProxy.getDownloadInfo API name (and refactoring) 2014-01-28 15:13:47 -06:00
Yury Delendik
d45d7bc161 Merge pull request #4200 from timvandermeij/ie-mousewheel
Implements mouse wheel behaviour for non-Firefox browsers
2014-01-28 11:56:16 -08:00
Tim van der Meij
b4b145507c Implements mouse wheel behaviour for non-Firefox browsers 2014-01-28 20:52:25 +01:00
Yury Delendik
c45c9a7ffa Merge pull request #4210 from yurydelendik/issue4131
Refactors nextPageMatch (nits)
2014-01-28 09:13:20 -08:00
Yury Delendik
48f0d0a131 Refactors nextPageMatch (nits) 2014-01-28 11:11:02 -06:00
Yury Delendik
187c9007ef Merge pull request #4131 from karlden/findUnboundedRecursionBug960409
Fixes find functionality recursion (bugzilla FF bug 960409)
2014-01-28 06:44:42 -08:00
Yury Delendik
a583c319a1 Implements shading types 4-7 2014-01-27 20:35:51 -06:00
Yury Delendik
e9327050c3 Basic function.js split 2014-01-27 20:29:47 -06:00
Brendan Dahl
59526a7cf1 Merge pull request #4189 from yurydelendik/split-pattern
Refactors shared/pattern.js into core/ and display/
2014-01-27 17:40:22 -08:00
Brendan Dahl
c2421c2897 Merge pull request #4201 from yurydelendik/smask-backdrop
Fixes smask backdrop
2014-01-27 11:16:37 -08:00
Yury Delendik
18515b8668 Using blob URL for open file 2014-01-27 13:11:02 -06:00
Yury Delendik
141669a318 Merge pull request #4194 from Rob--W/crx-pdf-embed
Support <embed type="application/pdf"> in Chromium extension
2014-01-27 07:26:13 -08:00