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

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

Issue 15923002: Move CSSOM classes to using MutableStylePropertySet over StylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/WebKitCSSKeyframeRule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef WebKitCSSKeyframeRule_h 26 #ifndef WebKitCSSKeyframeRule_h
27 #define WebKitCSSKeyframeRule_h 27 #define WebKitCSSKeyframeRule_h
28 28
29 #include "core/css/CSSRule.h" 29 #include "core/css/CSSRule.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class CSSStyleDeclaration; 33 class CSSStyleDeclaration;
34 class MutableStylePropertySet;
34 class StylePropertySet; 35 class StylePropertySet;
35 class StyleRuleCSSStyleDeclaration; 36 class StyleRuleCSSStyleDeclaration;
36 class WebKitCSSKeyframesRule; 37 class WebKitCSSKeyframesRule;
37 38
38 class StyleKeyframe : public RefCounted<StyleKeyframe> { 39 class StyleKeyframe : public RefCounted<StyleKeyframe> {
39 WTF_MAKE_FAST_ALLOCATED; 40 WTF_MAKE_FAST_ALLOCATED;
40 public: 41 public:
41 static PassRefPtr<StyleKeyframe> create() 42 static PassRefPtr<StyleKeyframe> create()
42 { 43 {
43 return adoptRef(new StyleKeyframe()); 44 return adoptRef(new StyleKeyframe());
44 } 45 }
45 ~StyleKeyframe(); 46 ~StyleKeyframe();
46 47
47 String keyText() const { return m_key; } 48 String keyText() const { return m_key; }
48 void setKeyText(const String& s) { m_key = s; } 49 void setKeyText(const String& s) { m_key = s; }
49 50
50 void getKeys(Vector<float>& keys) const { parseKeyString(m_key, keys); } 51 void getKeys(Vector<float>& keys) const { parseKeyString(m_key, keys); }
51 52
52 const StylePropertySet* properties() const { return m_properties.get(); } 53 const StylePropertySet* properties() const { return m_properties.get(); }
53 StylePropertySet* mutableProperties(); 54 MutableStylePropertySet* mutableProperties();
54 void setProperties(PassRefPtr<StylePropertySet>); 55 void setProperties(PassRefPtr<StylePropertySet>);
55 56
56 String cssText() const; 57 String cssText() const;
57 58
58 void reportMemoryUsage(MemoryObjectInfo*) const; 59 void reportMemoryUsage(MemoryObjectInfo*) const;
59 60
60 private: 61 private:
61 StyleKeyframe(); 62 StyleKeyframe();
62 63
63 static void parseKeyString(const String&, Vector<float>& keys); 64 static void parseKeyString(const String&, Vector<float>& keys);
(...skipping 23 matching lines...) Expand all
87 88
88 RefPtr<StyleKeyframe> m_keyframe; 89 RefPtr<StyleKeyframe> m_keyframe;
89 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; 90 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
90 91
91 friend class WebKitCSSKeyframesRule; 92 friend class WebKitCSSKeyframesRule;
92 }; 93 };
93 94
94 } // namespace WebCore 95 } // namespace WebCore
95 96
96 #endif // WebKitCSSKeyframeRule_h 97 #endif // WebKitCSSKeyframeRule_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/WebKitCSSKeyframeRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698