Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/core/css/StyleRuleKeyframe.h

Issue 1069153002: Remove BisonCSSParser references in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef StyleRuleKeyframe_h 5 #ifndef StyleRuleKeyframe_h
6 #define StyleRuleKeyframe_h 6 #define StyleRuleKeyframe_h
7 7
8 #include "core/css/StyleRule.h" 8 #include "core/css/StyleRule.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CSSParserValueList; 12 class CSSParserValueList;
13 class MutableStylePropertySet; 13 class MutableStylePropertySet;
14 class StylePropertySet; 14 class StylePropertySet;
15 15
16 class StyleRuleKeyframe final : public StyleRuleBase { 16 class StyleRuleKeyframe final : public StyleRuleBase {
17 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleRuleKeyframe); 17 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(StyleRuleKeyframe);
18 public: 18 public:
19 static PassRefPtrWillBeRawPtr<StyleRuleKeyframe> create() 19 static PassRefPtrWillBeRawPtr<StyleRuleKeyframe> create()
20 { 20 {
21 return adoptRefWillBeNoop(new StyleRuleKeyframe()); 21 return adoptRefWillBeNoop(new StyleRuleKeyframe());
22 } 22 }
23 23
24 // Exposed to JavaScript. 24 // Exposed to JavaScript.
25 String keyText() const; 25 String keyText() const;
26 bool setKeyText(const String&); 26 bool setKeyText(const String&);
27 27
28 // Used by StyleResolver. 28 // Used by StyleResolver.
29 const Vector<double>& keys() const; 29 const Vector<double>& keys() const;
30 // Used by BisonCSSParser when constructing a new StyleRuleKeyframe. 30 // Used by the CSS parser when constructing a new StyleRuleKeyframe.
31 void setKeys(PassOwnPtr<Vector<double>>); 31 void setKeys(PassOwnPtr<Vector<double>>);
32 32
33 const StylePropertySet& properties() const { return *m_properties; } 33 const StylePropertySet& properties() const { return *m_properties; }
34 MutableStylePropertySet& mutableProperties(); 34 MutableStylePropertySet& mutableProperties();
35 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>); 35 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>);
36 36
37 String cssText() const; 37 String cssText() const;
38 38
39 DECLARE_TRACE_AFTER_DISPATCH(); 39 DECLARE_TRACE_AFTER_DISPATCH();
40 40
41 static PassOwnPtr<Vector<double>> createKeyList(CSSParserValueList*); 41 static PassOwnPtr<Vector<double>> createKeyList(CSSParserValueList*);
42 42
43 private: 43 private:
44 StyleRuleKeyframe(); 44 StyleRuleKeyframe();
45 45
46 RefPtrWillBeMember<StylePropertySet> m_properties; 46 RefPtrWillBeMember<StylePropertySet> m_properties;
47 Vector<double> m_keys; 47 Vector<double> m_keys;
48 }; 48 };
49 49
50 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe); 50 DEFINE_STYLE_RULE_TYPE_CASTS(Keyframe);
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 #endif // StyleRuleKeyframe_h 54 #endif // StyleRuleKeyframe_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698