[chromium] Use devicePixelRatio instead of screen DPI for computing viewport attributes
Created attachment 173318 [details] Patch
Note: this depends on https://codereview.chromium.org/11348033/.
Comment on attachment 173318 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173318&action=review > Source/WebKit/chromium/src/ChromeClientImpl.cpp:625 > - float devicePixelRatio = dpi / ViewportArguments::deprecatedTargetDPI; > + float devicePixelRatio = m_webView->client()->screenInfo().deviceScaleFactor; m_webView->client() -> client (We already have the client in a local variable.
Created attachment 173330 [details] Patch Use existing pointer to client.
Looks good to me - thanks! Hopefully once the other platforms have done this too we'll be able to get rid of ViewportArguments::deprecatedTargetDPI.
Comment on attachment 173330 [details] Patch Clearing flags on attachment: 173330 Committed r135150: <http://trac.webkit.org/changeset/135150>
All reviewed patches have been landed. Closing bug.