This source file includes following definitions.
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
- PrintTo
#include "config.h"
#include "core/animation/AnimatableValueTestHelper.h"
namespace WebCore {
bool operator==(const AnimatableValue& a, const AnimatableValue& b)
{
    return a.equals(b);
}
void PrintTo(const AnimatableClipPathOperation& animValue, ::std::ostream* os)
{
    *os << "AnimatableClipPathOperation@" << &animValue;
}
void PrintTo(const AnimatableColor& animColor, ::std::ostream* os)
{
    *os << "AnimatableColor("
        << animColor.color().serialized().utf8().data() << ", "
        << animColor.visitedLinkColor().serialized().utf8().data() << ")";
}
void PrintTo(const AnimatableDouble& animDouble, ::std::ostream* os)
{
    PrintTo(*(animDouble.toCSSValue().get()), os, "AnimatableDouble");
}
void PrintTo(const AnimatableImage& animImage, ::std::ostream* os)
{
    PrintTo(*(animImage.toCSSValue()), os, "AnimatableImage");
}
void PrintTo(const AnimatableLength& animLength, ::std::ostream* os)
{
    PrintTo(*(animLength.toCSSValue().get()), os, "AnimatableLength");
}
void PrintTo(const AnimatableLengthBox& animLengthBox, ::std::ostream* os)
{
    *os << "AnimatableLengthBox(";
    PrintTo(*(animLengthBox.left()), os);
    *os << ", ";
    PrintTo(*(animLengthBox.right()), os);
    *os << ", ";
    PrintTo(*(animLengthBox.top()), os);
    *os << ", ";
    PrintTo(*(animLengthBox.bottom()), os);
    *os << ")";
}
void PrintTo(const AnimatableLengthPoint& animLengthPoint, ::std::ostream* os)
{
    *os << "AnimatableLengthPoint(";
    PrintTo(*(animLengthPoint.x()), os);
    *os << ", ";
    PrintTo(*(animLengthPoint.y()), os);
    *os << ")";
}
void PrintTo(const AnimatableLengthSize& animLengthSize, ::std::ostream* os)
{
    *os << "AnimatableLengthSize(";
    PrintTo(*(animLengthSize.width()), os);
    *os << ", ";
    PrintTo(*(animLengthSize.height()), os);
    *os << ")";
}
void PrintTo(const AnimatableNeutral& animValue, ::std::ostream* os)
{
    *os << "AnimatableNeutral@" << &animValue;
}
void PrintTo(const AnimatableRepeatable& animValue, ::std::ostream* os)
{
    *os << "AnimatableRepeatable(";
    const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> > v = animValue.values();
    for (WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >::const_iterator it = v.begin(); it != v.end(); ++it) {
        PrintTo(*(it->get()), os);
        if (it+1 != v.end())
            *os << ", ";
    }
    *os << ")";
}
void PrintTo(const AnimatableSVGLength& animSVGLength, ::std::ostream* os)
{
    *os << "AnimatableSVGLength("
        << animSVGLength.toSVGLength()->valueAsString().utf8().data() << ")";
}
void PrintTo(const AnimatableSVGPaint& animSVGPaint, ::std::ostream* os)
{
    *os << "AnimatableSVGPaint(";
    if (animSVGPaint.paintType() == SVGPaint::SVG_PAINTTYPE_RGBCOLOR)
        *os << animSVGPaint.color().serialized().utf8().data();
    else if (animSVGPaint.paintType() == SVGPaint::SVG_PAINTTYPE_URI)
        *os << "url(" << animSVGPaint.uri().utf8().data() << ")";
    else
        *os << animSVGPaint.paintType();
    *os << ")";
}
void PrintTo(const AnimatableShapeValue& animValue, ::std::ostream* os)
{
    *os << "AnimatableShapeValue@" << &animValue;
}
void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os)
{
    *os << "AnimatableStrokeDasharrayList(";
    RefPtr<SVGLengthList> list = animValue.toSVGLengthList();
    size_t length = list->length();
    for (size_t i = 0; i < length; ++i) {
        *os << list->at(i)->valueAsString().utf8().data();
        if (i != length-1)
            *os << ", ";
    }
    *os << ")";
}
void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os)
{
    TransformOperations ops = animTransform.transformOperations();
    *os << "AnimatableTransform(";
    
    
    
    for (unsigned i = 0; i < ops.size(); i++) {
        const TransformOperation* op = ops.at(i);
        TransformationMatrix matrix;
        op->apply(matrix, FloatSize(1.0, 1.0));
        *os << "[";
        if (matrix.isAffine()) {
            *os << matrix.a();
            *os << " " << matrix.b();
            *os << " " << matrix.c();
            *os << " " << matrix.d();
            *os << " " << matrix.e();
            *os << " " << matrix.f();
        } else {
            *os << matrix.m11();
            *os << " " << matrix.m12();
            *os << " " << matrix.m13();
            *os << " " << matrix.m14();
            *os << " ";
            *os << " " << matrix.m21();
            *os << " " << matrix.m22();
            *os << " " << matrix.m23();
            *os << " " << matrix.m24();
            *os << " ";
            *os << " " << matrix.m31();
            *os << " " << matrix.m32();
            *os << " " << matrix.m33();
            *os << " " << matrix.m34();
            *os << " ";
            *os << " " << matrix.m41();
            *os << " " << matrix.m42();
            *os << " " << matrix.m43();
            *os << " " << matrix.m44();
        }
        *os << "]";
        if (i < ops.size() - 1)
            *os << ", ";
    }
    *os << ")";
}
void PrintTo(const AnimatableUnknown& animUnknown, ::std::ostream* os)
{
    PrintTo(*(animUnknown.toCSSValue().get()), os, "AnimatableUnknown");
}
void PrintTo(const AnimatableVisibility& animVisibility, ::std::ostream* os)
{
    *os << "AnimatableVisibility(";
    switch (animVisibility.visibility()) {
    case VISIBLE:
        *os << "VISIBLE";
        break;
    case HIDDEN:
        *os << "HIDDEN";
        break;
    case COLLAPSE:
        *os << "COLLAPSE";
        break;
    default:
        *os << "Unknown Visbilility - update switch in AnimatableValueTestHelper.h";
    }
    *os << ")";
}
void PrintTo(const AnimatableValue& animValue, ::std::ostream* os)
{
    if (animValue.isClipPathOperation())
        PrintTo(*(toAnimatableClipPathOperation(&animValue)), os);
    else if (animValue.isColor())
        PrintTo(*(toAnimatableColor(&animValue)), os);
    else if (animValue.isDouble())
        PrintTo(*(toAnimatableDouble(&animValue)), os);
    else if (animValue.isImage())
        PrintTo(*(toAnimatableImage(&animValue)), os);
    else if (animValue.isLength())
        PrintTo(*(toAnimatableLength(&animValue)), os);
    else if (animValue.isLengthBox())
        PrintTo(*(toAnimatableLengthBox(&animValue)), os);
    else if (animValue.isLengthPoint())
        PrintTo(*(toAnimatableLengthPoint(&animValue)), os);
    else if (animValue.isLengthSize())
        PrintTo(*(toAnimatableLengthSize(&animValue)), os);
    else if (animValue.isNeutral())
        PrintTo(*(static_cast<const AnimatableNeutral*>(&animValue)), os);
    else if (animValue.isRepeatable())
        PrintTo(*(toAnimatableRepeatable(&animValue)), os);
    else if (animValue.isSVGLength())
        PrintTo(*(toAnimatableSVGLength(&animValue)), os);
    else if (animValue.isSVGPaint())
        PrintTo(*(toAnimatableSVGPaint(&animValue)), os);
    else if (animValue.isShapeValue())
        PrintTo(*(toAnimatableShapeValue(&animValue)), os);
    else if (animValue.isStrokeDasharrayList())
        PrintTo(*(toAnimatableStrokeDasharrayList(&animValue)), os);
    else if (animValue.isTransform())
        PrintTo(*(toAnimatableTransform(&animValue)), os);
    else if (animValue.isUnknown())
        PrintTo(*(toAnimatableUnknown(&animValue)), os);
    else if (animValue.isVisibility())
        PrintTo(*(toAnimatableVisibility(&animValue)), os);
    else
        *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValueTestHelper.h";
}
}