Index: src/views/SkStackViewLayout.cpp |
diff --git a/src/views/SkStackViewLayout.cpp b/src/views/SkStackViewLayout.cpp |
index 9a3a352853306d3358f43f787f210089e1238bf8..aba6f2e93a25c198c39b3247a4db90ec19094b02 100644 |
--- a/src/views/SkStackViewLayout.cpp |
+++ b/src/views/SkStackViewLayout.cpp |
@@ -167,11 +167,11 @@ void SkStackViewLayout::onLayoutChildren(SkView* parent) |
while ((child = iter.next()) != NULL) |
{ |
if (fRound) |
- pos = SkIntToScalar(SkScalarRound(pos)); |
+ pos = SkScalarRoundToScalar(pos); |
(child->*mainLocP)(pos); |
SkScalar crossLoc = crossStartM + gAlignProcs[fAlign]((child->*crossGetSizeP)(), crossLimit); |
if (fRound) |
- crossLoc = SkIntToScalar(SkScalarRound(crossLoc)); |
+ crossLoc = SkScalarRoundToScalar(crossLoc); |
(child->*crossLocP)(crossLoc); |
if (crossSetSizeP) |