DescriptionSet deviceScaleFactor on the renderer WebView to enable scaling when not in fixed-layout mode.
With https://bugs.webkit.org/show_bug.cgi?id=86051 we have stopped setting the WebView's deviceScaleFactor based on the defaultDeviceScaleFactor in WebSettings. This is because the deviceScaleFactor == defaultDeviceScaleFactor decision is based on if we are in fixed-layout mode. And the decision to enable fixed-layout mode is done in RenderViewImpl.
So now, when not in fixed-layout mode, RenderViewImpl will set the deviceScaleFactor and pageScaleFactorLimits directly on the WebView.
This allows us to set them once on initialization instead of on each page load etc.
If/when we enable viewport on a per-page basis, this will be revisted, together with how we enable fixed-layout mode.
BUG=126875
TEST=Should --default-device-scale-factor=2 enable hi-dpi web contents.
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|