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

Side by Side Diff: Source/core/frame/animation/KeyframeAnimation.cpp

Issue 57643004: Pass RenderStyle / RenderObject by reference in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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
« no previous file with comments | « Source/core/frame/animation/KeyframeAnimation.h ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2012 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 26 matching lines...) Expand all
37 #include "core/frame/animation/CSSPropertyAnimation.h" 37 #include "core/frame/animation/CSSPropertyAnimation.h"
38 #include "core/frame/animation/CompositeAnimation.h" 38 #include "core/frame/animation/CompositeAnimation.h"
39 #include "core/rendering/RenderBoxModelObject.h" 39 #include "core/rendering/RenderBoxModelObject.h"
40 #include "core/rendering/style/RenderStyle.h" 40 #include "core/rendering/style/RenderStyle.h"
41 #include "public/platform/Platform.h" 41 #include "public/platform/Platform.h"
42 42
43 using namespace std; 43 using namespace std;
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 KeyframeAnimation::KeyframeAnimation(const CSSAnimationData* animation, RenderOb ject* renderer, int index, CompositeAnimation* compAnim, RenderStyle* unanimated Style) 47 KeyframeAnimation::KeyframeAnimation(const CSSAnimationData* animation, RenderOb ject& renderer, int index, CompositeAnimation* compAnim, RenderStyle& unanimated Style)
48 : AnimationBase(animation, renderer, compAnim) 48 : AnimationBase(animation, renderer, compAnim)
49 , m_keyframes(renderer, animation->name()) 49 , m_keyframes(renderer, animation->name())
50 , m_index(index) 50 , m_index(index)
51 , m_startEventDispatched(false) 51 , m_startEventDispatched(false)
52 , m_unanimatedStyle(unanimatedStyle) 52 , m_unanimatedStyle(unanimatedStyle)
53 { 53 {
54 // Get the keyframe RenderStyles 54 // Get the keyframe RenderStyles
55 if (m_object && m_object->node() && m_object->node()->isElementNode()) 55 if (m_object && m_object->node() && m_object->node()->isElementNode())
56 m_object->document().styleResolver()->keyframeStylesForAnimation(toEleme nt(m_object->node()), unanimatedStyle, m_keyframes); 56 m_object->document().styleResolver()->keyframeStylesForAnimation(toEleme nt(m_object->node()), unanimatedStyle, m_keyframes);
57 57
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 if (acceleratedPropertiesOnly) { 449 if (acceleratedPropertiesOnly) {
450 bool isLooping; 450 bool isLooping;
451 getTimeToNextEvent(t, isLooping); 451 getTimeToNextEvent(t, isLooping);
452 } 452 }
453 453
454 return t; 454 return t;
455 } 455 }
456 456
457 } // namespace WebCore 457 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/animation/KeyframeAnimation.h ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698