pdf.js/src/display
Jonas Jenwald 7b0836ca75 [TextLayer] Immediately set the padding, rather than checking if it's empty, in expandTextDivs
In practice it's extremely rare[1] for the padding to be zero in *all* components, hence it seems better to just set it directly rather than creating a temporary variable and checking for the "no padding"-case.

---
[1] In the `tracemonkey.pdf` file that only happens with `0.08%` of all text elements.
2020-02-11 15:52:36 +01:00
..
annotation_layer.js Render Popup annotations last, once all other annotations have been rendered (issue 11362) 2020-01-26 15:49:55 +01:00
api_compatibility.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
api.js [api-minor] Change PDFDocumentProxy.cleanup/PDFPageProxy.cleanup to return data 2020-02-07 17:00:29 +01:00
canvas.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
content_disposition.js Fix remaining linting errors, from enabling the prefer-const ESLint rule globally 2020-01-25 00:20:23 +01:00
display_utils.js Fix remaining linting errors, from enabling the prefer-const ESLint rule globally 2020-01-25 00:20:23 +01:00
fetch_stream.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
font_loader.js Replace most remaining Element.setAttribute("style", ...) usage with Element.style = ... instead 2020-02-05 22:26:47 +01:00
metadata.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
network_utils.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
network.js Remove the FIREFOX build flag, since it's completely unused 2020-01-21 00:06:15 +01:00
node_stream.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
pattern_helper.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
svg.js Fix how curveTo2 (v operator) is translated to SVG 2020-02-02 17:03:29 +01:00
text_layer.js [TextLayer] Immediately set the padding, rather than checking if it's empty, in expandTextDivs 2020-02-11 15:52:36 +01:00
transport_stream.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
webgl.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
worker_options.js Update the GlobalWorkerOptions.workerSrc JSDoc comment 2020-01-19 12:44:42 +01:00
xml_parser.js Fix remaining linting errors, from enabling the prefer-const ESLint rule globally 2020-01-25 00:20:23 +01:00