Move PageViewport from src/shared/util.js to src/display/dom_utils.js

Since the `PageViewport` is not used in the worker, duplicating this code on both the main and worker sides seems completely unnecessary.
This commit is contained in:
Jonas Jenwald 2018-06-04 12:36:26 +02:00
parent f486051d77
commit 08c8f8733d
3 changed files with 141 additions and 141 deletions

View file

@ -17,12 +17,12 @@
import {
assert, createPromiseCapability, getVerbosityLevel, info, InvalidPDFException,
isArrayBuffer, isNum, isSameOrigin, MessageHandler, MissingPDFException,
NativeImageDecoding, PageViewport, PasswordException, setVerbosityLevel,
shadow, stringToBytes, UnexpectedResponseException, UnknownErrorException,
NativeImageDecoding, PasswordException, setVerbosityLevel, shadow,
stringToBytes, UnexpectedResponseException, UnknownErrorException,
unreachable, Util, warn
} from '../shared/util';
import {
DOMCanvasFactory, DOMCMapReaderFactory, DummyStatTimer,
DOMCanvasFactory, DOMCMapReaderFactory, DummyStatTimer, PageViewport,
RenderingCancelledException, StatTimer
} from './dom_utils';
import { FontFaceObject, FontLoader } from './font_loader';