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

Tweak PDFPageView to reflect that this.annotationLayer is an AnnotationsLayerBuilder instance, instead of a DOM element (PR 5552 follow-up) #6475

Merged
merged 1 commit into from
Sep 29, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

In PR #5552, specifically commit 9f384bb, the meaning of this.annotationLayer changed in PDFPageView. Previously it referred directly to a DOM element, but now it's instead an instance of AnnotationsLayerBuilder.
This patch tweaks things so that we won't try to hide a non-existent annotationLayer div in PDFPageView_reset, and also so that we don't attempt to insert empty (null) DOM elements in PDFPageView_draw.

…otationsLayerBuilder` instance, instead of a DOM element (PR 5552 follow-up)

In PR 5552, specifically commit 9f384bb, the meaning of `this.annotationLayer` changed in `PDFPageView`. Previously it referred directly to a DOM element, but now it's instead an instance of `AnnotationsLayerBuilder`.
This patch tweaks things so that we won't try to hide a non-existent `annotationLayer` div in `PDFPageView_reset`, and also so that we don't attempt to insert empty (`null`) DOM elements in `PDFPageView_draw`.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/5866e13b35337b9/output.txt

timvandermeij added a commit that referenced this pull request Sep 29, 2015
…er-div

Tweak `PDFPageView` to reflect that `this.annotationLayer` is an `AnnotationsLayerBuilder` instance, instead of a DOM element (PR 5552 follow-up)
@timvandermeij timvandermeij merged commit e28ad20 into mozilla:master Sep 29, 2015
@timvandermeij
Copy link
Contributor

Looks good, thanks!

@Snuffleupagus Snuffleupagus deleted the PDFPageView-annotationLayer-div branch September 30, 2015 08:57
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