GoogleGit

commitf10585d69aaccf4c1b021df143ee0f08e338cf31[log][tgz]
authorGrace Kloba <klobag@google.com>Sun Sep 20 16:34:19 2009 -0700
committerGrace Kloba <klobag@google.com>Mon Sep 21 13:43:58 2009 -0700
tree235a1caed1645e53bd196e3cf024185e9f1e827f
parent19d8bd10cbc60aee378a8762c27b264a4813445b[diff]
Add dpi support for WebView.

In the "viewport" meta tag, you can specify "target-densityDpi".
If it is not specified, it uses the default, 160dpi as of today.
Then the 1.0 scale factor specified in the viewport tag means 100%
on G1 and 150% on Sholes. If you set "target-densityDpi" to
"device-dpi", then the 1.0 scale factor means 100% on both G1 and Sholes.

Implemented Safari's window.devicePixelRatio and css media query
device-pixel-ratio.

So if you use "device-dpi" and modify the css for font-size and image
src depending on window.devicePixelRatio, you can get a better page on
Sholes/Passion.

Here is a list of options for "target-densityDpi".

device-dpi:    Use the device's native dpi as target dpi.
low-dpi:       120dpi
medium-dpi:    160dpi, which is also the default as of today
high-dpi:      240dpi
<number>:      We take any number between 70 and 400 as a valid target dpi.

Fix http://b/issue?id=2071943
6 files changed
tree: 235a1caed1645e53bd196e3cf024185e9f1e827f
  1. .gitignore
  2. Android.jsc.mk
  3. Android.mk
  4. Android.v8.mk
  5. JavaScriptCore/
  6. JavaScriptGlue/
  7. NOTICE
  8. SunSpider/
  9. V8Binding/
  10. WEBKIT_MERGE_REVISION
  11. WebCore/
  12. WebKit/
  13. WebKitExamplePlugins/
  14. WebKitLibraries/
  15. WebKitTools/
  16. autotools/
  17. bison_check.mk
  18. perf/