Changeset 205659 in webkit
- Timestamp:
- Sep 8, 2016 1:54:24 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205657 r205659 1 2016-09-08 Simon Fraser <simon.fraser@apple.com> 2 3 Don't run transitions to or from undefined Lengths 4 https://bugs.webkit.org/show_bug.cgi?id=161750 5 rdar://problem/28170460 6 7 Reviewed by Zalan Bujtas. 8 9 * transitions/transition-to-from-undefined-expected.txt: Added. 10 * transitions/transition-to-from-undefined.html: Added. 11 1 12 2016-09-08 Myles C. Maxfield <mmaxfield@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r205657 r205659 1 2016-09-08 Simon Fraser <simon.fraser@apple.com> 2 3 Don't run transitions to or from undefined Lengths 4 https://bugs.webkit.org/show_bug.cgi?id=161750 5 rdar://problem/28170460 6 7 Reviewed by Zalan Bujtas. 8 9 For properties like max-height whose default value is 'none', we would erroneously 10 attempt to run transitions/animations, and then assert when one of the endpoints 11 was undefined. 12 13 So don't attempt to blend such Length values, just as do when they are auto. 14 15 Fixes some transitions on apple.com and developer.apple.com. 16 17 Test: transitions/transition-to-from-undefined.html 18 19 * page/animation/CSSPropertyAnimation.cpp: 20 (WebCore::CSSPropertyAnimation::blendProperties): 21 * platform/Length.cpp: 22 (WebCore::blend): 23 1 24 2016-09-08 Myles C. Maxfield <mmaxfield@apple.com> 2 25 -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r205181 r205659 1548 1548 AnimationPropertyWrapperBase* wrapper = CSSPropertyAnimationWrapperMap::singleton().wrapperForProperty(prop); 1549 1549 if (wrapper) { 1550 wrapper->blend(anim, dst, a, b, progress);1551 1550 #if !LOG_DISABLED 1552 1551 wrapper->logBlend(a, b, dst, progress); 1553 1552 #endif 1553 wrapper->blend(anim, dst, a, b, progress); 1554 1554 return !wrapper->animationIsAccelerated() || !anim->isAccelerated(); 1555 1555 } -
trunk/Source/WebCore/platform/Length.cpp
r200622 r205659 299 299 Length blend(const Length& from, const Length& to, double progress) 300 300 { 301 if (from.isAuto() || to.isAuto())301 if (from.isAuto() || from.isUndefined() || to.isAuto() || to.isUndefined()) 302 302 return to; 303 303
Note: See TracChangeset
for help on using the changeset viewer.