Commit c77b9979 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Document use of TextZoomFactor().

Change-Id: I83c453ef425d239912775aac6db791cec6c13e09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800165
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: default avatarMorten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695976}
parent 05b6c937
......@@ -238,7 +238,8 @@ float FontBuilder::GetComputedSizeFromSpecifiedSize(
float specified_size) {
DCHECK(document_);
float zoom_factor = effective_zoom;
// FIXME: Why is this here!!!!?!
// Apply the text zoom factor preference. The preference is exposed in
// accessibility settings in Chrome for Android to improve readability.
if (LocalFrame* frame = document_->GetFrame())
zoom_factor *= frame->TextZoomFactor();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment