Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnit.h58 static const int kFixedPointDenominator = 1 << kLayoutUnitFractionalBits; variable
60 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 …]
DLayoutUnitTest.cpp69 const float tolerance = 1.0f / kFixedPointDenominator; in TEST()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSPrimitiveValue.cpp51 const int maxValueForCssLength = INT_MAX / kFixedPointDenominator - 2;
52 const int minValueForCssLength = INT_MIN / kFixedPointDenominator + 2;
/external/chromium_org/third_party/WebKit/Source/platform/transforms/
DTransformationMatrix.cpp582 const int largeNumber = 100000000 / kFixedPointDenominator; in projectPoint()