Changeset 187461 in webkit
- Timestamp:
- Jul 27, 2015 4:25:01 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r187458 r187461 1 2015-07-27 Simon Fraser <simon.fraser@apple.com> 2 3 Rename AnimationBase::isTransformFunctionListValid() 4 https://bugs.webkit.org/show_bug.cgi?id=147334 5 6 Reviewed by Sam Weinig. 7 8 isTransformFunctionListValid() was a confusing name for this state. It's true 9 when the transform function lists for an animation or transition are matched, 10 so rename it to transformFunctionListsMatch(). 11 12 No behavior change. 13 14 * page/animation/AnimationBase.h: 15 (WebCore::AnimationBase::transformFunctionListsMatch): 16 (WebCore::AnimationBase::isTransformFunctionListValid): Deleted. 17 * page/animation/CSSPropertyAnimation.cpp: 18 (WebCore::blendFunc): 19 * page/animation/ImplicitAnimation.cpp: 20 (WebCore::ImplicitAnimation::computeExtentOfTransformAnimation): 21 (WebCore::ImplicitAnimation::validateTransformFunctionList): 22 * page/animation/KeyframeAnimation.cpp: 23 (WebCore::KeyframeAnimation::computeExtentOfTransformAnimation): 24 (WebCore::KeyframeAnimation::validateTransformFunctionList): 25 1 26 2015-07-27 Alex Christensen <achristensen@webkit.org> 2 27 -
trunk/Source/WebCore/page/animation/AnimationBase.h
r185097 r187461 186 186 } 187 187 188 // FIXME: rename this using the "lists match" terminology. 189 bool isTransformFunctionListValid() const { return m_transformFunctionListValid; } 188 bool transformFunctionListsMatch() const { return m_transformFunctionListsMatch; } 190 189 bool filterFunctionListsMatch() const { return m_filterFunctionListsMatch; } 191 190 #if ENABLE(FILTERS_LEVEL_2) … … 257 256 AnimationState m_animationState { AnimationState::New }; 258 257 bool m_isAccelerated { false }; 259 bool m_transformFunctionList Valid{ false };258 bool m_transformFunctionListsMatch { false }; 260 259 bool m_filterFunctionListsMatch { false }; 261 260 #if ENABLE(FILTERS_LEVEL_2) -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r186391 r187461 117 117 static inline TransformOperations blendFunc(const AnimationBase* animation, const TransformOperations& from, const TransformOperations& to, double progress) 118 118 { 119 if (animation-> isTransformFunctionListValid())119 if (animation->transformFunctionListsMatch()) 120 120 return to.blendByMatchingOperations(from, progress); 121 121 return to.blendByUsingMatrixInterpolation(from, progress, is<RenderBox>(*animation->renderer()) ? downcast<RenderBox>(*animation->renderer()).borderBoxRect().size() : LayoutSize()); -
trunk/Source/WebCore/page/animation/ImplicitAnimation.cpp
r184908 r187461 119 119 LayoutRect endBounds = bounds; 120 120 121 if ( isTransformFunctionListValid()) {121 if (transformFunctionListsMatch()) { 122 122 if (!computeTransformedExtentViaTransformList(rendererBox, *m_fromStyle, startBounds)) 123 123 return false; … … 261 261 void ImplicitAnimation::validateTransformFunctionList() 262 262 { 263 m_transformFunctionList Valid= false;263 m_transformFunctionListsMatch = false; 264 264 265 265 if (!m_fromStyle || !m_toStyle) … … 280 280 281 281 // Transform lists match. 282 m_transformFunctionList Valid= true;282 m_transformFunctionListsMatch = true; 283 283 } 284 284 -
trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp
r187121 r187461 231 231 232 232 bool canCompute; 233 if ( isTransformFunctionListValid())233 if (transformFunctionListsMatch()) 234 234 canCompute = computeTransformedExtentViaTransformList(rendererBox, *keyframe.style(), keyframeBounds); 235 235 else … … 365 365 void KeyframeAnimation::validateTransformFunctionList() 366 366 { 367 m_transformFunctionList Valid= false;367 m_transformFunctionListsMatch = false; 368 368 369 369 if (m_keyframes.size() < 2 || !m_keyframes.containsProperty(CSSPropertyTransform)) … … 400 400 } 401 401 402 // Keyframes are valid 403 m_transformFunctionListValid = true; 402 m_transformFunctionListsMatch = true; 404 403 } 405 404
Note: See TracChangeset
for help on using the changeset viewer.