| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. | 2  * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions | 5  * modification, are permitted provided that the following conditions | 
| 6  * are met: | 6  * are met: | 
| 7  * 1. Redistributions of source code must retain the above copyright | 7  * 1. Redistributions of source code must retain the above copyright | 
| 8  *    notice, this list of conditions and the following disclaimer. | 8  *    notice, this list of conditions and the following disclaimer. | 
| 9  * 2. Redistributions in binary form must reproduce the above copyright | 9  * 2. Redistributions in binary form must reproduce the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer in the | 10  *    notice, this list of conditions and the following disclaimer in the | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 24  */ | 24  */ | 
| 25 | 25 | 
| 26 #ifndef WebKitCSSKeyframeRule_h | 26 #ifndef WebKitCSSKeyframeRule_h | 
| 27 #define WebKitCSSKeyframeRule_h | 27 #define WebKitCSSKeyframeRule_h | 
| 28 | 28 | 
| 29 #include "core/css/CSSRule.h" | 29 #include "core/css/CSSRule.h" | 
| 30 | 30 | 
| 31 namespace WebCore { | 31 namespace WebCore { | 
| 32 | 32 | 
| 33 class CSSStyleDeclaration; | 33 class CSSStyleDeclaration; | 
|  | 34 class MutableStylePropertySet; | 
| 34 class StylePropertySet; | 35 class StylePropertySet; | 
| 35 class StyleRuleCSSStyleDeclaration; | 36 class StyleRuleCSSStyleDeclaration; | 
| 36 class WebKitCSSKeyframesRule; | 37 class WebKitCSSKeyframesRule; | 
| 37 | 38 | 
| 38 class StyleKeyframe : public RefCounted<StyleKeyframe> { | 39 class StyleKeyframe : public RefCounted<StyleKeyframe> { | 
| 39     WTF_MAKE_FAST_ALLOCATED; | 40     WTF_MAKE_FAST_ALLOCATED; | 
| 40 public: | 41 public: | 
| 41     static PassRefPtr<StyleKeyframe> create() | 42     static PassRefPtr<StyleKeyframe> create() | 
| 42     { | 43     { | 
| 43         return adoptRef(new StyleKeyframe()); | 44         return adoptRef(new StyleKeyframe()); | 
| 44     } | 45     } | 
| 45     ~StyleKeyframe(); | 46     ~StyleKeyframe(); | 
| 46 | 47 | 
| 47     String keyText() const { return m_key; } | 48     String keyText() const { return m_key; } | 
| 48     void setKeyText(const String& s) { m_key = s; } | 49     void setKeyText(const String& s) { m_key = s; } | 
| 49 | 50 | 
| 50     void getKeys(Vector<float>& keys) const   { parseKeyString(m_key, keys); } | 51     void getKeys(Vector<float>& keys) const   { parseKeyString(m_key, keys); } | 
| 51 | 52 | 
| 52     const StylePropertySet* properties() const { return m_properties.get(); } | 53     const StylePropertySet* properties() const { return m_properties.get(); } | 
| 53     StylePropertySet* mutableProperties(); | 54     MutableStylePropertySet* mutableProperties(); | 
| 54     void setProperties(PassRefPtr<StylePropertySet>); | 55     void setProperties(PassRefPtr<StylePropertySet>); | 
| 55 | 56 | 
| 56     String cssText() const; | 57     String cssText() const; | 
| 57 | 58 | 
| 58     void reportMemoryUsage(MemoryObjectInfo*) const; | 59     void reportMemoryUsage(MemoryObjectInfo*) const; | 
| 59 | 60 | 
| 60 private: | 61 private: | 
| 61     StyleKeyframe(); | 62     StyleKeyframe(); | 
| 62 | 63 | 
| 63     static void parseKeyString(const String&, Vector<float>& keys); | 64     static void parseKeyString(const String&, Vector<float>& keys); | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 87 | 88 | 
| 88     RefPtr<StyleKeyframe> m_keyframe; | 89     RefPtr<StyleKeyframe> m_keyframe; | 
| 89     mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 90     mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 
| 90 | 91 | 
| 91     friend class WebKitCSSKeyframesRule; | 92     friend class WebKitCSSKeyframesRule; | 
| 92 }; | 93 }; | 
| 93 | 94 | 
| 94 } // namespace WebCore | 95 } // namespace WebCore | 
| 95 | 96 | 
| 96 #endif // WebKitCSSKeyframeRule_h | 97 #endif // WebKitCSSKeyframeRule_h | 
| OLD | NEW | 
|---|