Skip to content

Commit b999d5c

Browse files
Merge pull request #20060 from noritaka1166/fix-typos
Fix typos across the codebase
2 parents 729f2bb + fa568e8 commit b999d5c

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

extensions/chromium/pdfHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function registerPdfRedirectRule() {
6969
},
7070
};
7171

72-
// Rules in order of prority (highest priority rule first).
72+
// Rules in order of priority (highest priority rule first).
7373
// The required "id" fields will be auto-generated later.
7474
const addRules = [
7575
{

src/core/annotation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,7 @@ class WidgetAnnotation extends Annotation {
23912391

23922392
if (encodingError && intent & RenderingIntentFlag.SAVE) {
23932393
// We don't have a way to render the field, so we just rely on the
2394-
// /NeedAppearances trick to let the different sofware correctly render
2394+
// /NeedAppearances trick to let the different software correctly render
23952395
// this pdf.
23962396
return { needAppearances: true };
23972397
}

src/core/evaluator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ class PartialEvaluator {
27452745
// This is not a 0, 90, 180, 270 rotation so:
27462746
// - remove the scale factor from the matrix to get a rotation matrix
27472747
// - apply the inverse (which is the transposed) to the positions
2748-
// and we can then compare positions of the glyphes to detect
2748+
// and we can then compare positions of the glyphs to detect
27492749
// a whitespace.
27502750
[posX, posY] = applyInverseRotation(posX, posY, currentTransform);
27512751
[lastPosX, lastPosY] = applyInverseRotation(
@@ -3823,7 +3823,7 @@ class PartialEvaluator {
38233823
// According to the spec if the font is a simple font we should only map
38243824
// to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
38253825
// the differences array only contains adobe standard or symbol set names,
3826-
// in pratice it seems better to always try to create a toUnicode map
3826+
// in practice it seems better to always try to create a toUnicode map
38273827
// based of the default encoding.
38283828
if (!properties.composite /* is simple font */) {
38293829
return new ToUnicodeMap(this._simpleFontToUnicode(properties));

src/core/fonts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,7 @@ class Font {
25062506
}
25072507
}
25082508
}
2509-
// Adjusting stack not extactly, but just enough to get function id
2509+
// Adjusting stack not exactly, but just enough to get function id
25102510
if (!inFDEF && !inELSE) {
25112511
let stackDelta = 0;
25122512
if (op <= 0x8e) {

src/core/image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ class PDFImage {
237237
this.jpxDecoderOptions.numComponents = hasColorSpace
238238
? this.numComps
239239
: 0;
240-
// If the jpx image has a color space then it musn't be used in order to
241-
// be able to use the color space that comes from the pdf.
240+
// If the jpx image has a color space then it mustn't be used in order
241+
// to be able to use the color space that comes from the pdf.
242242
this.jpxDecoderOptions.isIndexedColormap =
243243
this.colorSpace.name === "Indexed";
244244
}

src/core/image_resizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ImageResizer {
8383

8484
// TODO: the computation can be a bit long because we potentially allocate
8585
// some large canvas, so in the Firefox case this value (and MAX_DIM) can be
86-
// infered from prefs (MAX_AREA = gfx.max-alloc-size / 4, 4 is because of
86+
// inferred from prefs (MAX_AREA = gfx.max-alloc-size / 4, 4 is because of
8787
// RGBA).
8888
this.#goodSquareLength = this._guessMax(
8989
this.#goodSquareLength,

src/core/xfa/formcalc_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const OPERAND = false;
241241
// operation ('... * - ...' can't be a subtraction).
242242
// Each time an operator is met its precedence is compared with the one of the
243243
// operator on top of operators stack:
244-
// - if top has precendence on operator then top is applied to the operands
244+
// - if top has precedence on operator then top is applied to the operands
245245
// on their stack;
246246
// - else just push the operator.
247247
// For example: 1 + 2 * 3

src/display/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ class CanvasGraphics {
10271027
);
10281028
const fillCtx = fillCanvas.context;
10291029

1030-
// The offset will be the top-left cordinate mask.
1030+
// The offset will be the top-left coordinate mask.
10311031
// If objToCanvas is [a,b,c,d,e,f] then:
10321032
// - offsetX = min(a, c) + e
10331033
// - offsetY = min(b, d) + f

src/display/editor/annotation_editor_layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ class AnnotationEditorLayer {
530530

531531
/**
532532
* An editor can have a different parent, for example after having
533-
* being dragged and droped from a page to another.
533+
* being dragged and dropped from a page to another.
534534
* @param {AnnotationEditor} editor
535535
*/
536536
changeParent(editor) {

src/shared/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ function _isValidExplicitDest(validRef, validName, dest) {
11851185
return true;
11861186
}
11871187

1188-
// TOOD: Replace all occurrences of this function with `Math.clamp` once
1188+
// TODO: Replace all occurrences of this function with `Math.clamp` once
11891189
// https://github.com/tc39/proposal-math-clamp/ is generally available.
11901190
function MathClamp(v, min, max) {
11911191
return Math.min(Math.max(v, min), max);

0 commit comments

Comments
 (0)