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

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

Issue 205033007: Revert of Oilpan: Move CSSStyleDeclaration and subclasses to the heap using transistion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/CSSFontFaceRule.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAME_RULE; } 79 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAME_RULE; }
80 virtual String cssText() const OVERRIDE { return m_keyframe->cssText(); } 80 virtual String cssText() const OVERRIDE { return m_keyframe->cssText(); }
81 virtual void reattach(StyleRuleBase*) OVERRIDE; 81 virtual void reattach(StyleRuleBase*) OVERRIDE;
82 82
83 String keyText() const { return m_keyframe->keyText(); } 83 String keyText() const { return m_keyframe->keyText(); }
84 void setKeyText(const String& s) { m_keyframe->setKeyText(s); } 84 void setKeyText(const String& s) { m_keyframe->setKeyText(s); }
85 85
86 CSSStyleDeclaration* style() const; 86 CSSStyleDeclaration* style() const;
87 87
88 virtual void trace(Visitor*) OVERRIDE; 88 virtual void trace(Visitor* visitor) OVERRIDE { CSSRule::trace(visitor); }
89 89
90 private: 90 private:
91 CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent); 91 CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent);
92 92
93 RefPtr<StyleKeyframe> m_keyframe; 93 RefPtr<StyleKeyframe> m_keyframe;
94 mutable RefPtrWillBeMember<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWr apper; 94 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
95 95
96 friend class CSSKeyframesRule; 96 friend class CSSKeyframesRule;
97 }; 97 };
98 98
99 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE); 99 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
100 100
101 } // namespace WebCore 101 } // namespace WebCore
102 102
103 #endif // CSSKeyframeRule_h 103 #endif // CSSKeyframeRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontFaceRule.cpp ('k') | Source/core/css/CSSKeyframeRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698