| Index: third_party/WebKit/Source/core/html/HTMLMarqueeElement.js
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMarqueeElement.js b/third_party/WebKit/Source/core/html/HTMLMarqueeElement.js
|
| index 5ae3e64bea5dab39151a4346b0fdc47c246dad9b..e387c671c6e37f998c38b23147b6a86f3ebf6182 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMarqueeElement.js
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMarqueeElement.js
|
| @@ -355,11 +355,14 @@ privateScriptController.installClass('HTMLMarqueeElement', function(HTMLMarqueeE
|
| var scrollDelay = this.scrollDelay;
|
| if (scrollDelay < kMinimumScrollDelayMS && !this.trueSpeed)
|
| scrollDelay = kDefaultScrollDelayMS;
|
| + var duration = 0;
|
| + if (this.scrollAmount && !isNaN(parameters.distance))
|
| + duration = parameters.distance * scrollDelay / this.scrollAmount;
|
| var player = this.mover_.animate([
|
| { transform: parameters.transformBegin },
|
| { transform: parameters.transformEnd },
|
| ], {
|
| - duration: this.scrollAmount == 0 ? 0 : parameters.distance * scrollDelay / this.scrollAmount,
|
| + duration,
|
| fill: 'forwards',
|
| });
|
| player.marquee_ = this;
|
|
|