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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSKeyframesRule.h

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 int findKeyframeIndex(const String& key) const; 58 int findKeyframeIndex(const String& key) const;
59 59
60 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> copy() const { return adoptRefWil lBeNoop(new StyleRuleKeyframes(*this)); } 60 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> copy() const { return adoptRefWil lBeNoop(new StyleRuleKeyframes(*this)); }
61 61
62 DECLARE_TRACE_AFTER_DISPATCH(); 62 DECLARE_TRACE_AFTER_DISPATCH();
63 63
64 void styleChanged() { m_version++; } 64 void styleChanged() { m_version++; }
65 unsigned version() const { return m_version; } 65 unsigned version() const { return m_version; }
66 66
67 void purgeMemory();
68
67 private: 69 private:
68 StyleRuleKeyframes(); 70 StyleRuleKeyframes();
69 explicit StyleRuleKeyframes(const StyleRuleKeyframes&); 71 explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
70 72
71 WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe>> m_keyframes; 73 WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe>> m_keyframes;
72 AtomicString m_name; 74 AtomicString m_name;
73 unsigned m_version : 31; 75 unsigned m_version : 31;
74 unsigned m_isPrefixed : 1; 76 unsigned m_isPrefixed : 1;
75 }; 77 };
76 78
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 mutable WillBeHeapVector<RefPtrWillBeMember<CSSKeyframeRule>> m_childRuleCSS OMWrappers; 123 mutable WillBeHeapVector<RefPtrWillBeMember<CSSKeyframeRule>> m_childRuleCSS OMWrappers;
122 mutable OwnPtrWillBeMember<CSSRuleList> m_ruleListCSSOMWrapper; 124 mutable OwnPtrWillBeMember<CSSRuleList> m_ruleListCSSOMWrapper;
123 bool m_isPrefixed; 125 bool m_isPrefixed;
124 }; 126 };
125 127
126 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE); 128 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE);
127 129
128 } // namespace blink 130 } // namespace blink
129 131
130 #endif // CSSKeyframesRule_h 132 #endif // CSSKeyframesRule_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698