| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 for (bool& flag : cancelRunningAnimationFlags) | 280 for (bool& flag : cancelRunningAnimationFlags) |
| 281 flag = true; | 281 flag = true; |
| 282 | 282 |
| 283 if (animationData && style.display() != NONE) { | 283 if (animationData && style.display() != NONE) { |
| 284 const Vector<AtomicString>& nameList = animationData->nameList(); | 284 const Vector<AtomicString>& nameList = animationData->nameList(); |
| 285 for (size_t i = 0; i < nameList.size(); ++i) { | 285 for (size_t i = 0; i < nameList.size(); ++i) { |
| 286 AtomicString name = nameList[i]; | 286 AtomicString name = nameList[i]; |
| 287 if (name == CSSAnimationData::initialName()) | 287 if (name == CSSAnimationData::initialName()) |
| 288 continue; | 288 continue; |
| 289 | 289 |
| 290 // Find n where this is the nth occurence of this animation name. | 290 // Find n where this is the nth occurrence of this animation name. |
| 291 size_t nameIndex = 0; | 291 size_t nameIndex = 0; |
| 292 for (size_t j = 0; j < i; j++) { | 292 for (size_t j = 0; j < i; j++) { |
| 293 if (nameList[j] == name) | 293 if (nameList[j] == name) |
| 294 nameIndex++; | 294 nameIndex++; |
| 295 } | 295 } |
| 296 | 296 |
| 297 const bool isPaused = CSSTimingData::getRepeated(animationData->play
StateList(), i) == AnimPlayStatePaused; | 297 const bool isPaused = CSSTimingData::getRepeated(animationData->play
StateList(), i) == AnimPlayStatePaused; |
| 298 | 298 |
| 299 Timing timing = animationData->convertToTiming(i); | 299 Timing timing = animationData->convertToTiming(i); |
| 300 Timing specifiedTiming = timing; | 300 Timing specifiedTiming = timing; |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 } | 838 } |
| 839 | 839 |
| 840 DEFINE_TRACE(CSSAnimations) | 840 DEFINE_TRACE(CSSAnimations) |
| 841 { | 841 { |
| 842 visitor->trace(m_transitions); | 842 visitor->trace(m_transitions); |
| 843 visitor->trace(m_pendingUpdate); | 843 visitor->trace(m_pendingUpdate); |
| 844 visitor->trace(m_runningAnimations); | 844 visitor->trace(m_runningAnimations); |
| 845 } | 845 } |
| 846 | 846 |
| 847 } // namespace blink | 847 } // namespace blink |
| OLD | NEW |