| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 { | 53 { |
| 54 return std::isnan(value); | 54 return std::isnan(value); |
| 55 } | 55 } |
| 56 | 56 |
| 57 static inline double nullValue() | 57 static inline double nullValue() |
| 58 { | 58 { |
| 59 return std::numeric_limits<double>::quiet_NaN(); | 59 return std::numeric_limits<double>::quiet_NaN(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 class AnimationNode : public RefCountedWillBeGarbageCollectedFinalized<Animation
Node>, public ScriptWrappable { | 62 class AnimationNode : public RefCountedWillBeGarbageCollectedFinalized<Animation
Node>, public ScriptWrappable { |
| 63 DEFINE_WRAPPERTYPEINFO(); |
| 63 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime. | 64 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime. |
| 64 public: | 65 public: |
| 65 // Note that logic in CSSAnimations depends on the order of these values. | 66 // Note that logic in CSSAnimations depends on the order of these values. |
| 66 enum Phase { | 67 enum Phase { |
| 67 PhaseBefore, | 68 PhaseBefore, |
| 68 PhaseActive, | 69 PhaseActive, |
| 69 PhaseAfter, | 70 PhaseAfter, |
| 70 PhaseNone, | 71 PhaseNone, |
| 71 }; | 72 }; |
| 72 | 73 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } m_calculated; | 164 } m_calculated; |
| 164 mutable bool m_needsUpdate; | 165 mutable bool m_needsUpdate; |
| 165 mutable double m_lastUpdateTime; | 166 mutable double m_lastUpdateTime; |
| 166 | 167 |
| 167 const CalculatedTiming& ensureCalculated() const; | 168 const CalculatedTiming& ensureCalculated() const; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace blink | 171 } // namespace blink |
| 171 | 172 |
| 172 #endif | 173 #endif |
| OLD | NEW |