toColor 43 Source/core/animation/AnimatableColor.h Color toColor() const; toColor 63 Source/core/animation/AnimatableColor.h Color color() const { return m_color.toColor(); } toColor 64 Source/core/animation/AnimatableColor.h Color visitedLinkColor() const { return m_visitedLinkColor.toColor(); } toColor 42 Source/core/animation/AnimatableColorTest.cpp Color transparent = AnimatableColorImpl(Color::transparent).toColor(); toColor 44 Source/core/animation/AnimatableColorTest.cpp Color red = AnimatableColorImpl(Color(0xFFFF0000)).toColor(); toColor 50 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFF00FF00), -10).toColor().rgb(), 0xFF00FF00); toColor 51 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), -10).toColor().rgb(), 0xFF00FF00); toColor 52 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 0).toColor().rgb(), 0xFF00FF00); toColor 53 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 1. / 255).toColor().rgb(), 0xFF01FE01); toColor 54 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 0.5).toColor().rgb(), 0xFF808080); toColor 55 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 254. / 255).toColor().rgb(), 0xFFFE01FE); toColor 56 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 1).toColor().rgb(), 0xFFFF00FF); toColor 57 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF00FF00)).interpolateTo(Color(0xFFFF00FF), 10).toColor().rgb(), 0xFFFF00FF); toColor 59 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF001020)).interpolateTo(Color(0xFF4080C0), 3. / 16).toColor().rgb(), 0xFF0C253E); toColor 61 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x0000FF00)).interpolateTo(Color(0xFFFF00FF), 0.5).toColor().rgb(), 0x80FF00FF); toColor 62 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x4000FF00)).interpolateTo(Color(0x80FF00FF), 0.5).toColor().rgb(), 0x60AA55AAu); toColor 63 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x40FF00FF)).interpolateTo(Color(0x80FFFFFF), 0.5).toColor().rgb(), 0x60FFAAFFu); toColor 65 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x10204080)).interpolateTo(Color(0x104080C0), 0.5).toColor().rgb(), 0x103060A0u); toColor 70 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF012345)).addWith(Color(0xFF543210)).toColor().rgb(), 0xFF555555); toColor 71 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0xFF808080)).addWith(Color(0xFF808080)).toColor().rgb(), 0xFFFFFFFF); toColor 72 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x80FFFFFF)).addWith(Color(0x80FFFFFF)).toColor().rgb(), 0xFFFFFFFF); toColor 73 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x40FFFFFF)).addWith(Color(0x40FFFFFF)).toColor().rgb(), 0x80FFFFFF); toColor 74 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x40004080)).addWith(Color(0x80804000)).toColor().rgb(), 0xC055402B); toColor 75 Source/core/animation/AnimatableColorTest.cpp EXPECT_EQ(AnimatableColorImpl(Color(0x10204080)).addWith(Color(0x104080C0)).toColor().rgb(), 0x203060A0u); toColor 52 Source/core/animation/AnimatableSVGPaint.h Color color() const { return m_color.toColor(); }; toColor 32 Source/core/svg/ColorDistance.cpp float ColorDistance::distance(const Color& fromColor, const Color& toColor) toColor 34 Source/core/svg/ColorDistance.cpp int redDiff = toColor.red() - fromColor.red(); toColor 35 Source/core/svg/ColorDistance.cpp int greenDiff = toColor.green() - fromColor.green(); toColor 36 Source/core/svg/ColorDistance.cpp int blueDiff = toColor.blue() - fromColor.blue(); toColor 30 Source/core/svg/ColorDistance.h static float distance(const Color& fromColor, const Color& toColor); toColor 57 Source/core/svg/SVGAnimatedColor.cpp Color toColor = m_styleColor.resolve(fallbackColor); toColor 58 Source/core/svg/SVGAnimatedColor.cpp m_styleColor = StyleColor(ColorDistance::addColors(fromColor, toColor)); toColor 71 Source/core/svg/SVGAnimatedColor.cpp Color toColor = toStyleColor.resolve(fallbackColor); toColor 77 Source/core/svg/SVGAnimatedColor.cpp animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.red(), toColor.red(), toAtEndOfDurationColor.red(), animatedRed); toColor 80 Source/core/svg/SVGAnimatedColor.cpp animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.green(), toColor.green(), toAtEndOfDurationColor.green(), animatedGreen); toColor 83 Source/core/svg/SVGAnimatedColor.cpp animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.blue(), toColor.blue(), toAtEndOfDurationColor.blue(), animatedBlue); toColor 86 Source/core/svg/SVGAnimatedColor.cpp animationElement->animateAdditiveNumber(percentage, repeatCount, fromColor.alpha(), toColor.alpha(), toAtEndOfDurationColor.alpha(), animatedAlpha); toColor 97 Source/core/svg/SVGAnimatedColor.cpp Color toColor = toSVGColorProperty(toValue)->m_styleColor.resolve(fallbackColor); toColor 98 Source/core/svg/SVGAnimatedColor.cpp return ColorDistance::distance(fromColor, toColor);