#include "core/css/CSSRule.h"
-namespace WebCore {
+namespace blink {
class CSSKeyframesRule;
class CSSParserValueList;
class StylePropertySet;
class StyleRuleCSSStyleDeclaration;
-class StyleKeyframe FINAL : public RefCounted<StyleKeyframe> {
- WTF_MAKE_FAST_ALLOCATED;
+class StyleKeyframe final : public RefCountedWillBeGarbageCollectedFinalized<StyleKeyframe> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassRefPtr<StyleKeyframe> create()
+ static PassRefPtrWillBeRawPtr<StyleKeyframe> create()
{
- return adoptRef(new StyleKeyframe());
+ return adoptRefWillBeNoop(new StyleKeyframe());
}
~StyleKeyframe();
// Used by BisonCSSParser when constructing a new StyleKeyframe.
void setKeys(PassOwnPtr<Vector<double> >);
- const StylePropertySet* properties() const { return m_properties.get(); }
- MutableStylePropertySet* mutableProperties();
- void setProperties(PassRefPtr<StylePropertySet>);
+ const StylePropertySet& properties() const { return *m_properties; }
+ MutableStylePropertySet& mutableProperties();
+ void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>);
String cssText() const;
+ void trace(Visitor*);
+
static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*);
private:
StyleKeyframe();
- RefPtr<StylePropertySet> m_properties;
+ RefPtrWillBeMember<StylePropertySet> m_properties;
// These are both calculated lazily. Either one can be set, which invalidates the other.
mutable String m_keyText;
mutable OwnPtr<Vector<double> > m_keys;
};
-class CSSKeyframeRule FINAL : public CSSRule {
+class CSSKeyframeRule final : public CSSRule {
public:
virtual ~CSSKeyframeRule();
- virtual CSSRule::Type type() const OVERRIDE { return KEYFRAME_RULE; }
- virtual String cssText() const OVERRIDE { return m_keyframe->cssText(); }
- virtual void reattach(StyleRuleBase*) OVERRIDE;
+ virtual CSSRule::Type type() const override { return KEYFRAME_RULE; }
+ virtual String cssText() const override { return m_keyframe->cssText(); }
+ virtual void reattach(StyleRuleBase*) override;
String keyText() const { return m_keyframe->keyText(); }
void setKeyText(const String& s) { m_keyframe->setKeyText(s); }
CSSStyleDeclaration* style() const;
+ virtual void trace(Visitor*) override;
+
private:
CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent);
- RefPtr<StyleKeyframe> m_keyframe;
- mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
+ RefPtrWillBeMember<StyleKeyframe> m_keyframe;
+ mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
friend class CSSKeyframesRule;
};
DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
-} // namespace WebCore
+} // namespace blink
#endif // CSSKeyframeRule_h