pdf.js/src/display
Jonas Jenwald 4ef1a129fa Replace the remaining Node.removeChild() instances with Element.remove()
Using `Element.remove()` is a slightly more compact way of removing an element, since you no longer need to explicitly find/use its parent element.
Furthermore, the patch also replaces a couple of loops that're used to delete all elements under a node with simply overwriting the contents directly (a pattern already used throughout the viewer).

See also:
 - https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild
 - https://developer.mozilla.org/en-US/docs/Web/API/Element/remove
2021-11-16 17:52:50 +01:00
..
annotation_layer.js Support rich content in markup annotation 2021-10-31 13:44:51 +01:00
annotation_storage.js Annotations - Avoid empty value in text field when storage contains something for it (bug 1719148) 2021-09-18 15:08:22 +02:00
api.js Use even more optional chaining in the src/display/api.js file 2021-10-12 12:05:59 +02:00
base_factory.js Re-factor the DOMSVGFactory to extend an abstract base class 2021-06-11 17:15:49 +02:00
canvas.js Create shading patterns the size of the current path. (bug 1722807) 2021-11-05 20:44:18 -07:00
content_disposition.js Use the stringToBytes helper function in more places 2021-05-22 12:23:09 +02:00
display_utils.js [api-minor] Add a wrapper around the addLinkAttributes-function, in the API, to the PDFLinkService implementations 2021-10-02 12:28:00 +02:00
fetch_stream.js Fix handling of fetch errors 2021-08-30 12:43:28 +01:00
font_loader.js Replace the remaining Node.removeChild() instances with Element.remove() 2021-11-16 17:52:50 +01:00
metadata.js Convert Metadata to use private class fields 2021-10-22 22:01:19 +02:00
network_utils.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
network.js Implement PDFNetworkStreamRangeRequestReader._onError, to handle range request errors with XMLHttpRequest (issue 9883) 2021-08-31 10:23:57 +02:00
node_stream.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
node_utils.js Move most functionality in the create methods into the BaseCanvasFactory 2021-06-11 17:15:47 +02:00
optional_content_config.js Treat all content as visible when no optional content groups are defined (issue 13971) 2021-09-04 08:13:37 +02:00
pattern_helper.js Create shading patterns the size of the current path. (bug 1722807) 2021-11-05 20:44:18 -07:00
svg.js Fix pattern handling regression in SVGGraphics (PR 13770 follow-up) 2021-10-18 21:40:10 +02:00
text_layer.js Fix issues in text selection 2021-10-17 16:27:05 +02:00
transport_stream.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js Support rich content in markup annotation 2021-10-31 13:44:51 +01:00
xfa_text.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00