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

Move/refactor the code in the BaseViewer.update method to reduce duplication in the extending classes #10466

Merged
merged 1 commit into from Jan 18, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

Since most of the important rendering code is already (almost) identical between PDFViewer.update and PDFSinglePageViewer.update, it's possible to further reduce duplication by moving the code into BaseViewer.update instead.

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows lint
/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/1e42a1d4774585a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/6ae882453c2d169/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/1e42a1d4774585a/output.txt

Total script time: 1.65 mins

Published

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/6ae882453c2d169/output.txt

Total script time: 2.39 mins

  • Lint: Passed

…plication in the extending classes

Since most of the important rendering code is already (almost) identical between `PDFViewer.update` and `PDFSinglePageViewer.update`, it's possible to further reduce duplication by moving the code into `BaseViewer.update` instead.
@timvandermeij timvandermeij merged commit 1bb5ca0 into mozilla:master Jan 18, 2019
@timvandermeij
Copy link
Contributor

Good find!

@Snuffleupagus Snuffleupagus deleted the BaseViewer-update branch January 18, 2019 23:46
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.

None yet

3 participants