mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Backed out changeset a5b887c68abd (bug 1521413) for browser-chrome failures in browser/base/content/test/static/browser_all_files_referenced.js
This commit is contained in:
parent
0f58788069
commit
b91cc788ec
@ -1,5 +1,5 @@
|
||||
This is the PDF.js project output, https://github.com/mozilla/pdf.js
|
||||
|
||||
Current extension version is: 2.1.209
|
||||
Current extension version is: 2.1.196
|
||||
|
||||
Taken from upstream commit: f26129de
|
||||
Taken from upstream commit: cdbc33ba
|
||||
|
File diff suppressed because it is too large
Load Diff
4071
browser/extensions/pdfjs/content/build/pdf.worker.js
vendored
4071
browser/extensions/pdfjs/content/build/pdf.worker.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -28,13 +28,6 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
|
||||
<!-- This snippet is used in the Firefox extension (included from viewer.html) -->
|
||||
<base href="resource://pdf.js/web/">
|
||||
<script>
|
||||
(function() {
|
||||
if (typeof ReadableStream === "undefined") {
|
||||
document.write("<script src=\"../build/streams_polyfill.js\"><\/script>");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script src="../build/pdf.js"></script>
|
||||
|
||||
|
||||
|
@ -8168,15 +8168,25 @@ class PDFViewer extends _base_viewer.BaseViewer {
|
||||
return this._getCurrentVisiblePage();
|
||||
}
|
||||
|
||||
_updateHelper(visiblePages) {
|
||||
if (this.isInPresentationMode) {
|
||||
update() {
|
||||
let visible = this._getVisiblePages();
|
||||
|
||||
let visiblePages = visible.views,
|
||||
numVisiblePages = visiblePages.length;
|
||||
|
||||
if (numVisiblePages === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._resizeBuffer(numVisiblePages, visiblePages);
|
||||
|
||||
this.renderingQueue.renderHighestPriority(visible);
|
||||
let currentId = this._currentPageNumber;
|
||||
let stillFullyVisible = false;
|
||||
|
||||
for (const page of visiblePages) {
|
||||
for (let i = 0; i < numVisiblePages; ++i) {
|
||||
let page = visiblePages[i];
|
||||
|
||||
if (page.percent < 100) {
|
||||
break;
|
||||
}
|
||||
@ -8191,7 +8201,16 @@ class PDFViewer extends _base_viewer.BaseViewer {
|
||||
currentId = visiblePages[0].id;
|
||||
}
|
||||
|
||||
this._setCurrentPageNumber(currentId);
|
||||
if (!this.isInPresentationMode) {
|
||||
this._setCurrentPageNumber(currentId);
|
||||
}
|
||||
|
||||
this._updateLocation(visible.first);
|
||||
|
||||
this.eventBus.dispatch('updateviewarea', {
|
||||
source: this,
|
||||
location: this._location
|
||||
});
|
||||
}
|
||||
|
||||
get _isScrollModeHorizontal() {
|
||||
@ -8943,32 +8962,8 @@ class BaseViewer {
|
||||
};
|
||||
}
|
||||
|
||||
_updateHelper(visiblePages) {
|
||||
throw new Error('Not implemented: _updateHelper');
|
||||
}
|
||||
|
||||
update() {
|
||||
const visible = this._getVisiblePages();
|
||||
|
||||
const visiblePages = visible.views,
|
||||
numVisiblePages = visiblePages.length;
|
||||
|
||||
if (numVisiblePages === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._resizeBuffer(numVisiblePages, visiblePages);
|
||||
|
||||
this.renderingQueue.renderHighestPriority(visible);
|
||||
|
||||
this._updateHelper(visiblePages);
|
||||
|
||||
this._updateLocation(visible.first);
|
||||
|
||||
this.eventBus.dispatch('updateviewarea', {
|
||||
source: this,
|
||||
location: this._location
|
||||
});
|
||||
throw new Error('Not implemented: update');
|
||||
}
|
||||
|
||||
containsElement(element) {
|
||||
@ -10804,7 +10799,27 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer {
|
||||
return this._getCurrentVisiblePage();
|
||||
}
|
||||
|
||||
_updateHelper(visiblePages) {}
|
||||
update() {
|
||||
let visible = this._getVisiblePages();
|
||||
|
||||
let visiblePages = visible.views,
|
||||
numVisiblePages = visiblePages.length;
|
||||
|
||||
if (numVisiblePages === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._resizeBuffer(numVisiblePages);
|
||||
|
||||
this.renderingQueue.renderHighestPriority(visible);
|
||||
|
||||
this._updateLocation(visible.first);
|
||||
|
||||
this.eventBus.dispatch('updateviewarea', {
|
||||
source: this,
|
||||
location: this._location
|
||||
});
|
||||
}
|
||||
|
||||
get _isScrollModeHorizontal() {
|
||||
return (0, _pdfjsLib.shadow)(this, '_isScrollModeHorizontal', false);
|
||||
|
@ -20,7 +20,7 @@ origin:
|
||||
|
||||
# Human-readable identifier for this version/release
|
||||
# Generally "version NNN", "tag SSS", "bookmark SSS"
|
||||
release: version 2.1.209
|
||||
release: version 2.1.196
|
||||
|
||||
# The package's license, where possible using the mnemonic from
|
||||
# https://spdx.org/licenses/
|
||||
|
Loading…
Reference in New Issue
Block a user