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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 | 56 |
57 PassRefPtrWillBeRawPtr<AnimationTimeline> AnimationTimeline::create(Document* do
cument, PassOwnPtrWillBeRawPtr<PlatformTiming> timing) | 57 PassRefPtrWillBeRawPtr<AnimationTimeline> AnimationTimeline::create(Document* do
cument, PassOwnPtrWillBeRawPtr<PlatformTiming> timing) |
58 { | 58 { |
59 return adoptRefWillBeNoop(new AnimationTimeline(document, timing)); | 59 return adoptRefWillBeNoop(new AnimationTimeline(document, timing)); |
60 } | 60 } |
61 | 61 |
62 AnimationTimeline::AnimationTimeline(Document* document, PassOwnPtrWillBeRawPtr<
PlatformTiming> timing) | 62 AnimationTimeline::AnimationTimeline(Document* document, PassOwnPtrWillBeRawPtr<
PlatformTiming> timing) |
63 : m_document(document) | 63 : m_document(document) |
64 { | 64 { |
65 ScriptWrappable::init(this); | |
66 if (!timing) | 65 if (!timing) |
67 m_timing = adoptPtrWillBeNoop(new AnimationTimelineTiming(this)); | 66 m_timing = adoptPtrWillBeNoop(new AnimationTimelineTiming(this)); |
68 else | 67 else |
69 m_timing = timing; | 68 m_timing = timing; |
70 | 69 |
71 ASSERT(document); | 70 ASSERT(document); |
72 } | 71 } |
73 | 72 |
74 AnimationTimeline::~AnimationTimeline() | 73 AnimationTimeline::~AnimationTimeline() |
75 { | 74 { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 { | 234 { |
236 #if ENABLE(OILPAN) | 235 #if ENABLE(OILPAN) |
237 visitor->trace(m_document); | 236 visitor->trace(m_document); |
238 visitor->trace(m_timing); | 237 visitor->trace(m_timing); |
239 visitor->trace(m_playersNeedingUpdate); | 238 visitor->trace(m_playersNeedingUpdate); |
240 visitor->trace(m_players); | 239 visitor->trace(m_players); |
241 #endif | 240 #endif |
242 } | 241 } |
243 | 242 |
244 } // namespace | 243 } // namespace |
OLD | NEW |