mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Update the JS/CSS files for the new Prettier/Stylelint versions
This commit is contained in:
parent
49eba2f892
commit
c77b97daff
5 changed files with 6 additions and 5 deletions
|
@ -709,7 +709,7 @@ class WorkerMessageHandler {
|
||||||
fileIds: xref.trailer.get("ID") || null,
|
fileIds: xref.trailer.get("ID") || null,
|
||||||
startXRef: linearization
|
startXRef: linearization
|
||||||
? startXRef
|
? startXRef
|
||||||
: xref.lastXRefStreamPos ?? startXRef,
|
: (xref.lastXRefStreamPos ?? startXRef),
|
||||||
filename,
|
filename,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -294,7 +294,7 @@ function getDocument(src = {}) {
|
||||||
const enableHWA = src.enableHWA === true;
|
const enableHWA = src.enableHWA === true;
|
||||||
|
|
||||||
// Parameters whose default values depend on other parameters.
|
// Parameters whose default values depend on other parameters.
|
||||||
const length = rangeTransport ? rangeTransport.length : src.length ?? NaN;
|
const length = rangeTransport ? rangeTransport.length : (src.length ?? NaN);
|
||||||
const useSystemFonts =
|
const useSystemFonts =
|
||||||
typeof src.useSystemFonts === "boolean"
|
typeof src.useSystemFonts === "boolean"
|
||||||
? src.useSystemFonts
|
? src.useSystemFonts
|
||||||
|
|
|
@ -482,7 +482,7 @@ class AppOptions {
|
||||||
}
|
}
|
||||||
options[name] = defaultOnly
|
options[name] = defaultOnly
|
||||||
? defaultOption.value
|
? defaultOption.value
|
||||||
: userOptions[name] ?? defaultOption.value;
|
: (userOptions[name] ?? defaultOption.value);
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ class L10n {
|
||||||
constructor({ lang, isRTL }, l10n = null) {
|
constructor({ lang, isRTL }, l10n = null) {
|
||||||
this.#lang = L10n.#fixupLangCode(lang);
|
this.#lang = L10n.#fixupLangCode(lang);
|
||||||
this.#l10n = l10n;
|
this.#l10n = l10n;
|
||||||
this.#dir = isRTL ?? L10n.#isRTL(this.#lang) ? "rtl" : "ltr";
|
this.#dir = (isRTL ?? L10n.#isRTL(this.#lang)) ? "rtl" : "ltr";
|
||||||
}
|
}
|
||||||
|
|
||||||
_setL10n(l10n) {
|
_setL10n(l10n) {
|
||||||
|
|
|
@ -96,10 +96,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
|
/* stylelint-disable declaration-block-no-duplicate-properties */
|
||||||
/*#if !MOZCENTRAL*/
|
/*#if !MOZCENTRAL*/
|
||||||
background: rgba(0 0 255 / 0.25);
|
background: rgba(0 0 255 / 0.25);
|
||||||
/*#endif*/
|
/*#endif*/
|
||||||
/* stylelint-disable-next-line declaration-block-no-duplicate-properties */
|
/* stylelint-enable declaration-block-no-duplicate-properties */
|
||||||
background: color-mix(in srgb, AccentColor, transparent 75%);
|
background: color-mix(in srgb, AccentColor, transparent 75%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue