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

Side by Side Diff: sky/engine/core/css/CSSKeyframeRule.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/CSSKeyframeRule.h ('k') | sky/engine/core/css/CSSKeyframesRule.h » ('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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // "If a keyframe selector specifies negative percentage values 129 // "If a keyframe selector specifies negative percentage values
130 // or values higher than 100%, then the keyframe will be ignored." 130 // or values higher than 100%, then the keyframe will be ignored."
131 keyVector->clear(); 131 keyVector->clear();
132 break; 132 break;
133 } 133 }
134 keyVector->at(i) = key / 100; 134 keyVector->at(i) = key / 100;
135 } 135 }
136 return keyVector.release(); 136 return keyVector.release();
137 } 137 }
138 138
139 void StyleKeyframe::trace(Visitor* visitor)
140 {
141 visitor->trace(m_properties);
142 }
143
144 CSSKeyframeRule::CSSKeyframeRule(StyleKeyframe* keyframe, CSSKeyframesRule* pare nt) 139 CSSKeyframeRule::CSSKeyframeRule(StyleKeyframe* keyframe, CSSKeyframesRule* pare nt)
145 : CSSRule(0) 140 : CSSRule(0)
146 , m_keyframe(keyframe) 141 , m_keyframe(keyframe)
147 { 142 {
148 setParentRule(parent); 143 setParentRule(parent);
149 } 144 }
150 145
151 CSSKeyframeRule::~CSSKeyframeRule() 146 CSSKeyframeRule::~CSSKeyframeRule()
152 { 147 {
153 #if !ENABLE(OILPAN) 148 #if !ENABLE(OILPAN)
154 if (m_propertiesCSSOMWrapper) 149 if (m_propertiesCSSOMWrapper)
155 m_propertiesCSSOMWrapper->clearParentRule(); 150 m_propertiesCSSOMWrapper->clearParentRule();
156 #endif 151 #endif
157 } 152 }
158 153
159 CSSStyleDeclaration* CSSKeyframeRule::style() const 154 CSSStyleDeclaration* CSSKeyframeRule::style() const
160 { 155 {
161 if (!m_propertiesCSSOMWrapper) 156 if (!m_propertiesCSSOMWrapper)
162 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyfra me->mutableProperties(), const_cast<CSSKeyframeRule*>(this)); 157 m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyfra me->mutableProperties(), const_cast<CSSKeyframeRule*>(this));
163 return m_propertiesCSSOMWrapper.get(); 158 return m_propertiesCSSOMWrapper.get();
164 } 159 }
165 160
166 void CSSKeyframeRule::reattach(StyleRuleBase*) 161 void CSSKeyframeRule::reattach(StyleRuleBase*)
167 { 162 {
168 // No need to reattach, the underlying data is shareable on mutation. 163 // No need to reattach, the underlying data is shareable on mutation.
169 ASSERT_NOT_REACHED(); 164 ASSERT_NOT_REACHED();
170 } 165 }
171 166
172 void CSSKeyframeRule::trace(Visitor* visitor)
173 {
174 visitor->trace(m_keyframe);
175 visitor->trace(m_propertiesCSSOMWrapper);
176 CSSRule::trace(visitor);
177 }
178
179 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSKeyframeRule.h ('k') | sky/engine/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698