Bug 184518 - [Web Animations] Enable seeking for hardware animations
Summary: [Web Animations] Enable seeking for hardware animations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-04-11 16:33 PDT by Antoine Quint
Modified: 2018-05-04 06:55 PDT (History)
2 users (show)

See Also:


Attachments
Patch (54.18 KB, patch)
2018-04-11 16:53 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff
Patch (54.19 KB, patch)
2018-04-12 00:18 PDT, Antoine Quint
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2018-04-11 16:33:34 PDT
[Web Animations] Enable seeking for hardware animations
Comment 1 Antoine Quint 2018-04-11 16:53:09 PDT
Created attachment 337751 [details]
Patch
Comment 2 Antoine Quint 2018-04-12 00:18:21 PDT
Created attachment 337777 [details]
Patch
Comment 3 Dean Jackson 2018-04-12 04:10:05 PDT
Comment on attachment 337777 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=337777&action=review

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2806
> +            const String& currAnimationName = it->key;
> +            AnimationsMap::iterator animationIt = m_runningAnimations.find(currAnimationName);

Nit: Just say currentAnimationName and animationIterator

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2813
> +                for (size_t i = 0; i < animations.size(); ++i) {
> +                    const LayerPropertyAnimation& currAnimation = animations[i];

Can't this be a for (const auto& currentAnimation : animations) loop?

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2950
> +    RefPtr<PlatformCAAnimation> curAnim = layer->animationForKey(animationID);

Again, just say currentAnimation. Or at least be consistent - above is currAnimation, this is curAnim.

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2955
> +    RefPtr<PlatformCAAnimation> newAnim = curAnim->copy();

Ditto.

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:531
> +        Seconds timeOffset; // only used for pause

Nit: // Only used for pause. (uppercase O and period)
Comment 4 Antoine Quint 2018-04-12 08:14:39 PDT
Committed r230574: <https://trac.webkit.org/changeset/230574>
Comment 5 Radar WebKit Bug Importer 2018-04-12 08:15:30 PDT
<rdar://problem/39381530>
Comment 6 Antoine Quint 2018-05-04 06:55:32 PDT
This caused https://bugs.webkit.org/show_bug.cgi?id=185299.