Commit Graph

6372 Commits

Author SHA1 Message Date
Christian Krebs
79f34b183c Treat fonts with the same font descriptor, encoding and unicode map as aliases
Different fonts can point to the same font descriptor
(see https://github.com/mozilla/pdf.js/issues/4339 for details). With this
commit such fonts are treated as aliases if they have also the same encoding
and the same toUnicode map. The according info is stored on the font descriptor.
This change must also ensure that aliases use always the same font name
because translated fonts can get cleared depending on the CLEANUP_TIMEOUT setting.
2014-04-08 20:45:21 +02:00
Brendan Dahl
608c6cea5a Merge pull request #4374 from yurydelendik/dictgetall
Doesn't traverse cyclic references in Dict.getAll; reduces empty-Dict GC
2014-04-08 10:43:42 -07:00
Brendan Dahl
ed1f8c33bd Merge pull request #4286 from yurydelendik/webgl
WebGL and misc memory optimizations
2014-04-07 14:33:34 -07:00
Yury Delendik
31c260a886 Merge pull request #4565 from fkaelberer/fixJPXparsing
Read color info from JPX stream + fix color problem #4540
2014-04-07 09:32:03 -05:00
Yury Delendik
89a676a49c Protects from killing a closed process 2014-04-07 09:31:04 -05:00
Yury Delendik
b72094d740 Using shell/cmd commands to kill browser tasks 2014-04-07 07:59:27 -05:00
fkaelberer
2982de8f33 Use Stream instead of byte array access 2014-04-06 13:40:27 +02:00
fkaelberer
1ccc8a64b7 Read color info from JPX stream
Fix colors problem #4540 + minor cleanup

fix lint warnings
2014-04-05 18:02:58 +02:00
Yury Delendik
cbf35cae0f Merge pull request #4563 from bthorben/testWithOpera
Test with opera
2014-04-04 09:03:20 -05:00
Thorben Bochenek
c834ba7c3e Make Opera a possible browser to test with 2014-04-04 15:16:07 +02:00
Thorben Bochenek
5c6985bc82 Remove unused variable 2014-04-04 14:34:30 +02:00
Brendan Dahl
d898717be4 Merge pull request #4559 from yurydelendik/history
Refactors history and how the database is stored
2014-04-03 12:53:45 -07:00
Yury Delendik
b39f0c311c Refactors history and how the database is stored 2014-04-03 13:23:18 -05:00
Yury Delendik
30ab878835 Add enableWebGL to the preferences 2014-04-03 12:20:53 -05:00
Yury Delendik
7638175315 Sync l10n files 2014-04-03 10:49:55 -05:00
Yury Delendik
9c59437ac3 Merge pull request #4455 from aib/master
Fix download button waiting if document has started but not completed downloading
2014-04-03 09:40:06 -05:00
Yury Delendik
4be65a9477 Merge pull request #4516 from dferer/ios-scrolling
Added CSS rules to improve scrolling on iOS devices
2014-04-03 09:34:20 -05:00
Yury Delendik
f57c6935d7 Implements WebGL support 2014-04-03 08:36:22 -05:00
Yury Delendik
944219ad8a Balance smask process chunking 2014-04-03 08:34:21 -05:00
Yury Delendik
1e8d70af98 Prescales shading pattern packed data indices 2014-04-03 08:34:20 -05:00
Yury Delendik
5262e6f84f Set max size for the group 2014-04-03 08:34:20 -05:00
Yury Delendik
3e17021f8d Merge pull request #4482 from Snuffleupagus/prefs-async-v2
Rewrite 'Preferences' to make it async
2014-04-03 08:32:14 -05:00
Jonas Jenwald
42f9541081 Add preference to automatically enable the Hand Tool when the viewer loads 2014-04-03 10:17:35 +02:00
Jonas Jenwald
4c9c43f82b Modify {get, set}Preferences in PdfStreamConverter.jsm to support async 2014-04-03 10:17:35 +02:00
Jonas Jenwald
c920372ff2 Rewrite 'Preferences' to make it async 2014-04-03 10:08:33 +02:00
Yury Delendik
bd11111465 Merge pull request #4545 from Rob--W/crx-api-enhancements
Use new Chromium APIs for FTP and redirects
2014-04-02 09:40:13 -05:00
Yury Delendik
75d09fd820 Merge pull request #4524 from fkaelberer/fullWidthInPresentationMode
Use full screen width in presentation mode
2014-04-02 09:03:37 -05:00
Yury Delendik
9b0038f5e2 Merge pull request #4546 from Snuffleupagus/document-properties-wait-for-data
Prevent the Document Properties from being empty when the dialog is opened before the file has started loading
2014-04-02 08:53:39 -05:00
Yury Delendik
aa01b576e0 Merge pull request #4554 from yurydelendik/winkill
Better test process killing for Windows
2014-04-02 08:49:26 -05:00
Yury Delendik
34f0f0962f Merge pull request #4539 from Snuffleupagus/issue-4537
Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)
2014-04-02 08:05:52 -05:00
Yury Delendik
20f6dedea7 Merge pull request #4512 from fkaelberer/cleanUpStringConversion
Clean up duplicate string conversion functions
2014-04-02 08:04:06 -05:00
Yury Delendik
d7174582c0 Better test process killing for Windows 2014-04-02 08:02:40 -05:00
Yury Delendik
dc0e60d103 Merge pull request #4535 from Snuffleupagus/issue-4484
Avoid drawing text when the font size is zero (issue 4484)
2014-04-02 07:23:43 -05:00
Jonas Jenwald
edfc78dfe7 Only update the Document Properties if the dialog is still visible when the dataAvailablePromise is resolved 2014-04-02 11:55:35 +02:00
Jonas Jenwald
c7a0b68d9a Remove superfluous 'self' variable from web/document_properties.js 2014-03-31 23:16:44 +02:00
Jonas Jenwald
025f340228 Prevent the Document Properties from being empty when the dialog is opened before the file has started loading 2014-03-31 23:12:48 +02:00
Samuel Chantaraud
50aa49bb06 Added CSS rules to allow smooth (momentum) scrolling on iOS devices 2014-03-31 11:09:18 -04:00
Yury Delendik
b97127aca2 Merge pull request #4542 from fkaelberer/typoInSpliceString
Fix typo/unused argument in fontloader.js->spliceString()
2014-03-31 09:37:26 -05:00
Yury Delendik
6cf5455c02 Merge pull request #4543 from yurydelendik/winlint
Fixes lint for windows; adds test/font/fontutils.js
2014-03-31 09:35:50 -05:00
Yury Delendik
63f438006b Fixes lint for windows; adds test/font/fontutils.js 2014-03-31 08:50:53 -05:00
Yury Delendik
3e71b3a5fa Merge pull request #4541 from yurydelendik/chrometest
Cools down Chrome/Windows during testing
2014-03-31 08:12:37 -05:00
Yury Delendik
7075032cc8 Merge pull request #4521 from Snuffleupagus/issue-4260
Assign non-zero width/height to all rectangles (issue 4260)
2014-03-31 08:08:39 -05:00
fkaelberer
4ee35b0d46 Fix typo/unused argument in fontloader.js->spliceString() 2014-03-31 14:48:23 +02:00
Yury Delendik
4d3b15a486 Cools down Chrome/Windows during testing 2014-03-31 07:46:11 -05:00
Jonas Jenwald
772df5e0cb Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537) 2014-03-31 12:07:54 +02:00
Jonas Jenwald
08eb9a960a Avoid drawing text when the font size is zero (issue 4484) 2014-03-30 13:36:21 +02:00
Rob Wu
ae32f31eb4 Use redirectUrl at onHeadersReceived if available.
http://crbug.com/280464 has been resolved, so we can now use redirectUrl at
onHeadersReceived.
For backwards-compatibility, the code for the original method has not been
removed, and a feature detection script was added that detects whether the
desired feature is available.
2014-03-30 00:25:37 +01:00
Rob Wu
d04f81b964 Improved FTP support for Chromium extension 2014-03-30 00:08:02 +01:00
fkaelberer
db84851e27 Use full screen width in presentation mode 2014-03-28 08:58:18 +01:00
Jonas Jenwald
7d5bf83ce8 Fix typo in test/ttx/README.md 2014-03-28 00:05:22 +01:00