Searched refs:kFixedPointDenominator (Results 1 – 4 of 4) sorted by relevance
58 static const int kFixedPointDenominator = 1 << kLayoutUnitFractionalBits; variable60 const int intMaxForLayoutUnit = INT_MAX / kFixedPointDenominator;61 const int intMinForLayoutUnit = INT_MIN / kFixedPointDenominator;69 LayoutUnit(unsigned long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit()70 LayoutUnit(unsigned long long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit()71 LayoutUnit(float value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit()72 LayoutUnit(double value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit()77 v.m_value = clampToInteger(ceilf(value * kFixedPointDenominator)); in fromFloatCeil()84 v.m_value = clampToInteger(floorf(value * kFixedPointDenominator)); in fromFloatFloor()95 int toInt() const { return m_value / kFixedPointDenominator; } in toInt()[all …]
69 const float tolerance = 1.0f / kFixedPointDenominator; in TEST()
51 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2;52 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2;
582 const int largeNumber = 100000000 / kFixedPointDenominator; in projectPoint()