PDF Viewer: Remove PDFMetrics namespace and static functions.
Namespaces made sense in a pre-JS Module world, as a way to group related functionality together. In the context of a JS module, it no longer adds any benefit, as the client of a module can either import explicitly only what is needed, or import all exported functions with a namespace of their choice like import * as foo from './module.js'; Bug: None Change-Id: I6938c6fead73a1ef138e26183e2a880b95345a3b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2628070 Commit-Queue: John Lee <johntlee@chromium.org> Auto-Submit: dpapad <dpapad@chromium.org> Reviewed-by:John Lee <johntlee@chromium.org> Cr-Commit-Position: refs/heads/master@{#843744}
Showing
Please register or sign in to comment