| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const StylePropertySet& properties() const { return *m_properties; } | 59 const StylePropertySet& properties() const { return *m_properties; } |
| 60 MutableStylePropertySet& mutableProperties(); | 60 MutableStylePropertySet& mutableProperties(); |
| 61 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>); | 61 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>); |
| 62 | 62 |
| 63 String cssText() const; | 63 String cssText() const; |
| 64 | 64 |
| 65 void trace(Visitor*); | 65 void trace(Visitor*); |
| 66 | 66 |
| 67 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); | 67 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); |
| 68 | 68 |
| 69 bool operator== (const StyleKeyframe& other) const { return keys() == keys()
&& cssText() == other.cssText(); } |
| 70 |
| 69 private: | 71 private: |
| 70 StyleKeyframe(); | 72 StyleKeyframe(); |
| 71 | 73 |
| 72 RefPtrWillBeMember<StylePropertySet> m_properties; | 74 RefPtrWillBeMember<StylePropertySet> m_properties; |
| 73 Vector<double> m_keys; | 75 Vector<double> m_keys; |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 class CSSKeyframeRule final : public CSSRule { | 78 class CSSKeyframeRule final : public CSSRule { |
| 77 DEFINE_WRAPPERTYPEINFO(); | 79 DEFINE_WRAPPERTYPEINFO(); |
| 78 public: | 80 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 97 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr
apper; | 99 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr
apper; |
| 98 | 100 |
| 99 friend class CSSKeyframesRule; | 101 friend class CSSKeyframesRule; |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); | 104 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); |
| 103 | 105 |
| 104 } // namespace blink | 106 } // namespace blink |
| 105 | 107 |
| 106 #endif // CSSKeyframeRule_h | 108 #endif // CSSKeyframeRule_h |
| OLD | NEW |