Home
last modified time | relevance | path

Searched refs:intMaxForLayoutUnit (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnitTest.cpp59 ASSERT_EQ(LayoutUnit(intMaxForLayoutUnit / 2).toInt(), intMaxForLayoutUnit / 2); in TEST()
60 ASSERT_EQ(LayoutUnit(intMaxForLayoutUnit - 1).toInt(), intMaxForLayoutUnit - 1); in TEST()
61 ASSERT_EQ(LayoutUnit(intMaxForLayoutUnit).toInt(), intMaxForLayoutUnit); in TEST()
62 ASSERT_EQ(LayoutUnit(intMaxForLayoutUnit + 1).toInt(), intMaxForLayoutUnit); in TEST()
63 ASSERT_EQ(LayoutUnit(INT_MAX / 2).toInt(), intMaxForLayoutUnit); in TEST()
64 ASSERT_EQ(LayoutUnit(INT_MAX).toInt(), intMaxForLayoutUnit); in TEST()
125 … ASSERT_EQ(snapSizeToPixel(LayoutUnit(intMaxForLayoutUnit), LayoutUnit(0.3)), intMaxForLayoutUnit); in TEST()
161 int quarterMax = intMaxForLayoutUnit / 4; in TEST()
165 ASSERT_EQ((LayoutUnit(quarterMax) * LayoutUnit(5)).toInt(), intMaxForLayoutUnit); in TEST()
167 size_t overflowIntSizeT = intMaxForLayoutUnit * 4; in TEST()
[all …]
DLayoutUnit.h60 const int intMaxForLayoutUnit = INT_MAX / kFixedPointDenominator; variable
141 return intMaxForLayoutUnit; in wtf_ceil()
/external/chromium_org/third_party/WebKit/Source/wtf/
DSaturatedArithmeticTest.cpp110 const int intMaxForLayoutUnit = INT_MAX >> kFractionBits; in TEST() local
119 saturatedSet(intMaxForLayoutUnit, kFractionBits)); in TEST()
122 saturatedSet(intMaxForLayoutUnit + 100, kFractionBits)); in TEST()
124 EXPECT_EQ((intMaxForLayoutUnit - 100) << kFractionBits, in TEST()
125 saturatedSet(intMaxForLayoutUnit - 100, kFractionBits)); in TEST()
140 const int intMaxForLayoutUnit = INT_MAX >> kFractionBits; in TEST() local
145 saturatedSet((unsigned)intMaxForLayoutUnit, kFractionBits)); in TEST()
147 const unsigned kOverflowed = intMaxForLayoutUnit + 100; in TEST()
151 const unsigned kNotOverflowed = intMaxForLayoutUnit - 100; in TEST()
152 EXPECT_EQ((intMaxForLayoutUnit - 100) << kFractionBits, in TEST()
DSaturatedArithmetic.h91 const int intMaxForLayoutUnit = in saturatedSet() local
97 if (value > intMaxForLayoutUnit) in saturatedSet()
109 const unsigned intMaxForLayoutUnit = in saturatedSet() local
112 if (value >= intMaxForLayoutUnit) in saturatedSet()