From 470286ecfe79d59df14944e5b5d34630fc739391 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 22 Nov 2012 09:09:45 +0100 Subject: Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485) Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann --- Source/WebCore/css/WebKitCSSKeyframesRule.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'Source/WebCore/css/WebKitCSSKeyframesRule.h') diff --git a/Source/WebCore/css/WebKitCSSKeyframesRule.h b/Source/WebCore/css/WebKitCSSKeyframesRule.h index 04bec7f48..4fea70ed8 100644 --- a/Source/WebCore/css/WebKitCSSKeyframesRule.h +++ b/Source/WebCore/css/WebKitCSSKeyframesRule.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,10 +27,8 @@ #define WebKitCSSKeyframesRule_h #include "CSSRule.h" -#include "ExceptionCode.h" #include "StyleRule.h" #include -#include #include namespace WebCore { @@ -72,7 +70,12 @@ class WebKitCSSKeyframesRule : public CSSRule { public: static PassRefPtr create(StyleRuleKeyframes* rule, CSSStyleSheet* sheet) { return adoptRef(new WebKitCSSKeyframesRule(rule, sheet)); } - ~WebKitCSSKeyframesRule(); + virtual ~WebKitCSSKeyframesRule(); + + virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_KEYFRAMES_RULE; } + virtual String cssText() const OVERRIDE; + virtual void reattach(StyleRuleBase*) OVERRIDE; + virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; String name() const { return m_keyframesRule->name(); } void setName(const String&); @@ -83,21 +86,14 @@ public: void deleteRule(const String& key); WebKitCSSKeyframeRule* findRule(const String& key); - String cssText() const; - // For IndexedGetter and CSSRuleList. unsigned length() const; WebKitCSSKeyframeRule* item(unsigned index) const; - void reattach(StyleRuleKeyframes*); - - void reportDescendantMemoryUsage(MemoryObjectInfo*) const; - private: WebKitCSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); RefPtr m_keyframesRule; - mutable Vector > m_childRuleCSSOMWrappers; mutable OwnPtr m_ruleListCSSOMWrapper; }; -- cgit v1.2.1