Commit Graph

2395 Commits

Author SHA1 Message Date
Brendan Dahl
43dbc3a84d Merge pull request #711 from jviereck/worker_feature
Feature detection
2011-11-02 15:16:31 -07:00
Julian Viereck
50fe4f55e2 Fix lint warning + turn off worker support 2011-11-02 23:00:08 +01:00
Brendan Dahl
0f7141e2a3 Merge pull request #744 from eloquentix/master
Fix same origin policy issue when adding @font-face rules
2011-11-02 11:53:31 -07:00
Ionuț G. Stan
090b4d6647 Fix same origin policy issue when adding @font-face rules
If the first stylesheet in the document is located on an external domain, then
trying to access the `cssRules` property of that `CSSStyleSheet` object will
result in a Security error being thrown in Firefox. In Safari, `cssRules` will
be null, which causes a null pointer exception in the `styleSheet.cssRules.length`
expression.
2011-11-02 13:06:26 +02:00
Julian Viereck
51d4a17232 Change workerSrc location 2011-11-01 22:23:16 +01:00
Julian Viereck
94b8c4656b Merge with master 2011-11-01 19:56:34 +01:00
Julian Viereck
3b7829d057 Address review comments. Use only one PDFJS.workerSrc variable to specify the worker source 2011-11-01 19:32:20 +01:00
Artur Adib
112115c013 Update README.md 2011-11-01 14:27:02 -03:00
Brendan Dahl
a2748cd84c Merge pull request #741 from arturadib/mozilla-repo
Search-replace URLs from andreasgal --> mozilla
2011-11-01 09:15:36 -07:00
Artur Adib
75bac7d97c andreasgal.github --> mozilla.github 2011-11-01 08:49:47 -04:00
Artur Adib
1f80b0b266 Replace andreasgal/pdf.js --> mozilla/pdf.js 2011-11-01 08:46:39 -04:00
Andreas Gal
99a4231e4a Merge pull request #737 from gigaherz/master
Fix missing urlencoding of pdf urls in the extension
2011-10-31 13:26:14 -07:00
gigaherz
2d8b0f7677 Properly fix the previous commit. 2011-10-31 21:18:41 +01:00
gigaherz
0d02ab5098 The extension should urlencode the pdf when sending it over to the viewer. 2011-10-31 20:44:29 +01:00
Brendan Dahl
f8b689fb26 Merge pull request #716 from brendandahl/alphatrans
Alpha Transparency Support
2011-10-31 10:37:29 -07:00
Brendan Dahl
77bbd1666e Merge pull request #736 from vingtetun/extension-unload
Add support for disabling the firefox extension on the fly
2011-10-31 09:03:12 -07:00
Brendan Dahl
3592baf39c Merge upstream 2011-10-31 08:51:45 -07:00
Vivien Nicolas
0331847927 Add support for disabling the firefox extension on the fly 2011-10-31 13:18:30 +01:00
Artur Adib
03c779a2e5 Merge pull request #733 from kkujala/dev
Name anonymous functions
2011-10-30 10:56:11 -07:00
Artur Adib
0538edbbeb Merge pull request #732 from kkujala/master
Name anonymous functions in core.js.
2011-10-30 10:56:00 -07:00
Kalervo Kujala
a7690dea0a Name anonymous functions in canvas.js. 2011-10-30 13:46:15 +02:00
Kalervo Kujala
8f3448e9a8 Name anonymous functions in colorspace.js. 2011-10-30 13:44:10 +02:00
Kalervo Kujala
11098d66dc Name anonymous functions in image.js. 2011-10-30 13:07:38 +02:00
Kalervo Kujala
ce3f9ae3e8 Name anonymous functions in core.js. 2011-10-30 12:41:55 +02:00
Andreas Gal
eed0773259 Merge pull request #722 from kkujala/master
Name a few anonymous functions.
2011-10-29 14:03:16 -07:00
Andreas Gal
ea7e9aab9c Merge pull request #725 from kkujala/dev
Name anonymous functions in obj.js.
2011-10-29 14:03:00 -07:00
Andreas Gal
e42a638643 Merge pull request #726 from kkujala/test
Name anonymous funtions in function.js.
2011-10-29 14:02:45 -07:00
Andreas Gal
6bf65979d4 Merge pull request #728 from notmasteryet/tree-36
Fixing 'compatibility.js' load order; add Object.keys emulation
2011-10-29 14:02:15 -07:00
notmasteryet
0912959503 Fixing 'compatibility.js' load order; add Object.keys emulation 2011-10-29 16:00:13 -05:00
Kalervo Kujala
dc15019248 Name anonymous funtions in function.js. 2011-10-29 20:59:49 +03:00
Kalervo Kujala
b9748a91f1 Name anonymous functions in obj.js. 2011-10-29 20:31:56 +03:00
Kalervo Kujala
8a5516c96c Rename Shanding related functions with better name names. 2011-10-29 17:57:31 +03:00
Kalervo Kujala
7e762169cf Name a few anonymous functions.
Also rename some functions.
2011-10-29 13:20:48 +03:00
Kalervo Kujala
d7c2e79cb8 Merge remote-tracking branch 'upstream/master' 2011-10-29 11:40:18 +03:00
notmasteryet
a7a6e41ec6 Merge pull request #702 from eloquentix/master
Fixed syntax error in Safari and corrected rendering logic for two methods
2011-10-28 20:29:19 -07:00
Ionuț G. Stan
d167552766 Merge branch 'master' of https://github.com/andreasgal/pdf.js 2011-10-29 01:43:03 +03:00
Ionuț G. Stan
56789aea47 Fix lint errors
Single quotes instead of double quotes
2011-10-29 01:26:55 +03:00
Brendan Dahl
11b843325b Add the alpha trans test pdf. 2011-10-28 14:11:14 -07:00
Brendan Dahl
5cb64fbab7 Initial alpha transparency support. 2011-10-28 14:10:10 -07:00
Artur Adib
2ade3b1370 Merge pull request #714 from kkujala/master
Name anonymous functions in worker.js.
2011-10-28 13:11:34 -07:00
Kalervo Kujala
588b79964a Merge remote-tracking branch 'upstream/master' 2011-10-28 21:38:17 +03:00
Kalervo Kujala
068e77bdec Name anonymous functions in worker.js. 2011-10-28 21:23:30 +03:00
Ionuț G. Stan
8a6cf185fd Add eq test for close path rendering bug
See: 56b9a3543d
2011-10-28 16:38:55 +03:00
Julian Viereck
1e6d1f9922 Make worker support work again after file split. Add PDFJS_WORKER_DIR/PDFJS_WORKER_FILE to specify where to load files if worker support is enabled 2011-10-28 14:32:36 +02:00
Ionuț G. Stan
b7573709c2 Merge branch 'master' of https://github.com/andreasgal/pdf.js
Conflicts:
	pdf.js
