1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/web
Jonas Jenwald ca244d9bca Introduce a viewer constant for document.documentElement.style
Over time, as we've been introducing JavaScript code to modify CSS variables, we've been adding shorthand properties to various classes to reduce unnecessary repetition when accessing the document-styles.
Rather than repeating this in multiple places, it seems overall simpler to just introduce a constant and re-use that throughout the viewer instead.
2022-05-25 09:55:54 +02:00
..
images Remove the custom grab/grabbing cursor image files 2022-03-14 14:36:38 +01:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css [api-minor] Render pushbuttons on their own canvas (bug 1737260) 2021-11-12 15:37:33 +01:00
annotation_layer_builder.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
app.js Merge pull request #14948 from Pldi23/drag&drop_not_work_from_mail 2022-05-22 15:34:15 +02:00
app_options.js Re-order the names of the new pageColors options/preferences (PR 14874 follow-up) 2022-05-08 11:15:04 +02:00
base_tree_viewer.js [api-minor] Move removeNullCharacters into the viewer 2022-01-06 12:25:33 +01:00
base_viewer.js Introduce a viewer constant for document.documentElement.style 2022-05-25 09:55:54 +02:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Re-factor the OverlayManager class to use a WeakMap internally 2022-03-28 11:36:31 +02:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.css Move the PDFBug-related CSS from viewer.css and into its own file 2022-04-16 14:16:39 +02:00
debugger.js Move the PDFBug-related CSS from viewer.css and into its own file 2022-04-16 14:16:39 +02:00
default_factory.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
download_manager.js Remove the sourceEventType from the viewer (bug 1757771 follow-up) 2022-05-15 18:18:37 +02:00
event_utils.js Move the EventBus, and related functionality, into its own file 2021-12-15 17:18:57 +01:00
firefox_print_service.js Re-factor the CSS_PIXELS_PER_INCH/PDF_PIXELS_PER_INCH exports (PR 13991 follow-up) 2021-09-11 11:15:25 +02:00
firefoxcom.js [Firefox viewer] Stop using FirefoxCom.requestAsync in the DownloadManager 2022-05-15 18:18:37 +02:00
generic_scripting.js [JS] Use beforeinput event to trigger a keystroke event in the sandbox 2022-01-23 19:53:01 +01:00
genericcom.js Revert Preferences to their previous values, when writing to storage failed 2022-03-12 17:25:45 +01:00
genericl10n.js Fix broken/missing JSDocs and typedefs, to allow updating TypeScript to the latest version (issue 14342) 2021-12-15 23:14:25 +01:00
grab_to_pan.js Convert GrabToPan to a standard class 2021-11-13 23:07:36 +01:00
interfaces.js Remove the sourceEventType from the viewer (bug 1757771 follow-up) 2022-05-15 18:18:37 +02:00
l10n_utils.js [GENERIC viewer] Try to fixup "incomplete" language codes (issue 13689) 2021-07-08 12:54:58 +02:00
overlay_manager.js Add a <dialog> polyfill for the generic-legacy build 2022-03-28 11:36:31 +02:00
password_prompt.js Re-factor the OverlayManager class to use a WeakMap internally 2022-03-28 11:36:31 +02:00
pdf_attachment_viewer.js Try to fix dispatching of "attachmentsloaded"-events, when the document contains no "regular" attachments (PR 8788, 12163 follow-up) 2022-05-08 12:12:49 +02:00
pdf_cursor_tools.js Use proper private methods in web/pdf_cursor_tools.js 2022-03-06 16:06:53 +01:00
pdf_document_properties.js Re-factor the OverlayManager class to use a WeakMap internally 2022-03-28 11:36:31 +02:00
pdf_find_bar.js [GENERIC viewer] Try to improve a11y, for search results, in the findbar (issue 14525) 2022-03-31 23:12:56 +02:00
pdf_find_controller.js Convert all "private" methods in PDFFindController into proper ones 2022-03-19 12:26:03 +01:00
pdf_find_utils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
pdf_history.js Tweak the pdfOpenParams parameter, in the "updateviewarea" event, in PresentationMode 2022-04-05 14:13:20 +02:00
pdf_layer_viewer.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
pdf_link_service.js Fix a couple of small typos in JSDoc typedef comments 2022-03-04 12:11:52 +01:00
pdf_outline_viewer.js Tweak the "pagesloaded" event handler in PDFOutlineViewer 2021-12-05 11:04:17 +01:00
pdf_page_view.js Introduce a viewer constant for document.documentElement.style 2022-05-25 09:55:54 +02:00
pdf_presentation_mode.js Add (basic) support for Spread modes in PresentationMode (issue 14749) 2022-05-05 11:53:09 +02:00
pdf_print_service.js Re-factor the OverlayManager class to use a WeakMap internally 2022-03-28 11:36:31 +02:00
pdf_rendering_queue.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
pdf_scripting_manager.js Remove the sourceEventType from the viewer (bug 1757771 follow-up) 2022-05-15 18:18:37 +02:00
pdf_sidebar.js Always remove the sidebarMoving CSS class when the sidebar is closed 2022-04-11 19:46:10 +02:00
pdf_sidebar_resizer.js Introduce a viewer constant for document.documentElement.style 2022-05-25 09:55:54 +02:00
pdf_thumbnail_view.js Try to remove the mozOpaque canvas-property (PR 6551 follow-up) 2022-05-09 13:03:08 +02:00
pdf_thumbnail_viewer.js Use more for...of loops in the viewer 2022-04-23 12:48:54 +02:00
pdf_viewer.component.js Use the (viewer) parseQueryString helper function in the reference tests 2022-02-19 09:41:04 +01:00
pdf_viewer.css Introduce a --viewer-container-height CSS variable to simplify the code 2022-05-06 13:45:39 +02:00
pdf_viewer.js Move PDFSinglePageViewer into the web/pdf_viewer.js file 2021-10-12 13:45:19 +02:00
pdfjs.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
preferences.js Revert Preferences to their previous values, when writing to storage failed 2022-03-12 17:25:45 +01:00
print_utils.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
secondary_toolbar.js Stop bundling the openFile-buttons in the CHROME build 2022-05-07 22:45:56 +02:00
struct_tree_layer_builder.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
text_highlighter.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
text_layer_builder.css Avoid the textLayer becoming visible in high contrast mode (issue 13230) 2022-03-24 14:20:27 +01:00
text_layer_builder.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00
toolbar.js Introduce a viewer constant for document.documentElement.style 2022-05-25 09:55:54 +02:00
ui_utils.js Introduce a viewer constant for document.documentElement.style 2022-05-25 09:55:54 +02:00
view_history.js Add a bit more validation in the ViewHistory constructor 2020-03-21 13:55:06 +01:00
viewer-snippet-chrome-extension.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer-snippet-chrome-overlays.html Convert the existing overlays to use <dialog> elements (issue 14698) 2022-03-28 11:36:29 +02:00
viewer-snippet-firefox-extension.html Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up) 2019-01-23 20:33:20 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer.css Use a CSS transform to update the progress bar instead of changing the width (bug 1768481) 2022-05-15 17:30:37 +02:00
viewer.html Stop bundling the openFile-buttons in the CHROME build 2022-05-07 22:45:56 +02:00
viewer.js Stop bundling the openFile-buttons in the CHROME build 2022-05-07 22:45:56 +02:00
xfa_layer_builder.css XFA - Fix xfaLink class to make links work (bug 1735738) 2021-10-29 11:39:33 -04:00
xfa_layer_builder.js Move the Default{...}LayerFactory into a new web/default_factory.js file 2021-12-15 23:17:08 +01:00