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

Unified Diff: Source/platform/fonts/FontDescription.h

Issue 641643004: Reapply the non-MathExtras parts of (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/platform/LayoutUnit.h ('k') | Source/platform/geometry/DoublePoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontDescription.h
diff --git a/Source/platform/fonts/FontDescription.h b/Source/platform/fonts/FontDescription.h
index 2bb25d1b79d49d82f75d64f820bdd45e88e2d0b7..f736b52867fcd744493a643c250d152edcd8f4c6 100644
--- a/Source/platform/fonts/FontDescription.h
+++ b/Source/platform/fonts/FontDescription.h
@@ -178,8 +178,8 @@ public:
FontCacheKey cacheKey(const FontFaceCreationParams&, FontTraits desiredTraits = FontTraits(0)) const;
void setFamily(const FontFamily& family) { m_familyList = family; }
- void setComputedSize(float s) { m_computedSize = clampToFloat(s); }
- void setSpecifiedSize(float s) { m_specifiedSize = clampToFloat(s); }
+ void setComputedSize(float s) { m_computedSize = clampTo<float>(s); }
+ void setSpecifiedSize(float s) { m_specifiedSize = clampTo<float>(s); }
void setStyle(FontStyle i) { m_style = i; }
void setVariant(FontVariant c) { m_variant = c; }
void setVariantLigatures(const VariantLigatures&);
« no previous file with comments | « Source/platform/LayoutUnit.h ('k') | Source/platform/geometry/DoublePoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698