Home
last modified time | relevance | path

Searched refs:fromFloatRound (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnitTest.cpp86 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 …]
DLayoutUnit.h88 static LayoutUnit fromFloatRound(float value) in fromFloatRound() function
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderInline.cpp1323 inlinePosition = LayoutUnit::fromFloatRound(firstLineBox()->logicalLeft()); in offsetForInFlowPositionedInline()
DRenderFlexibleBox.cpp937 childSize += LayoutUnit::fromFloatRound(extraSpace); in resolveFlexibleLengths()
DRenderBox.cpp1686 …root.block().setStaticInlinePositionForChild(this, LayoutUnit::fromFloatRound(box->logicalLeft())); in positionLineBox()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DElement.cpp667 … rend->setScrollLeft(LayoutUnit::fromFloatRound(newLeft * rend->style()->effectiveZoom())); in setScrollLeft()
713 rend->setScrollTop(LayoutUnit::fromFloatRound(newTop * rend->style()->effectiveZoom())); in setScrollTop()