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

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

Issue 273843003: [Oilpan]: Make StylePropertySet fully garbage collected. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review feedback Created 6 years, 5 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/CSSCalculationValueTest.cpp ('k') | Source/core/css/CSSKeyframeRule.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 String keyText() const; 50 String keyText() const;
51 void setKeyText(const String&); 51 void setKeyText(const String&);
52 52
53 // Used by StyleResolver. 53 // Used by StyleResolver.
54 const Vector<double>& keys() const; 54 const Vector<double>& keys() const;
55 // Used by BisonCSSParser when constructing a new StyleKeyframe. 55 // Used by BisonCSSParser when constructing a new StyleKeyframe.
56 void setKeys(PassOwnPtr<Vector<double> >); 56 void setKeys(PassOwnPtr<Vector<double> >);
57 57
58 const StylePropertySet& properties() const { return *m_properties; } 58 const StylePropertySet& properties() const { return *m_properties; }
59 MutableStylePropertySet& mutableProperties(); 59 MutableStylePropertySet& mutableProperties();
60 void setProperties(PassRefPtr<StylePropertySet>); 60 void setProperties(PassRefPtrWillBeRawPtr<StylePropertySet>);
61 61
62 String cssText() const; 62 String cssText() const;
63 63
64 void trace(Visitor*) { } 64 void trace(Visitor*);
65 65
66 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*); 66 static PassOwnPtr<Vector<double> > createKeyList(CSSParserValueList*);
67 67
68 private: 68 private:
69 StyleKeyframe(); 69 StyleKeyframe();
70 70
71 RefPtr<StylePropertySet> m_properties; 71 RefPtrWillBeMember<StylePropertySet> m_properties;
72 // These are both calculated lazily. Either one can be set, which invalidate s the other. 72 // These are both calculated lazily. Either one can be set, which invalidate s the other.
73 mutable String m_keyText; 73 mutable String m_keyText;
74 mutable OwnPtr<Vector<double> > m_keys; 74 mutable OwnPtr<Vector<double> > m_keys;
75 }; 75 };
76 76
77 class CSSKeyframeRule FINAL : public CSSRule { 77 class CSSKeyframeRule FINAL : public CSSRule {
78 public: 78 public:
79 virtual ~CSSKeyframeRule(); 79 virtual ~CSSKeyframeRule();
80 80
81 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAME_RULE; } 81 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAME_RULE; }
(...skipping 14 matching lines...) Expand all
96 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr apper; 96 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr apper;
97 97
98 friend class CSSKeyframesRule; 98 friend class CSSKeyframesRule;
99 }; 99 };
100 100
101 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); 101 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
102 102
103 } // namespace WebCore 103 } // namespace WebCore
104 104
105 #endif // CSSKeyframeRule_h 105 #endif // CSSKeyframeRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSCalculationValueTest.cpp ('k') | Source/core/css/CSSKeyframeRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698