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

Side by Side Diff: Source/core/platform/animation/CSSAnimationData.cpp

Issue 60033004: Don't check all animation/transition properties when comparing RenderStyles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 m_timingFunctionSet = o.m_timingFunctionSet; 97 m_timingFunctionSet = o.m_timingFunctionSet;
98 m_isNone = o.m_isNone; 98 m_isNone = o.m_isNone;
99 99
100 return *this; 100 return *this;
101 } 101 }
102 102
103 CSSAnimationData::~CSSAnimationData() 103 CSSAnimationData::~CSSAnimationData()
104 { 104 {
105 } 105 }
106 106
107 bool CSSAnimationData::animationsMatch(const CSSAnimationData* o) const 107 bool CSSAnimationData::animationsMatchForStyleRecalc(const CSSAnimationData* o) const
108 { 108 {
109 if (!o) 109 if (!o)
110 return false; 110 return false;
111 111
112 return m_name == o->m_name 112 return m_name == o->m_name
113 && m_playState == o->m_playState 113 && m_playState == o->m_playState
114 && m_property == o->m_property 114 && m_property == o->m_property
115 && m_mode == o->m_mode 115 && m_mode == o->m_mode
116 && m_iterationCount == o->m_iterationCount
117 && m_delay == o->m_delay
118 && m_duration == o->m_duration
119 && *(m_timingFunction.get()) == *(o->m_timingFunction.get())
120 && m_direction == o->m_direction
121 && m_fillMode == o->m_fillMode
122 && m_delaySet == o->m_delaySet
123 && m_directionSet == o->m_directionSet
124 && m_durationSet == o->m_durationSet
125 && m_fillModeSet == o->m_fillModeSet
126 && m_iterationCountSet == o->m_iterationCountSet
127 && m_nameSet == o->m_nameSet 116 && m_nameSet == o->m_nameSet
128 && m_playStateSet == o->m_playStateSet 117 && m_playStateSet == o->m_playStateSet
129 && m_propertySet == o->m_propertySet 118 && m_propertySet == o->m_propertySet
130 && m_timingFunctionSet == o->m_timingFunctionSet
131 && m_isNone == o->m_isNone; 119 && m_isNone == o->m_isNone;
132 } 120 }
133 121
134 const String& CSSAnimationData::initialAnimationName() 122 const String& CSSAnimationData::initialAnimationName()
135 { 123 {
136 DEFINE_STATIC_LOCAL(String, initialValue, ("none")); 124 DEFINE_STATIC_LOCAL(String, initialValue, ("none"));
137 return initialValue; 125 return initialValue;
138 } 126 }
139 127
140 } // namespace WebCore 128 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/animation/CSSAnimationData.h ('k') | Source/core/platform/animation/TimingFunction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698