clampTo 141 Source/bindings/templates/methods.cpp {{argument.name}} = clampTo<{{argument.idl_type}}>({{argument.name}}NativeValue); clampTo 6639 Source/bindings/tests/results/V8TestObject.cpp clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNativeValue); clampTo 6661 Source/bindings/tests/results/V8TestObject.cpp clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNativeValue); clampTo 261 Source/bindings/v8/V8Binding.cpp return clampTo<T>(numberObject->Value()); clampTo 333 Source/bindings/v8/V8Binding.cpp return clampTo<int32_t>(numberObject->Value()); clampTo 379 Source/bindings/v8/V8Binding.cpp return clampTo<uint32_t>(numberObject->Value()); clampTo 49 Source/core/animation/AnimatableColor.cpp : m_alpha(clampTo(alpha, 0.0f, 1.0f)) clampTo 50 Source/core/animation/AnimatableColor.cpp , m_red(clampTo(red, 0.0f, 1.0f)) clampTo 51 Source/core/animation/AnimatableColor.cpp , m_green(clampTo(green, 0.0f, 1.0f)) clampTo 52 Source/core/animation/AnimatableColor.cpp , m_blue(clampTo(blue, 0.0f, 1.0f)) clampTo 573 Source/core/css/CSSPrimitiveValue.cpp return Length(clampTo<float>(computeLengthDouble(conversionData), minValueForCssLength, maxValueForCssLength), Fixed); clampTo 304 Source/core/css/CSSPrimitiveValue.h template<typename T> inline T getValue(unsigned short unitType, ExceptionState& exceptionState) const { return clampTo<T>(getDoubleValue(unitType, exceptionState)); } clampTo 305 Source/core/css/CSSPrimitiveValue.h template<typename T> inline T getValue(unsigned short unitType) const { return clampTo<T>(getDoubleValue(unitType)); } clampTo 306 Source/core/css/CSSPrimitiveValue.h template<typename T> inline T getValue() const { return clampTo<T>(getDoubleValue()); } clampTo 66 Source/core/css/CSSPrimitiveValueMappings.h return clampTo<short>(getDoubleValue()); clampTo 79 Source/core/css/CSSPrimitiveValueMappings.h return clampTo<unsigned short>(getDoubleValue()); clampTo 85 Source/core/css/CSSPrimitiveValueMappings.h return clampTo<int>(getDoubleValue()); clampTo 91 Source/core/css/CSSPrimitiveValueMappings.h return clampTo<unsigned>(getDoubleValue()); clampTo 105 Source/core/css/CSSPrimitiveValueMappings.h return clampTo<float>(getDoubleValue()); clampTo 118 Source/core/css/CSSPrimitiveValueMappings.h return LineClampValue(clampTo<int>(m_value.num), LineClampLineCount); clampTo 121 Source/core/css/CSSPrimitiveValueMappings.h return LineClampValue(clampTo<int>(m_value.num), LineClampPercentage); clampTo 276 Source/core/css/MediaQueryEvaluator.cpp actualResolution = clampTo<float>(mediaValues.devicePixelRatio()); clampTo 7071 Source/core/css/parser/CSSPropertyParser.cpp percentage = cssValuePool().createValue(clampTo<double>(a->fValue / 100, 0, 1), CSSPrimitiveValue::CSS_NUMBER); clampTo 7073 Source/core/css/parser/CSSPropertyParser.cpp percentage = cssValuePool().createValue(clampTo<double>(a->fValue, 0, 1), CSSPrimitiveValue::CSS_NUMBER); clampTo 81 Source/core/css/resolver/AnimatedStyleBuilder.cpp return BorderImageLength(clampTo<double>(toAnimatableDouble(value)->toDouble(), 0)); clampTo 90 Source/core/css/resolver/AnimatedStyleBuilder.cpp return clampTo<T>(round(toAnimatableDouble(value)->toDouble()), min, max); clampTo 245 Source/core/css/resolver/AnimatedStyleBuilder.cpp index = clampTo<int>(index, 0, WTF_ARRAY_LENGTH(weights) - 1); clampTo 349 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); clampTo 358 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setFlexGrow(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0)); clampTo 361 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setFlexShrink(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0)); clampTo 370 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setFloodOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); clampTo 373 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setFontSize(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0)); clampTo 394 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setLineHeight(Length(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0), Percent)); clampTo 400 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setLetterSpacing(clampTo<float>(toAnimatableDouble(value)->toDouble())); clampTo 431 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, nextafterf(1, 0))); clampTo 468 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setStopOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); clampTo 477 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setStrokeMiterLimit(clampTo<float>(toAnimatableDouble(value)->toDouble(), 1)); clampTo 480 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setStrokeOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); clampTo 517 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setColumnGap(clampTo(toAnimatableDouble(value)->toDouble(), 0)); clampTo 524 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setColumnWidth(clampTo(toAnimatableDouble(value)->toDouble(), std::numeric_limits<float>::epsilon())); clampTo 558 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setPerspective(clampTo<float>(toAnimatableDouble(value)->toDouble())); clampTo 582 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setShapeImageThreshold(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0, 1)); clampTo 599 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setTransformOriginZ(clampTo<float>(toAnimatableDouble(animatableLengthPoint3D->z())->toDouble())); clampTo 621 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setWordSpacing(clampTo<float>(toAnimatableDouble(value)->toDouble())); clampTo 630 Source/core/css/resolver/AnimatedStyleBuilder.cpp style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std::numeric_limits<float>::denorm_min())); clampTo 110 Source/core/rendering/FilterEffectRenderer.cpp double oneMinusAmount = clampTo(1 - toBasicColorMatrixFilterOperation(filterOperation)->amount(), 0.0, 1.0); clampTo 137 Source/core/rendering/FilterEffectRenderer.cpp double oneMinusAmount = clampTo(1 - toBasicColorMatrixFilterOperation(filterOperation)->amount(), 0.0, 1.0); clampTo 1237 Source/core/rendering/style/RenderStyle.h void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNonInheritedData, opacity, v); } clampTo 1455 Source/core/rendering/style/RenderStyle.h float clampedShapeImageThreshold = clampTo<float>(shapeImageThreshold, 0, 1); clampTo 44 Source/core/rendering/style/ShadowData.cpp clampTo(WebCore::blend(from.blur(), blur(), progress), 0.0f), clampTo 68 Source/platform/LayoutUnit.h LayoutUnit(unsigned long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } clampTo 69 Source/platform/LayoutUnit.h LayoutUnit(unsigned long long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } clampTo 70 Source/platform/LayoutUnit.h LayoutUnit(float value) { m_value = clampTo<float>(value * kFixedPointDenominator, static_cast<float>(INT_MIN), static_cast<float>(INT_MAX)); } clampTo 71 Source/platform/LayoutUnit.h LayoutUnit(double value) { m_value = clampTo<double>(value * kFixedPointDenominator, static_cast<double>(INT_MIN), static_cast<double>(INT_MAX)); } clampTo 209 Source/platform/LayoutUnit.h return clampTo<LayoutUnit>(value, LayoutUnit::min(), LayoutUnit::max()); clampTo 501 Source/platform/LayoutUnit.h returnVal.setRawValue(clampTo<int>(rawVal)); clampTo 276 Source/platform/Length.h blendedValue = clampTo<float>(blendedValue, 0); clampTo 48 Source/platform/animation/AnimationUtilities.h return clampTo<T>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress)); clampTo 70 Source/platform/graphics/filters/FilterOperation.cpp result = clampTo<double>(result, 0, 1); clampTo 73 Source/platform/graphics/filters/FilterOperation.cpp result = clampTo<double>(result, 0); clampTo 107 Source/platform/graphics/filters/FilterOperation.cpp result = clampTo<double>(result, 0); clampTo 111 Source/platform/graphics/filters/FilterOperation.cpp result = clampTo<double>(result, 0, 1); clampTo 235 Source/wtf/MathExtras.h template<> inline long long int clampTo(double, long long int, long long int); // clampTo does not support long long ints. clampTo 239 Source/wtf/MathExtras.h return clampTo<int>(value); clampTo 244 Source/wtf/MathExtras.h return clampTo<unsigned>(value); clampTo 249 Source/wtf/MathExtras.h return clampTo<float>(value); clampTo 254 Source/wtf/MathExtras.h return clampTo<int>(value, 0); clampTo 259 Source/wtf/MathExtras.h return clampTo<int>(value); clampTo 67 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(maxInt), maxInt); clampTo 68 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(minInt), minInt); clampTo 70 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(overflowInt), maxInt); clampTo 71 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(underflowInt), minInt); clampTo 84 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(maxInt), maxInt); clampTo 85 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(minInt), minInt); clampTo 87 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(overflowInt), maxInt); clampTo 88 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<int>(underflowInt), minInt); clampTo 159 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(maxUnsigned), maxUnsigned); clampTo 161 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(overflowUnsigned), maxUnsigned); clampTo 162 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(-1), 0u); clampTo 172 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(maxUnsigned), maxUnsigned); clampTo 174 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(overflowUnsigned), maxUnsigned); clampTo 175 Source/wtf/MathExtrasTest.cpp EXPECT_EQ(clampTo<unsigned>(-1), 0u);