[webkit-reviews] review requested: [Bug 106021] WIP [Chromium] Add support for emulating legacy Android WebView 'UseWideViewport' setting : [Attachment 181500] Factored out dpiIndependentSize

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 7 06:38:08 PST 2013


Mikhail Naganov <mnaganov at chromium.org> has asked  for review:
Bug 106021: WIP [Chromium] Add support for emulating legacy Android WebView
'UseWideViewport' setting
https://bugs.webkit.org/show_bug.cgi?id=106021

Attachment 181500: Factored out dpiIndependentSize
https://bugs.webkit.org/attachment.cgi?id=181500&action=review

------- Additional Comments from Mikhail Naganov <mnaganov at chromium.org>
> For this, please add a new method:
>
> FloatSize WebViewImpl::dpiIndependentSize() const;
>
> And this method should return just m_size if the setting
applyDeviceScaleInCompositor is true.

Done. But I can't add it to the WebView.h interface since FloatSize is a
WebCore type. There is no corresponding type in the public API. The closest
ones are WebFloatPoint and WebFloatRect. Do you think it's OK to leave this
method to be impl-only? Or perhaps we should clamp up floats and return
WebSize?


More information about the webkit-reviews mailing list