Searched refs:fromFloatRound (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LayoutUnitTest.cpp | 86 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.51f).round(), -2); in TEST() 87 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.5f).round(), -1); in TEST() 88 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.49f).round(), -1); in TEST() 90 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.99f).round(), -1); in TEST() 91 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.51f).round(), -1); in TEST() 92 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.50f).round(), 0); in TEST() 93 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.49f).round(), 0); in TEST() 97 ASSERT_EQ(LayoutUnit::fromFloatRound(0.49f).round(), 0); in TEST() 98 ASSERT_EQ(LayoutUnit::fromFloatRound(0.50f).round(), 1); in TEST() 99 ASSERT_EQ(LayoutUnit::fromFloatRound(0.51f).round(), 1); in TEST() [all …]
|
D | LayoutUnit.h | 88 static LayoutUnit fromFloatRound(float value) in fromFloatRound() function
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderInline.cpp | 1323 inlinePosition = LayoutUnit::fromFloatRound(firstLineBox()->logicalLeft()); in offsetForInFlowPositionedInline()
|
D | RenderFlexibleBox.cpp | 937 childSize += LayoutUnit::fromFloatRound(extraSpace); in resolveFlexibleLengths()
|
D | RenderBox.cpp | 1686 …root.block().setStaticInlinePositionForChild(this, LayoutUnit::fromFloatRound(box->logicalLeft())); in positionLineBox()
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | Element.cpp | 667 … rend->setScrollLeft(LayoutUnit::fromFloatRound(newLeft * rend->style()->effectiveZoom())); in setScrollLeft() 713 rend->setScrollTop(LayoutUnit::fromFloatRound(newTop * rend->style()->effectiveZoom())); in setScrollTop()
|