Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Issue 140913003: [Android WebView] Reflect system font scale in WebView text rendering. (Closed)

Created:
6 years, 11 months ago by benm (inactive)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android WebView] Reflect system font scale in WebView text rendering. We should take into account the font scale factor the user has chosen when drawing text in the WebView. (Also fixes presubmit warnings in AwSettings.java) BUG=335343 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245582

Patch Set 1 #

Patch Set 2 : Fix presubmit warnings in AwSettings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 1 5 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
johnme
lgtm
6 years, 11 months ago (2014-01-16 23:35:15 UTC) #1
benm (inactive)
ptal Mikhail.
6 years, 11 months ago (2014-01-17 02:17:00 UTC) #2
mnaganov (inactive)
LGTM, thanks! Are we planning also to handle the system setting change while the application ...
6 years, 11 months ago (2014-01-17 09:20:46 UTC) #3
boliu
I'm gonna cq this for you so I can get past presubmit for https://codereview.chromium.org/140753006/ afterwards ...
6 years, 11 months ago (2014-01-17 16:46:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/140913003/50001
6 years, 11 months ago (2014-01-17 16:46:50 UTC) #5
benm (inactive)
On 2014/01/17 09:20:46, Mikhail Naganov (Cr) wrote: > LGTM, thanks! > > Are we planning ...
6 years, 11 months ago (2014-01-17 18:28:09 UTC) #6
commit-bot: I haz the power
Change committed as 245582
6 years, 11 months ago (2014-01-17 19:26:24 UTC) #7
mnaganov (inactive)
6 years, 11 months ago (2014-01-20 09:40:33 UTC) #8
Message was sent while issue was closed.
On 2014/01/17 18:28:09, benm wrote:
> On 2014/01/17 09:20:46, Mikhail Naganov (Cr) wrote:
> > LGTM, thanks!
> > 
> > Are we planning also to handle the system setting change while the
application
> > is running?
> 
> The font scale change is considered a Configuration change on Android, which
by
> default will restart activities; thus they will notice the new value when the
> WebView gets recreated. In testing, I noticed that this is the case for
Dolphin.
> 
> If an app elects to handle the configuration change themselves (e.g. BBC
News),
> then the app won't pick up the new setting until it is manually restarted.
This
> is a kind of sucky experience, but I'm not sure that there's anything we can
do
> at the View level to fix this (the callback for Configuration changes occurs
on
> the Activity). The other option would be to add an API to set the font scale
> factor which an app handling Configuration changes itself could invoke, but
that
> will require an Android API bump, and to be honest I'm not entirely convinced
> it's worth another knob to twiddle on WebSettings.

I agree, no need for that. Thanks for the explanation!

Powered by Google App Engine
This is Rietveld 408576698