Merge pull request #4824 from yurydelendik/movecs

Moves colorspace.js and function.js into core/
This commit is contained in:
Jonas Jenwald 2014-05-23 21:14:58 +02:00
commit 002607502c
14 changed files with 143 additions and 174 deletions

View file

@ -531,11 +531,6 @@ var Util = PDFJS.Util = (function UtilClosure() {
return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
};
Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
return Util.makeCssRgb(rgb);
};
// Concatenates two transformation matrices together and returns the result.
Util.transform = function Util_transform(m1, m2) {
return [
@ -968,20 +963,6 @@ function isRef(v) {
return v instanceof Ref;
}
function isPDFFunction(v) {
var fnDict;
if (typeof v != 'object') {
return false;
} else if (isDict(v)) {
fnDict = v;
} else if (isStream(v)) {
fnDict = v.dict;
} else {
return false;
}
return fnDict.has('FunctionType');
}
/**
* Promise Capability object.
*