Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the existing ColorSpace in two classes, a private ColorSpace and a public ColorSpaceFactory, and utilize the latter in PDFDocument to allow various code to access the methods of ColorSpace #8978

Closed
wants to merge 5 commits into from

Conversation

Snuffleupagus
Copy link
Collaborator

Follows the same pattern as PR #8968.

`ColorSpace` will now only contain the static methods, while the others are moved to the new `BaseAbstractCS` class which the various colour space classes will inherit from.
To reduce duplication, we're now using `Util.inherit` for all the classes that "extends" the new `BaseAbstractCS`.
…ather than a bunch of (somewhat) randomly ordered parameters
…` and a public `ColorSpaceFactory`, and utilize the latter in `PDFDocument` to allow various code to access the methods of `ColorSpace`

*Follows the same pattern as PR 8968.*
…ns where it's no longer necessary

In quite a few `src/core` files we were passing in `xref` to various code, only because `ColorSpace` or `PDFFunction` needed it. Since that has now been re-factored, we can simplify the affected signatures.
@mozilla mozilla deleted a comment from pdfjsbot Oct 25, 2017
@mozilla mozilla deleted a comment from pdfjsbot Oct 25, 2017
@mozilla mozilla deleted a comment from pdfjsbot Oct 25, 2017
@mozilla mozilla deleted a comment from pdfjsbot Oct 25, 2017
@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/101cab4ec2f3df0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/9b78318776de602/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/9b78318776de602/output.txt

Total script time: 16.93 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/101cab4ec2f3df0/output.txt

Total script time: 23.32 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@Snuffleupagus Snuffleupagus deleted the ColorSpaceFactory-2 branch February 3, 2018 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants