OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 if (implAnim) { | 176 if (implAnim) { |
177 // This implAnim might not be an already running transition. It
might be | 177 // This implAnim might not be an already running transition. It
might be |
178 // newly added to the list in a previous iteration. This would h
appen if | 178 // newly added to the list in a previous iteration. This would h
appen if |
179 // you have both an explicit transition-property and 'all' in th
e same | 179 // you have both an explicit transition-property and 'all' in th
e same |
180 // list. In this case, the latter one overrides the earlier one,
so we | 180 // list. In this case, the latter one overrides the earlier one,
so we |
181 // behave as though this is a running animation being replaced. | 181 // behave as though this is a running animation being replaced. |
182 if (!implAnim->isTargetPropertyEqual(prop, targetStyle)) { | 182 if (!implAnim->isTargetPropertyEqual(prop, targetStyle)) { |
183 #if USE(ACCELERATED_COMPOSITING) | 183 #if USE(ACCELERATED_COMPOSITING) |
184 // For accelerated animations we need to return a new Render
Style with the _current_ value | 184 // For accelerated animations we need to return a new Render
Style with the _current_ value |
185 // of the property, so that restarted transitions use the co
rrect starting point. | 185 // of the property, so that restarted transitions use the co
rrect starting point. |
186 if (AnimationBase::animationOfPropertyIsAccelerated(prop)) { | 186 if (AnimationBase::animationOfPropertyIsAccelerated(prop)) |
| 187 { |
187 if (!modifiedCurrentStyle) | 188 if (!modifiedCurrentStyle) |
188 modifiedCurrentStyle = RenderStyle::clone(currentSty
le); | 189 modifiedCurrentStyle = RenderStyle::clone(currentSty
le); |
189 | 190 |
190 implAnim->blendPropertyValueInStyle(prop, modifiedCurren
tStyle.get()); | 191 implAnim->blendPropertyValueInStyle(prop, modifiedCurren
tStyle.get()); |
191 } | 192 } |
192 #endif | 193 #endif |
193 m_transitions.remove(prop); | 194 m_transitions.remove(prop); |
194 equal = false; | 195 equal = false; |
195 } | 196 } |
196 } else { | 197 } else { |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 return m_data->pauseTransitionAtTime(property, t); | 728 return m_data->pauseTransitionAtTime(property, t); |
728 } | 729 } |
729 | 730 |
730 unsigned CompositeAnimation::numberOfActiveAnimations() const | 731 unsigned CompositeAnimation::numberOfActiveAnimations() const |
731 { | 732 { |
732 return m_data->numberOfActiveAnimations(); | 733 return m_data->numberOfActiveAnimations(); |
733 } | 734 } |
734 | 735 |
735 } // namespace WebCore | 736 } // namespace WebCore |
736 | 737 |
OLD | NEW |