ol.BrowserFeature.DEVICE_PIXEL_RATIO and canvas size

The canvas size is used instead of the frame size because they can differ (they will differ when the ol.BrowserFeature.DEVICE_PIXEL_RATIO will be taken into account)