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

Issue 508823002: Properly recompute SVG font size under zoom (Closed)

Created:
6 years, 3 months ago by pdr.
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, rwlbuis, Stephen Chennney, rune+blink
Project:
blink
Visibility:
Public.

Description

Properly recompute SVG font size under zoom This patch fixes a regression from [1] where an optimization in RenderSVGInlineText::computeNewScaledFontForStyle would skip updating the font size on lowdpi devices while zooming. The computed font size calculation depends on zoom and the font scaling factor depends on the device's scaling factor. Previously, we would skip updating the font when the scaling factor was 1 which would fail to account for zoom. This patch updates the optimization to only be used when both the scaling factor and zoom are 1. [1] http://src.chromium.org/viewvc/blink?revision=153683&view=revision BUG=405468 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180995

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -1 line) Patch
A LayoutTests/svg/zoom/text/lowdpi-zoom-text.html View 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/svg/zoom/text/lowdpi-zoom-text-expected.txt View 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 8 (0 generated)
pdr.
pdr@chromium.org changed reviewers: + fmalita@google.com, fs@opera.com
6 years, 3 months ago (2014-08-27 03:32:47 UTC) #1
pdr.
6 years, 3 months ago (2014-08-27 04:35:43 UTC) #2
f(malita)
fmalita@chromium.org changed reviewers: + fmalita@chromium.org
6 years, 3 months ago (2014-08-27 12:44:32 UTC) #3
f(malita)
lgtm https://codereview.chromium.org/508823002/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp File Source/core/rendering/svg/RenderSVGInlineText.cpp (left): https://codereview.chromium.org/508823002/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp#oldcode223 Source/core/rendering/svg/RenderSVGInlineText.cpp:223: if (scalingFactor == 1 || !scalingFactor) { Not ...
6 years, 3 months ago (2014-08-27 12:44:32 UTC) #4
pdr.
https://codereview.chromium.org/508823002/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp File Source/core/rendering/svg/RenderSVGInlineText.cpp (left): https://codereview.chromium.org/508823002/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp#oldcode223 Source/core/rendering/svg/RenderSVGInlineText.cpp:223: if (scalingFactor == 1 || !scalingFactor) { On 2014/08/27 ...
6 years, 3 months ago (2014-08-27 18:09:51 UTC) #5
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 3 months ago (2014-08-27 18:09:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/508823002/1
6 years, 3 months ago (2014-08-27 18:10:50 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-08-27 18:49:28 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 180995

Powered by Google App Engine
This is Rietveld 408576698