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

Unified Diff: Source/platform/LayoutUnit.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/core/rendering/style/CounterDirectives.h ('k') | Source/platform/fonts/FontDescription.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/LayoutUnit.h
diff --git a/Source/platform/LayoutUnit.h b/Source/platform/LayoutUnit.h
index 56e284ba033cb20449cb7a9b2affa7439f44e2f4..c78ed541704764d267a87137a4dae52f6101dfc8 100644
--- a/Source/platform/LayoutUnit.h
+++ b/Source/platform/LayoutUnit.h
@@ -74,14 +74,14 @@ public:
static LayoutUnit fromFloatCeil(float value)
{
LayoutUnit v;
- v.m_value = clampToInteger(ceilf(value * kFixedPointDenominator));
+ v.m_value = clampTo<int>(ceilf(value * kFixedPointDenominator));
return v;
}
static LayoutUnit fromFloatFloor(float value)
{
LayoutUnit v;
- v.m_value = clampToInteger(floorf(value * kFixedPointDenominator));
+ v.m_value = clampTo<int>(floorf(value * kFixedPointDenominator));
return v;
}
« no previous file with comments | « Source/core/rendering/style/CounterDirectives.h ('k') | Source/platform/fonts/FontDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698