Revert "Let both minimum font-size settings apply to CSS px units."
This reverts commit bbbb1fad. Reason for revert: broke WebTests on WebKit Mac10.13 (retina) https://ci.chromium.org/p/chromium/builders/ci/WebKit%20Mac10.13%20%28retina%29/28885 Original change's description: > Let both minimum font-size settings apply to CSS px units. > > Applying the minimum font-size to the device pixels would not give the > expected result, either for using zoom for DSF, or applying page zoom. > > I added the documentation for the settings based on what I found on > stackoverflow: > > https://stackoverflow.com/questions/52943595/cannot-understand-android-webview-documentation > > The behavior changes for both the non-"logical" setting in that we will > still apply a minimum font-size even if the zoomed font-size would have > become larger than the minimum font-size in device-pixels. That is, if > we have a minimum font-size of 20px and two elements, one with a 10px > font-size and the other with a 20px font-size, they will both be > rendered at 40 device pixel size at 200% zoom. > > This changes the behavior for the logical setting when we have a page > zoom factor which is lower than 100%, where we also now just adjust the > CSS px font-size before zooming is applied. > > The logical setting is only exposed via the Android WebView API or via > a hand-edited config file. The minimum font-size setting the > chrome://settings is the non-"logical" one. > > If the settings object is null, return the font-size without minimum > sizes applied instead of the not-so-useful 1px return we had. > > Bug: 1082127 > Change-Id: Idc03bf37fb7d39206ad4d4dc50eef01b56a69ddb > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2199134 > Reviewed-by: Philip Rogers <pdr@chromium.org> > Reviewed-by: Dominik Röttsches <drott@chromium.org> > Commit-Queue: Rune Lillesveen <futhark@chromium.org> > Cr-Commit-Position: refs/heads/master@{#770661} TBR=pdr@chromium.org,chrishtr@chromium.org,drott@chromium.org,pdr@google.com,futhark@chromium.org Change-Id: I70d34b6df1b42075781d4c29b753b7ae8ebe767c No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1082127 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210359Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#770977}
Showing






File moved

80.5 KB
3.44 KB


80.5 KB
8.7 KB

30.9 KB
31.1 KB
11.1 KB
3.46 KB
8.36 KB
2.97 KB
17.6 KB
80.4 KB
79.6 KB
31 KB
31.2 KB
11.1 KB
3.34 KB
3.01 KB
18 KB
79.9 KB





81.1 KB
81 KB