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

Unified Diff: Source/core/rendering/svg/RenderSVGInlineText.cpp

Issue 508823002: Properly recompute SVG font size under zoom (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/zoom/text/lowdpi-zoom-text-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGInlineText.cpp
diff --git a/Source/core/rendering/svg/RenderSVGInlineText.cpp b/Source/core/rendering/svg/RenderSVGInlineText.cpp
index ac41b9fddbf2f02a23f58e81fcb9f5a45c442182..a2399292c5a73a112ec8192d2739e8431b3098e0 100644
--- a/Source/core/rendering/svg/RenderSVGInlineText.cpp
+++ b/Source/core/rendering/svg/RenderSVGInlineText.cpp
@@ -220,7 +220,7 @@ void RenderSVGInlineText::computeNewScaledFontForStyle(RenderObject* renderer, c
// Alter font-size to the right on-screen value to avoid scaling the glyphs themselves, except when GeometricPrecision is specified.
scalingFactor = SVGRenderingContext::calculateScreenFontSizeScalingFactor(renderer);
- if (scalingFactor == 1 || !scalingFactor) {
f(malita) 2014/08/27 12:44:31 Not related to this CL, but do you know why we res
pdr. 2014/08/27 18:09:51 I agree, this is weird. I tried converting this t
+ if (style->effectiveZoom() == 1 && (scalingFactor == 1 || !scalingFactor)) {
scalingFactor = 1;
scaledFont = style->font();
return;
« no previous file with comments | « LayoutTests/svg/zoom/text/lowdpi-zoom-text-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698