2011-10-28 14:34:56 +03:00
Ionuț G. Stan
009d6a8863 Log error stacktrace only when available
Safari does not provide a `stack` property on Error instances.
2011-10-28 14:27:41 +03:00
vingtetun
21a6467b23 Merge pull request #708 from kkujala/master
Fix js strict warning in worker.js.
2011-10-27 12:32:35 -07:00
Kalervo Kujala
7e6a589074 Fix js strict warning in worker.js.
Also fix a few minor nits.
2011-10-27 21:51:10 +03:00
vingtetun
b8dd054c7d Merge pull request #700 from arturadib/filesplit
File split
2011-10-27 10:37:19 -07:00
Ionuț G. Stan
0c321466dc Set DeviceGray as initial value for color space
See the PDF reference, section 4.3 Graphics State, table 4.2, third row.

> The current color space in which color values are to be interpreted
> (see Section 4.5, “Color Spaces”). There are two separate color space
> parameters: one for stroking and one for all other painting opera-
> tions. Initial value: DeviceGray.

The problem before was that certain PDFs didn't explicitly set the
color space, so a call to `setFillColor` or `setStrokeColor` were failing
when the `getRgb` method was call, as the color space was null.

See source code of CanvasGraphics.prototype.setFillColor/setStrokeColor.
2011-10-27 05:45:10 +03:00