| 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 28 matching lines...) Expand all Loading... |
| 39 class StyleKeyframe : public RefCounted<StyleKeyframe> { | 39 class StyleKeyframe : public RefCounted<StyleKeyframe> { |
| 40 WTF_MAKE_FAST_ALLOCATED; | 40 WTF_MAKE_FAST_ALLOCATED; |
| 41 public: | 41 public: |
| 42 static PassRefPtr<StyleKeyframe> create() | 42 static PassRefPtr<StyleKeyframe> create() |
| 43 { | 43 { |
| 44 return adoptRef(new StyleKeyframe()); | 44 return adoptRef(new StyleKeyframe()); |
| 45 } | 45 } |
| 46 ~StyleKeyframe(); | 46 ~StyleKeyframe(); |
| 47 | 47 |
| 48 String keyText() const { return m_key; } | 48 String keyText() const { return m_key; } |
| 49 // FIXME: Should we trim whitespace? |
| 50 // FIXME: Should we leave keyText unchanged when attempting to set to an |
| 51 // invalid string? |
| 49 void setKeyText(const String& s) { m_key = s; } | 52 void setKeyText(const String& s) { m_key = s; } |
| 50 | 53 |
| 51 void getKeys(Vector<float>& keys) const { parseKeyString(m_key, keys); } | 54 void getKeys(Vector<float>& keys) const { parseKeyString(m_key, keys); } |
| 52 | 55 |
| 53 const StylePropertySet* properties() const { return m_properties.get(); } | 56 const StylePropertySet* properties() const { return m_properties.get(); } |
| 54 MutableStylePropertySet* mutableProperties(); | 57 MutableStylePropertySet* mutableProperties(); |
| 55 void setProperties(PassRefPtr<StylePropertySet>); | 58 void setProperties(PassRefPtr<StylePropertySet>); |
| 56 | 59 |
| 57 String cssText() const; | 60 String cssText() const; |
| 58 | 61 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 88 | 91 |
| 89 RefPtr<StyleKeyframe> m_keyframe; | 92 RefPtr<StyleKeyframe> m_keyframe; |
| 90 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; | 93 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; |
| 91 | 94 |
| 92 friend class CSSKeyframesRule; | 95 friend class CSSKeyframesRule; |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace WebCore | 98 } // namespace WebCore |
| 96 | 99 |
| 97 #endif // CSSKeyframeRule_h | 100 #endif // CSSKeyframeRule_h |
| OLD | NEW |