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

Side by Side Diff: Source/core/page/animation/ImplicitAnimation.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 ImplicitAnimation::~ImplicitAnimation() 55 ImplicitAnimation::~ImplicitAnimation()
56 { 56 {
57 // // Make sure to tell the renderer that we are ending. This will make sure any accelerated animations are removed. 57 // // Make sure to tell the renderer that we are ending. This will make sure any accelerated animations are removed.
58 if (!postActive()) 58 if (!postActive())
59 endAnimation(); 59 endAnimation();
60 } 60 }
61 61
62 bool ImplicitAnimation::shouldSendEventForListener(Document::ListenerType inList enerType) const 62 bool ImplicitAnimation::shouldSendEventForListener(Document::ListenerType inList enerType) const
63 { 63 {
64 return m_object->document()->hasListenerType(inListenerType); 64 return m_object->document().hasListenerType(inListenerType);
65 } 65 }
66 66
67 void ImplicitAnimation::animate(CompositeAnimation*, RenderObject*, const Render Style*, RenderStyle* targetStyle, RefPtr<RenderStyle>& animatedStyle) 67 void ImplicitAnimation::animate(CompositeAnimation*, RenderObject*, const Render Style*, RenderStyle* targetStyle, RefPtr<RenderStyle>& animatedStyle)
68 { 68 {
69 // If we get this far and the animation is done, it means we are cleaning up a just finished animation. 69 // If we get this far and the animation is done, it means we are cleaning up a just finished animation.
70 // So just return. Everything is already all cleaned up. 70 // So just return. Everything is already all cleaned up.
71 if (postActive()) 71 if (postActive())
72 return; 72 return;
73 73
74 // Reset to start the transition if we are new 74 // Reset to start the transition if we are new
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // only need service at the end of the transition. 282 // only need service at the end of the transition.
283 if (CSSPropertyAnimation::animationOfPropertyIsAccelerated(m_animatingProper ty) && isAccelerated()) { 283 if (CSSPropertyAnimation::animationOfPropertyIsAccelerated(m_animatingProper ty) && isAccelerated()) {
284 bool isLooping; 284 bool isLooping;
285 getTimeToNextEvent(t, isLooping); 285 getTimeToNextEvent(t, isLooping);
286 } 286 }
287 287
288 return t; 288 return t;
289 } 289 }
290 290
291 } // namespace WebCore 291 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/animation/AnimationController.cpp ('k') | Source/core/page/animation/KeyframeAnimation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698