| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 String name() const { return m_name; } | 52 String name() const { return m_name; } |
| 53 void setName(const String& name) { m_name = AtomicString(name); } | 53 void setName(const String& name) { m_name = AtomicString(name); } |
| 54 | 54 |
| 55 bool isVendorPrefixed() const { return m_isPrefixed; } | 55 bool isVendorPrefixed() const { return m_isPrefixed; } |
| 56 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; } | 56 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; } |
| 57 | 57 |
| 58 int findKeyframeIndex(const String& key) const; | 58 int findKeyframeIndex(const String& key) const; |
| 59 | 59 |
| 60 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK
eyframes(*this)); } | 60 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK
eyframes(*this)); } |
| 61 | 61 |
| 62 void traceAfterDispatch(Visitor*); | |
| 63 | |
| 64 private: | 62 private: |
| 65 StyleRuleKeyframes(); | 63 StyleRuleKeyframes(); |
| 66 explicit StyleRuleKeyframes(const StyleRuleKeyframes&); | 64 explicit StyleRuleKeyframes(const StyleRuleKeyframes&); |
| 67 | 65 |
| 68 Vector<RefPtr<StyleKeyframe> > m_keyframes; | 66 Vector<RefPtr<StyleKeyframe> > m_keyframes; |
| 69 AtomicString m_name; | 67 AtomicString m_name; |
| 70 bool m_isPrefixed; | 68 bool m_isPrefixed; |
| 71 }; | 69 }; |
| 72 | 70 |
| 73 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframes); | 71 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframes); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 94 void deleteRule(const String& key); | 92 void deleteRule(const String& key); |
| 95 CSSKeyframeRule* findRule(const String& key); | 93 CSSKeyframeRule* findRule(const String& key); |
| 96 | 94 |
| 97 // For IndexedGetter and CSSRuleList. | 95 // For IndexedGetter and CSSRuleList. |
| 98 unsigned length() const; | 96 unsigned length() const; |
| 99 CSSKeyframeRule* item(unsigned index) const; | 97 CSSKeyframeRule* item(unsigned index) const; |
| 100 | 98 |
| 101 bool isVendorPrefixed() const { return m_isPrefixed; } | 99 bool isVendorPrefixed() const { return m_isPrefixed; } |
| 102 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; } | 100 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; } |
| 103 | 101 |
| 104 virtual void trace(Visitor*) override; | |
| 105 | |
| 106 private: | 102 private: |
| 107 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); | 103 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); |
| 108 | 104 |
| 109 RefPtr<StyleRuleKeyframes> m_keyframesRule; | 105 RefPtr<StyleRuleKeyframes> m_keyframesRule; |
| 110 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; | 106 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; |
| 111 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; | 107 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; |
| 112 bool m_isPrefixed; | 108 bool m_isPrefixed; |
| 113 }; | 109 }; |
| 114 | 110 |
| 115 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE); | 111 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE); |
| 116 | 112 |
| 117 } // namespace blink | 113 } // namespace blink |
| 118 | 114 |
| 119 #endif // CSSKeyframesRule_h | 115 #endif // CSSKeyframesRule_h |
| OLD | NEW |