WebKitCSSKeyframesRule.h [plain text]
#ifndef WebKitCSSKeyframesRule_h
#define WebKitCSSKeyframesRule_h
#include "CSSRule.h"
#include <wtf/RefPtr.h>
#include "AtomicString.h"
namespace WebCore {
class CSSRuleList;
class WebKitCSSKeyframeRule;
class String;
typedef int ExceptionCode;
class WebKitCSSKeyframesRule : public CSSRule {
public:
WebKitCSSKeyframesRule(StyleBase* parent);
~WebKitCSSKeyframesRule();
virtual bool isKeyframesRule() { return true; }
virtual unsigned short type() const { return WEBKIT_KEYFRAMES_RULE; }
String name() const;
void setName(const String&, ExceptionCode&);
void setName(String);
CSSRuleList* cssRules() { return m_lstCSSRules.get(); }
void insertRule(const String& rule);
void deleteRule(const String& key);
WebKitCSSKeyframeRule* findRule(const String& key);
virtual String cssText() const;
unsigned length() const;
WebKitCSSKeyframeRule* item(unsigned index);
const WebKitCSSKeyframeRule* item(unsigned index) const;
void insert(WebKitCSSKeyframeRule* rule);
protected:
int findRuleIndex(float key) const;
RefPtr<CSSRuleList> m_lstCSSRules;
String m_name;
};
}
#endif // WebKitCSSKeyframesRule_h