diff options
| author | Jonathan Dixon <joth@google.com> | 2013-02-27 16:42:48 -0800 |
|---|---|---|
| committer | Jonathan Dixon <joth@google.com> | 2013-02-27 16:48:28 -0800 |
| commit | 89f48e9ffc3313c39c2dbf3e30154510199c6a5b (patch) | |
| tree | bc20362551bb697062d13808691f155be32c842c /core/java/android/webkit/WebView.java | |
| parent | 9ad665417713398524d425f63b0d6fa751244237 (diff) | |
| download | frameworks_base-89f48e9ffc3313c39c2dbf3e30154510199c6a5b.zip frameworks_base-89f48e9ffc3313c39c2dbf3e30154510199c6a5b.tar.gz frameworks_base-89f48e9ffc3313c39c2dbf3e30154510199c6a5b.tar.bz2 | |
Remove obsolete target-densitydpi documentation
Bug: 7999930
In general WebView.java is not a good place for HTML/CSS reference
guide, and more specifically target-densitydpi is an obsolete CSS
feature that is being phased out in modern browsers.
http://petelepage.com/blog/2013/02/viewport-target-densitydpi-support-is-being-deprecated/
Change-Id: Idd5cf09bb44e9f5f13f57e5f1c4b5c8ae1fc069b
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 1321515..b307d97 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -208,8 +208,7 @@ import java.util.Map; * and default scaling is not applied to the web page; if the value is "1.5", then the device is * considered a high density device (hdpi) and the page content is scaled 1.5x; if the * value is "0.75", then the device is considered a low density device (ldpi) and the content is - * scaled 0.75x. However, if you specify the {@code "target-densitydpi"} meta property - * (discussed below), then you can stop this default scaling behavior.</li> + * scaled 0.75x.</li> * <li>The {@code -webkit-device-pixel-ratio} CSS media query. Use this to specify the screen * densities for which this style sheet is to be used. The corresponding value should be either * "0.75", "1", or "1.5", to indicate that the styles are for devices with low density, medium @@ -219,29 +218,6 @@ import java.util.Map; * <p>The {@code hdpi.css} stylesheet is only used for devices with a screen pixel ration of 1.5, * which is the high density pixel ratio.</p> * </li> - * <li>The {@code target-densitydpi} property for the {@code viewport} meta tag. You can use - * this to specify the target density for which the web page is designed, using the following - * values: - * <ul> - * <li>{@code device-dpi} - Use the device's native dpi as the target dpi. Default scaling never - * occurs.</li> - * <li>{@code high-dpi} - Use hdpi as the target dpi. Medium and low density screens scale down - * as appropriate.</li> - * <li>{@code medium-dpi} - Use mdpi as the target dpi. High density screens scale up and - * low density screens scale down. This is also the default behavior.</li> - * <li>{@code low-dpi} - Use ldpi as the target dpi. Medium and high density screens scale up - * as appropriate.</li> - * <li><em>{@code <value>}</em> - Specify a dpi value to use as the target dpi (accepted - * values are 70-400).</li> - * </ul> - * <p>Here's an example meta tag to specify the target density:</p> - * <pre><meta name="viewport" content="target-densitydpi=device-dpi" /></pre></li> - * </ul> - * <p>If you want to modify your web page for different densities, by using the {@code - * -webkit-device-pixel-ratio} CSS media query and/or the {@code - * window.devicePixelRatio} DOM property, then you should set the {@code target-densitydpi} meta - * property to {@code device-dpi}. This stops Android from performing scaling in your web page and - * allows you to make the necessary adjustments for each density via CSS and JavaScript.</p> * * <h3>HTML5 Video support</h3> * |
