Summary: | [chromium] Use devicePixelRatio instead of screen DPI for computing viewport attributes | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sami Kyöstilä <skyostil> | ||||||
Component: | New Bugs | Assignee: | Sami Kyöstilä <skyostil> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, fsamuel, johnme, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 101769 | ||||||||
Attachments: |
|
Description
Sami Kyöstilä
2012-11-09 08:54:38 PST
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. |