Changeset 193610 in webkit
- Timestamp:
- Dec 6, 2015 9:14:30 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r193606 r193610 1 2015-12-06 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r187121): Can't get to the main content of the page at https://theintercept.com/drone-papers/ 4 https://bugs.webkit.org/show_bug.cgi?id=151849 5 rdar://problem/23132828 6 7 Reviewed by Zalan Bujtas. 8 9 New ref test. 10 11 The behavior of imported/blink/transitions/transition-not-interpolable.html changed 12 with this patch, but that test is trying to determine if transitions run to/from 13 'auto' values, and doing it wrong. The current patch doesn't change the user-visible 14 behavior of transitions with 'auto' endpoints (covered by http://webkit.org/b/38243). 15 16 * animations/fill-forwards-auto-height-expected.html: Added. 17 * animations/fill-forwards-auto-height.html: Added. 18 * imported/blink/transitions/transition-not-interpolable-expected.txt: 19 1 20 2015-12-06 David Kilzer <ddkilzer@apple.com> 2 21 -
trunk/LayoutTests/imported/blink/transitions/transition-not-interpolable-expected.txt
r190629 r193610 1 PASS 1 FAIL -- transtion should not apply from 0px to auto -
trunk/Source/WebCore/ChangeLog
r193609 r193610 1 2015-12-06 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r187121): Can't get to the main content of the page at https://theintercept.com/drone-papers/ 4 https://bugs.webkit.org/show_bug.cgi?id=151849 5 rdar://problem/23132828 6 7 Reviewed by Zalan Bujtas. 8 9 This page uses a fill-forwards animation where the last keyframe has height: auto. 10 After r187121, we tried to blend the height Length value from the last keyframe to the 11 first keyframe with progress=0 (which should pick up the 'auto' from the last keyframe). 12 13 However, Length::blend() just considered both 0 and 'auto' to be zero, and returned 14 the 0 length. 15 16 So fix Length::blend() to return the "from" length if progress is zero. 17 18 Test: animations/fill-forwards-auto-height.html 19 20 * page/animation/CSSPropertyAnimation.cpp: 21 (WebCore::blendFunc): Length::blend takes a double, so don't narrow to float. 22 * page/animation/KeyframeAnimation.cpp: 23 (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty): Declare two variables 24 at first use. 25 * platform/Length.h: 26 (WebCore::Length::blend): 27 1 28 2015-12-06 Simon Fraser <simon.fraser@apple.com> 2 29 -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r191017 r193610 82 82 static inline Length blendFunc(const AnimationBase*, const Length& from, const Length& to, double progress) 83 83 { 84 return to.blend(from, narrowPrecisionToFloat(progress));84 return to.blend(from, progress); 85 85 } 86 86 … … 257 257 return to.blend(from, narrowPrecisionToFloat(progress)); 258 258 } 259 259 260 static inline Vector<SVGLength> blendFunc(const AnimationBase*, const Vector<SVGLength>& from, const Vector<SVGLength>& to, double progress) 260 261 { … … 1470 1471 return !wrapper->animationIsAccelerated() || !anim->isAccelerated(); 1471 1472 } 1472 1473 1473 return false; 1474 1474 } -
trunk/Source/WebCore/page/animation/KeyframeAnimation.cpp
r189987 r193610 101 101 } 102 102 103 double scale = 1;104 double offset = 0;105 106 103 if (prevIndex == -1) 107 104 prevIndex = 0; … … 123 120 toStyle = nextKeyframe.style(); 124 121 125 offset = prevKeyframe.key();126 scale = 1.0 / (nextKeyframe.key() - prevKeyframe.key());122 double offset = prevKeyframe.key(); 123 double scale = 1.0 / (nextKeyframe.key() - prevKeyframe.key()); 127 124 128 125 prog = progress(scale, offset, prevKeyframe.timingFunction(name())); -
trunk/Source/WebCore/platform/Length.h
r191310 r193610 423 423 424 424 if (from.isZero() && isZero()) 425 return *this;425 return progress ? *this : from; // Pick up 'auto' from 'from' if progress is zero. 426 426 427 427 LengthType resultType = type();
Note: See TracChangeset
for help on using the changeset viewer.