OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/StyleRuleKeyframe.h" | 5 #include "core/css/StyleRuleKeyframe.h" |
6 | 6 |
7 #include "core/css/StylePropertySet.h" | 7 #include "core/css/StylePropertySet.h" |
8 #include "core/css/parser/CSSParser.h" | 8 #include "core/css/parser/CSSParser.h" |
9 #include "wtf/text/StringBuilder.h" | 9 #include "wtf/text/StringBuilder.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 StyleRuleKeyframe::StyleRuleKeyframe(PassOwnPtr<Vector<double>> keys, RawPtr<Sty
lePropertySet> properties) | 13 StyleRuleKeyframe::StyleRuleKeyframe(PassOwnPtr<Vector<double>> keys, StylePrope
rtySet* properties) |
14 : StyleRuleBase(Keyframe) | 14 : StyleRuleBase(Keyframe) |
15 , m_properties(properties) | 15 , m_properties(properties) |
16 , m_keys(*keys) | 16 , m_keys(*keys) |
17 { | 17 { |
18 } | 18 } |
19 | 19 |
20 String StyleRuleKeyframe::keyText() const | 20 String StyleRuleKeyframe::keyText() const |
21 { | 21 { |
22 ASSERT(!m_keys.isEmpty()); | 22 ASSERT(!m_keys.isEmpty()); |
23 | 23 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 return result.toString(); | 69 return result.toString(); |
70 } | 70 } |
71 | 71 |
72 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleKeyframe) | 72 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleKeyframe) |
73 { | 73 { |
74 visitor->trace(m_properties); | 74 visitor->trace(m_properties); |
75 StyleRuleBase::traceAfterDispatch(visitor); | 75 StyleRuleBase::traceAfterDispatch(visitor); |
76 } | 76 } |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
OLD | NEW |