コード例 #1
0
ファイル: StringKeyframe.cpp プロジェクト: azureplus/chromium
PassOwnPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::createPropertySpecificKeyframe(PropertyHandle property) const
{
    if (property.isCSSProperty())
        return adoptPtr(new CSSPropertySpecificKeyframe(offset(), &easing(), cssPropertyValue(property.cssProperty()), composite()));

    ASSERT(property.isSVGAttribute());
    return adoptPtr(new SVGPropertySpecificKeyframe(offset(), &easing(), svgPropertyValue(property.svgAttribute()), composite()));
}
コード例 #2
0
static bool isSVGAttributeHandle(const PropertyHandle& propertyHandle)
{
    return propertyHandle.isSVGAttribute();
}