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

Issue 18190003: Account for zoom when computing SVG font size. (Closed)

Created:
7 years, 5 months ago by pdr.
Modified:
7 years, 5 months ago
Reviewers:
Stephen Chennney
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, f(malita), jchaffraix+rendering, pdr, Stephen Chennney
Visibility:
Public.

Description

Account for zoom when computing SVG font size. Previously, text that was zoomed appeared larger than geometry under the same zoom value. This was caused by two bugs: 1) When setting the computed font size, we incorrectly referenced the computedTextSize instead of the specified size. 2) Text with GeometricPrecision did not set a computed size but instead relied on the text size being correct. This change addresses both of these issues and adds a test to prove correctness. BUG=245996 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153683

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -3 lines) Patch
A LayoutTests/svg/zoom/text/zoom-text-and-geometry.html View 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/svg/zoom/text/zoom-text-and-geometry-expected.html View 1 chunk +38 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 1 chunk +6 lines, -3 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
pdr.
7 years, 5 months ago (2013-07-08 03:06:16 UTC) #1
Stephen Chennney
Almost. https://codereview.chromium.org/18190003/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp File Source/core/rendering/svg/RenderSVGInlineText.cpp (right): https://codereview.chromium.org/18190003/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp#newcode228 Source/core/rendering/svg/RenderSVGInlineText.cpp:228: // Alter font-size to the right on-screen value ...
7 years, 5 months ago (2013-07-08 13:16:27 UTC) #2
pdr.
On 2013/07/08 13:16:27, Stephen Chenney wrote: > Almost. > > https://codereview.chromium.org/18190003/diff/1/Source/core/rendering/svg/RenderSVGInlineText.cpp > File Source/core/rendering/svg/RenderSVGInlineText.cpp (right): ...
7 years, 5 months ago (2013-07-08 14:06:56 UTC) #3
Stephen Chennney
You're right. LGTM
7 years, 5 months ago (2013-07-08 14:11:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/18190003/1
7 years, 5 months ago (2013-07-08 14:44:33 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-08 16:10:12 UTC) #6
Message was sent while issue was closed.
Change committed as 153683

Powered by Google App Engine
This is Rietveld 408576698