зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0f58788069
Коммит
b91cc788ec
|
@ -1,5 +1,5 @@
|
||||||
This is the PDF.js project output, https://github.com/mozilla/pdf.js
|
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
|
||||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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) -->
|
<!-- This snippet is used in the Firefox extension (included from viewer.html) -->
|
||||||
<base href="resource://pdf.js/web/">
|
<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>
|
<script src="../build/pdf.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8168,15 +8168,25 @@ class PDFViewer extends _base_viewer.BaseViewer {
|
||||||
return this._getCurrentVisiblePage();
|
return this._getCurrentVisiblePage();
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateHelper(visiblePages) {
|
update() {
|
||||||
if (this.isInPresentationMode) {
|
let visible = this._getVisiblePages();
|
||||||
|
|
||||||
|
let visiblePages = visible.views,
|
||||||
|
numVisiblePages = visiblePages.length;
|
||||||
|
|
||||||
|
if (numVisiblePages === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._resizeBuffer(numVisiblePages, visiblePages);
|
||||||
|
|
||||||
|
this.renderingQueue.renderHighestPriority(visible);
|
||||||
let currentId = this._currentPageNumber;
|
let currentId = this._currentPageNumber;
|
||||||
let stillFullyVisible = false;
|
let stillFullyVisible = false;
|
||||||
|
|
||||||
for (const page of visiblePages) {
|
for (let i = 0; i < numVisiblePages; ++i) {
|
||||||
|
let page = visiblePages[i];
|
||||||
|
|
||||||
if (page.percent < 100) {
|
if (page.percent < 100) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -8191,7 +8201,16 @@ class PDFViewer extends _base_viewer.BaseViewer {
|
||||||
currentId = visiblePages[0].id;
|
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() {
|
get _isScrollModeHorizontal() {
|
||||||
|
@ -8943,32 +8962,8 @@ class BaseViewer {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateHelper(visiblePages) {
|
|
||||||
throw new Error('Not implemented: _updateHelper');
|
|
||||||
}
|
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
const visible = this._getVisiblePages();
|
throw new Error('Not implemented: update');
|
||||||
|
|
||||||
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
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
containsElement(element) {
|
containsElement(element) {
|
||||||
|
@ -10804,7 +10799,27 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer {
|
||||||
return this._getCurrentVisiblePage();
|
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() {
|
get _isScrollModeHorizontal() {
|
||||||
return (0, _pdfjsLib.shadow)(this, '_isScrollModeHorizontal', false);
|
return (0, _pdfjsLib.shadow)(this, '_isScrollModeHorizontal', false);
|
||||||
|
|
|
@ -20,7 +20,7 @@ origin:
|
||||||
|
|
||||||
# Human-readable identifier for this version/release
|
# Human-readable identifier for this version/release
|
||||||
# Generally "version NNN", "tag SSS", "bookmark SSS"
|
# 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
|
# The package's license, where possible using the mnemonic from
|
||||||
# https://spdx.org/licenses/
|
# https://spdx.org/licenses/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче