[epiphany/mcatanzaro/pdfjs-2.6.347: 20/20] pdfjs: Update pdfjs changes patch




commit 995188511b31de4af1c813bf3b4b01de276d10fc
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Mon Apr 5 11:32:54 2021 +0200

    pdfjs: Update pdfjs changes patch

 third-party/pdfjs/epiphany-pdfjs-changes.patch | 57 ++++++++++++++++----------
 1 file changed, 36 insertions(+), 21 deletions(-)
---
diff --git a/third-party/pdfjs/epiphany-pdfjs-changes.patch b/third-party/pdfjs/epiphany-pdfjs-changes.patch
index 79317348a..69f488516 100644
--- a/third-party/pdfjs/epiphany-pdfjs-changes.patch
+++ b/third-party/pdfjs/epiphany-pdfjs-changes.patch
@@ -1,14 +1,13 @@
-diff --git a/third-party/pdfjs/web/viewer.css b/third-party/pdfjs/web/viewer.css
-index 605cad57e..21af9931d 100644
---- a/third-party/pdfjs/web/viewer.css
-+++ b/third-party/pdfjs/web/viewer.css
+diff -urN web2/viewer.css web/viewer.css
+--- web2/viewer.css    2020-09-03 23:18:08.000000000 +0200
++++ web/viewer.css     2021-04-05 11:25:24.181448360 +0200
 @@ -1,4 +1,5 @@
  /* Copyright 2014 Mozilla Foundation
 + * Modifications made for Epiphany by Jan-Michael Brummer <jan brummer tabos org>
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
-@@ -2361,6 +2362,7 @@ html[dir="rtl"] .dropdownToolbarButton::after {
+@@ -2361,6 +2362,7 @@
  }
  
  .dropdownToolbarButton > select {
@@ -16,7 +15,7 @@ index 605cad57e..21af9931d 100644
    width: 162px;
    height: 28px;
    font-size: 12px;
-@@ -3132,6 +3134,7 @@ html[dir="rtl"] .toolbarField[type="checkbox"] {
+@@ -3132,6 +3134,7 @@
  }
  
  .toolbarField.pageNumber {
@@ -24,10 +23,9 @@ index 605cad57e..21af9931d 100644
    -moz-appearance: textfield; /* hides the spinner in moz */
    min-width: 16px;
    text-align: right;
-diff --git a/third-party/pdfjs/web/viewer.html b/third-party/pdfjs/web/viewer.html
-index 123a47d2c..61f1a0e21 100644
---- a/third-party/pdfjs/web/viewer.html
-+++ b/third-party/pdfjs/web/viewer.html
+diff -urN web2/viewer.html web/viewer.html
+--- web2/viewer.html   2020-09-03 23:18:08.000000000 +0200
++++ web/viewer.html    2021-04-05 11:25:24.181448360 +0200
 @@ -1,6 +1,7 @@
  <!DOCTYPE html>
  <!--
@@ -36,7 +34,7 @@ index 123a47d2c..61f1a0e21 100644
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
-@@ -21,14 +22,14 @@ Adobe CMap resources are covered by their own copyright but the same license:
+@@ -21,14 +22,14 @@
  See https://github.com/adobe-type-tools/cmap-resources
  -->
  <html dir="ltr" mozdisallowselectionprint>
@@ -53,10 +51,27 @@ index 123a47d2c..61f1a0e21 100644
      <link rel="stylesheet" href="viewer.css">
  
  
-diff --git a/third-party/pdfjs/web/viewer.js b/third-party/pdfjs/web/viewer.js
-index d89902345..1d54e92c7 100644
---- a/third-party/pdfjs/web/viewer.js
-+++ b/third-party/pdfjs/web/viewer.js
+@@ -124,7 +125,7 @@
+               <span data-l10n-id="download_label">Download</span>
+             </button>
+ 
+-            <a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" 
title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
++            <a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark hidden" 
title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
+               <span data-l10n-id="bookmark_label">Current View</span>
+             </a>
+ 
+@@ -226,7 +227,7 @@
+                 <button id="download" class="toolbarButton download hiddenMediumView" title="Download" 
tabindex="34" data-l10n-id="download">
+                   <span data-l10n-id="download_label">Download</span>
+                 </button>
+-                <a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current 
view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark">
++                <a href="#" id="viewBookmark" class="toolbarButton bookmark hidden" title="Current view 
(copy or open in new window)" tabindex="35" data-l10n-id="bookmark">
+                   <span data-l10n-id="bookmark_label">Current View</span>
+                 </a>
+ 
+diff -urN web2/viewer.js web/viewer.js
+--- web2/viewer.js     2020-09-03 23:18:20.000000000 +0200
++++ web/viewer.js      2021-04-05 11:25:24.184448405 +0200
 @@ -3,6 +3,7 @@
   * Javascript code in this page
   *
@@ -65,7 +80,7 @@ index d89902345..1d54e92c7 100644
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
-@@ -1973,8 +1974,7 @@ function webViewerInitialized() {
+@@ -1973,8 +1974,7 @@
    let file;
    const queryString = document.location.search.substring(1);
    const params = (0, _ui_utils.parseQueryString)(queryString);
@@ -75,7 +90,7 @@ index d89902345..1d54e92c7 100644
    const fileInput = document.createElement("input");
    fileInput.id = appConfig.openFileInputName;
    fileInput.className = "fileInput";
-@@ -1982,12 +1982,8 @@ function webViewerInitialized() {
+@@ -1982,12 +1982,8 @@
    fileInput.oncontextmenu = _ui_utils.noContextMenuHandler;
    document.body.appendChild(fileInput);
  
@@ -90,7 +105,7 @@ index d89902345..1d54e92c7 100644
  
    fileInput.addEventListener("change", function (evt) {
      const files = evt.target.files;
-@@ -2049,8 +2045,18 @@ function webViewerInitialized() {
+@@ -2049,8 +2045,18 @@
      }
    }, true);
  
@@ -110,7 +125,7 @@ index d89902345..1d54e92c7 100644
    } catch (reason) {
      PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the 
PDF.").then(msg => {
        PDFViewerApplication.error(msg, reason);
-@@ -6877,6 +6883,8 @@ class PDFHistory {
+@@ -6877,6 +6883,8 @@
        }
      }
  
@@ -119,10 +134,10 @@ index d89902345..1d54e92c7 100644
      if (shouldReplace) {
        window.history.replaceState(newState, "", newUrl);
      } else {
-@@ -13897,4 +13905,4 @@ _app.PDFPrintServiceFactory.instance = {
+@@ -13897,4 +13905,4 @@
  
  /***/ })
  /******/ ]);
 -//# sourceMappingURL=viewer.js.map
-\ No newline at end of file
+\ Kein Zeilenumbruch am Dateiende.
 +//# sourceMappingURL=viewer.js.map


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]