#include "core/frame/UseCounter.h"
#include "wtf/text/StringBuilder.h"
-namespace WebCore {
+namespace blink {
StyleKeyframe::StyleKeyframe()
{
ASSERT(m_keyText.isNull());
}
-MutableStylePropertySet* StyleKeyframe::mutableProperties()
+MutableStylePropertySet& StyleKeyframe::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return toMutableStylePropertySet(m_properties);
+ return *toMutableStylePropertySet(m_properties.get());
}
-void StyleKeyframe::setProperties(PassRefPtr<StylePropertySet> properties)
+void StyleKeyframe::setProperties(PassRefPtrWillBeRawPtr<StylePropertySet> properties)
{
+ ASSERT(properties);
m_properties = properties;
}
{
OwnPtr<Vector<double> > keyVector = adoptPtr(new Vector<double>(keys->size()));
for (unsigned i = 0; i < keys->size(); ++i) {
- ASSERT(keys->valueAt(i)->unit == WebCore::CSSPrimitiveValue::CSS_NUMBER);
+ ASSERT(keys->valueAt(i)->unit == blink::CSSPrimitiveValue::CSS_NUMBER);
double key = keys->valueAt(i)->fValue;
if (key < 0 || key > 100) {
// As per http://www.w3.org/TR/css3-animations/#keyframes,
return keyVector.release();
}
+void StyleKeyframe::trace(Visitor* visitor)
+{
+ visitor->trace(m_properties);
+}
CSSKeyframeRule::CSSKeyframeRule(StyleKeyframe* keyframe, CSSKeyframesRule* parent)
: CSSRule(0)
CSSKeyframeRule::~CSSKeyframeRule()
{
+#if !ENABLE(OILPAN)
if (m_propertiesCSSOMWrapper)
m_propertiesCSSOMWrapper->clearParentRule();
+#endif
}
CSSStyleDeclaration* CSSKeyframeRule::style() const
ASSERT_NOT_REACHED();
}
-} // namespace WebCore
+void CSSKeyframeRule::trace(Visitor* visitor)
+{
+ visitor->trace(m_keyframe);
+ visitor->trace(m_propertiesCSSOMWrapper);
+ CSSRule::trace(visitor);
+}
+
+} // namespace blink