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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
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 int findKeyframeIndex(const String& key) const; | 55 int findKeyframeIndex(const String& key) const; |
56 | 56 |
57 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK
eyframes(*this)); } | 57 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK
eyframes(*this)); } |
58 | 58 |
59 private: | 59 private: |
60 StyleRuleKeyframes(); | 60 StyleRuleKeyframes(); |
61 StyleRuleKeyframes(const StyleRuleKeyframes&); | 61 explicit StyleRuleKeyframes(const StyleRuleKeyframes&); |
62 | 62 |
63 Vector<RefPtr<StyleKeyframe> > m_keyframes; | 63 Vector<RefPtr<StyleKeyframe> > m_keyframes; |
64 AtomicString m_name; | 64 AtomicString m_name; |
65 }; | 65 }; |
66 | 66 |
67 class CSSKeyframesRule : public CSSRule { | 67 class CSSKeyframesRule : public CSSRule { |
68 public: | 68 public: |
69 static PassRefPtr<CSSKeyframesRule> create(StyleRuleKeyframes* rule, CSSStyl
eSheet* sheet) { return adoptRef(new CSSKeyframesRule(rule, sheet)); } | 69 static PassRefPtr<CSSKeyframesRule> create(StyleRuleKeyframes* rule, CSSStyl
eSheet* sheet) { return adoptRef(new CSSKeyframesRule(rule, sheet)); } |
70 | 70 |
71 virtual ~CSSKeyframesRule(); | 71 virtual ~CSSKeyframesRule(); |
(...skipping 19 matching lines...) Expand all Loading... |
91 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); | 91 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); |
92 | 92 |
93 RefPtr<StyleRuleKeyframes> m_keyframesRule; | 93 RefPtr<StyleRuleKeyframes> m_keyframesRule; |
94 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; | 94 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; |
95 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; | 95 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace WebCore | 98 } // namespace WebCore |
99 | 99 |
100 #endif // CSSKeyframesRule_h | 100 #endif // CSSKeyframesRule_h |
OLD | NEW |