WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 33563
Transition followed by animation fails to run the animation sometimes
https://bugs.webkit.org/show_bug.cgi?id=33563
Summary
Transition followed by animation fails to run the animation sometimes
Simon Fraser (smfr)
Reported
2010-01-12 17:23:15 PST
Created
attachment 46416
[details]
Testcase The attached testcase shows an issue where, if a transition fires at the same time as an animation starts, and if the animation has an animation-delay similar to the duration of the transition, then sometimes the animation fails to run (with hardware accel.).
Attachments
Testcase
(1.38 KB, text/html)
2010-01-12 17:23 PST
,
Simon Fraser (smfr)
no flags
Details
Patch
(11.57 KB, patch)
2010-01-13 13:56 PST
,
Simon Fraser (smfr)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2010-01-12 17:23:34 PST
<
rdar://problem/7535633
>
Simon Fraser (smfr)
Comment 2
2010-01-13 13:56:32 PST
Created
attachment 46501
[details]
Patch
Darin Adler
Comment 3
2010-01-13 15:37:52 PST
Comment on
attachment 46501
[details]
Patch
> + Fix this by including they keyframes name (or empty string for transitions) in the labels
Typo: "they keyframes"
> + * platform/graphics/mac/GraphicsLayerCA.h: Some new methods and signataure changes.
Typo: "signataure"
> + void setAnimationOnLayer(CAPropertyAnimation*, AnimatedPropertyID, const String&, int index, double timeOffset); > + bool removeAnimationFromLayer(AnimatedPropertyID, const String&, int index); > + void pauseAnimationOnLayer(AnimatedPropertyID, const String&, int index, double timeOffset);
I think these new string arguments need an argument name for clarity.
> String animationId = propertyIdToString(property); > animationId.append("_"); > + if (!keyframesName.isEmpty()) { > + animationId.append(keyframesName); > + animationId.append("_"); > + } > + animationId.append("_"); > animationId.append(String::number(index));
This function is using an inefficient idiom for building a String. The String class allocates a new buffer every time you append to it. You should use StringBuilder or Vector<UChar> or some other alternate strategy. r=me
Simon Fraser (smfr)
Comment 4
2010-01-13 20:55:01 PST
Committed with review comments addressed:
http://trac.webkit.org/changeset/53236
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug