Commit Graph

7286 Commits

Author SHA1 Message Date
Yury Delendik
f5d416cfdf Merge pull request #5360 from Snuffleupagus/pr-5359-followup
Followup fix for entering/exiting Presentation mode
2014-09-30 06:41:52 -05:00
Jonas Jenwald
b06e65e5d6 Followup fix for entering/exiting Presentation mode
Even after PR 5359, switching to/from Presentation mode is still sluggish and I'm still seeing `too much recursion` printed in the console.
I've managed to track down the issue to line https://github.com/mozilla/pdf.js/blob/master/web/page_view.js#L371. It appears that for this particular case, we actually *need* to set `noScroll = true` when calling the `_setScale` function. (Note that it only applies to *this* line, and not to Presentation mode in general.)
Given the amount of refactoring done to the viewer, I'm not sure what the best way to fix this would be. However I'm submitting this patch as an easy workaround for now, but we should probably refactor this to avoid calling a "private" method directly.
2014-09-30 13:02:53 +02:00
Yury Delendik
f852a44383 Merge pull request #5359 from yurydelendik/pdfviewer2
Fixes typo/regression of #5295 for presentation mode
2014-09-29 20:19:10 -05:00
Yury Delendik
504d2c19e0 Fixes typo/regression of #5295 for presentation mode 2014-09-29 20:17:26 -05:00
Brendan Dahl
1145eb8c09 Merge pull request #5295 from yurydelendik/pdfviewer
Refactoring to move page display code into separate class
2014-09-29 15:23:35 -07:00
Yury Delendik
44779f14b0 Renames and refactors PDFView to PDFViewerApplication. 2014-09-28 10:39:56 -05:00
Yury Delendik
a89bba35b2 Adds types definitions (jsdoc) for the PDFViewer code. 2014-09-28 10:39:56 -05:00
Yury Delendik
3773972dce Marks some private methods in PDFViewer and PDFThumbnailViewer
Conflicts:
	web/pdf_viewer.js
2014-09-28 10:39:56 -05:00
Yury Delendik
744c8e8d7e Merge pull request #5250 from Snuffleupagus/issue-5238
Fix Symbol fonts without font file but with Encoding dictionary (issue 5238)
2014-09-26 15:18:33 -05:00
Jonas Jenwald
8539cd6e7d Merge pull request #5346 from yurydelendik/streamfix
Misc follow ups on the streaming requests
2014-09-26 19:45:02 +02:00
Yury Delendik
a95123188a Disables hash options when PDFBug is disabled and fixed streaming regressions. 2014-09-26 11:49:18 -05:00
Brendan Dahl
9c56c6f9f6 Merge pull request #5263 from yurydelendik/stream
Implement streaming using moz-chunk-arraybuffer
2014-09-25 16:40:28 -07:00
Yury Delendik
4189c78488 Merge pull request #5308 from Snuffleupagus/fonts-mmtype1
Add support for MMType1 fonts with embedded font files
2014-09-25 08:08:25 -05:00
Yury Delendik
76b3e5d342 Merge pull request #5339 from yurydelendik/dist
Adds readme file for the pdfjs-dist repo.
2014-09-24 07:15:03 -05:00
Yury Delendik
e0bb2f76d2 Merge pull request #5335 from Snuffleupagus/pdfBug-text-highlight
Fix text highlighting in the Font Inspector in the debugger
2014-09-24 07:14:03 -05:00
Yury Delendik
d0b02525a6 Merge pull request #5337 from Snuffleupagus/fix-stepper-page-change
Fix a regression preventing page change in the Stepper in the debugger
2014-09-24 07:13:32 -05:00
Yury Delendik
10f702f60e Adds readme file for the pdfjs-dist repo. 2014-09-24 07:10:09 -05:00
Jonas Jenwald
7af46b433d Fix a regression preventing page change in the Stepper in the debugger
This is a regression from ddd3c8fc2f, which prevents changing pages in the Stepper.

(Apart from fixing the bug, for the sake of consistency, I also removed one instance of `parseInt`.)
2014-09-24 10:38:27 +02:00
Jonas Jenwald
9c3ea3c40b Fix text highlighting in the Font Inspector in the debugger
After PR #5282, the text highlighting in the Font Inspector is very hard to see against a white background. That seems to be an oversight from the mentioned PR, hence this patch fixes that.
2014-09-24 00:18:35 +02:00
Brendan Dahl
a2e8a5ee7f Merge pull request #5282 from CodingFabian/nicer-overlapping-text-selection
TextLayer selection coloring improvement for overlap.
2014-09-23 14:15:47 -07:00
Brendan Dahl
678fb0ea9f Merge pull request #5314 from yurydelendik/issue5313
Fixes names collisions in content.js
2014-09-23 14:01:53 -07:00
Yury Delendik
942c838afe Merge pull request #5330 from Snuffleupagus/better-getData-unittest
Improve the getData unit test
2014-09-23 08:12:55 -05:00
Yury Delendik
ed24eacdf2 Merge pull request #5327 from yurydelendik/dist
Builds distribution package for npm and bower.
2014-09-23 07:26:10 -05:00
Jonas Jenwald
dc5b0d251f Improve the getData unit test
As a follow-up to PR #4795, this patch improves the `getData` unit test to ensure that the returned data is of the expected type and of the correct length.
2014-09-23 13:16:58 +02:00
Yury Delendik
2704119c90 Builds distribution package for npm and bower. 2014-09-22 18:06:34 -05:00
Yury Delendik
a1eca2084d Moves constants to avoid dependency on PDFView 2014-09-21 12:47:26 -05:00
Yury Delendik
f1851c6393 Removes any usage of PDFView in the PageView 2014-09-21 12:47:26 -05:00
Yury Delendik
fbd7eedce8 Removes PresentationMode dependency from PDFViewer 2014-09-21 12:47:26 -05:00
Yury Delendik
a06a974f78 Moves rendering queue logic from PDFView 2014-09-21 12:47:26 -05:00
Yury Delendik
7642c39734 Moves pdfDocument.getPage/getTextContent requests out of PDFView 2014-09-21 12:47:26 -05:00
Yury Delendik
7af8748151 Moves viewer code into PDFViewer and some code from PageView. 2014-09-21 12:47:07 -05:00
Yury Delendik
d6328bbbed Imports L10n 2014-09-20 08:31:13 -05:00
Yury Delendik
3bce14761a Moves thumbs logic into PDFThumbnailViewer. 2014-09-20 08:19:04 -05:00
Yury Delendik
bfefadb87c Moves watchScroll and getVisibleElements from PDFView 2014-09-20 08:19:04 -05:00
Yury Delendik
12ec2a000b Merge pull request #5318 from mitar/patch-2
textLayer is not used anymore in render context
2014-09-20 08:17:35 -05:00
Tim van der Meij
a4cb67b9d1 Merge pull request #5321 from timvandermeij/misc-fixes
Fixes milestones link in README.md and adds pdfBugEnabled to the Chrome extension preferences
2014-09-20 10:28:19 +02:00
Tim van der Meij
6f3ae49b8c Adds pdfBugEnabled to the Chrome extension preferences 2014-09-20 10:24:04 +02:00
Tim van der Meij
7dba085fa8 Fixes milestones link in README.md 2014-09-20 10:22:14 +02:00
Yury Delendik
07a2539867 Replaces (chunk in this.loadedChunks) 2014-09-19 19:05:25 -05:00
Yury Delendik
c3f191a27c Implement streaming using moz-chunk-arraybuffer 2014-09-19 19:05:25 -05:00
Yury Delendik
477efd52bc Merge pull request #5320 from yurydelendik/hashes
Merge of the #5311 and #4956
2014-09-19 18:47:46 -05:00
Yury Delendik
63b7fa5634 Merge branch 'issue-4954' of https://github.com/Snuffleupagus/pdf.js into hashes
Conflicts:
	web/viewer.js
2014-09-19 18:25:11 -05:00
Yury Delendik
f6e2167b73 Merge pull request #5311 from manolopm/master 2014-09-19 18:11:43 -05:00
Mitar
2f72ac1255 textLayer is not used anymore in render context.
It should be removed to prevent confusion when reading the code.
2014-09-19 15:13:01 -07:00
Yury Delendik
e77e5c442f Copies pdfjschildbootstrap.js for MOZCENTRAL 2014-09-19 16:00:13 -05:00
Yury Delendik
d323f23750 Merge pull request #5312 from Snuffleupagus/e10s-fixes-2
For |make firefox/mozcentral| builds, add cleanupJSSource to remove duplicate file headers in extensions/firefox/content/PdfjsChromeUtils.jsm
2014-09-19 15:38:43 -05:00
Yury Delendik
9855fa39d7 Merge pull request #5317 from yurydelendik/e10s-rev
Bug 1064496 review changes
2014-09-19 15:34:54 -05:00
Jim Mathies
b399f19426 Bug 1064496 review changes 2014-09-19 15:31:21 -05:00
Yury Delendik
b614782ebb Merge pull request #5315 from yurydelendik/bug1053028
Adds preprocessor directive to the X-Content-Security-Policy stuff
2014-09-19 15:21:02 -05:00
Yury Delendik
861a7615ff Adds preprocessor directive to the X-Content-Security-Policy stuff 2014-09-19 15:18:37 -05:00