Bug 83050 - Animation related classes should use CSSPropertyID rather than integers when manipulating CSS property ids.
Summary: Animation related classes should use CSSPropertyID rather than integers when ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexis Menard (darktears)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-03 11:18 PDT by Alexis Menard (darktears)
Modified: 2012-04-04 12:33 PDT (History)
6 users (show)

See Also:


Attachments
Patch (45.43 KB, patch)
2012-04-03 11:24 PDT, Alexis Menard (darktears)
no flags Details | Formatted Diff | Diff
Patch (45.44 KB, patch)
2012-04-03 11:39 PDT, Alexis Menard (darktears)
no flags Details | Formatted Diff | Diff
Patch (50.23 KB, patch)
2012-04-03 11:58 PDT, Alexis Menard (darktears)
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-04 (6.92 MB, application/zip)
2012-04-03 14:10 PDT, WebKit Review Bot
no flags Details
Patch (47.12 KB, patch)
2012-04-04 05:33 PDT, Alexis Menard (darktears)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Menard (darktears) 2012-04-03 11:18:54 PDT
Animation related classes should use CSSPropertyId rather than integers when manipulating CSS property ids.
Comment 1 Alexis Menard (darktears) 2012-04-03 11:24:23 PDT
Created attachment 135373 [details]
Patch
Comment 2 Alexis Menard (darktears) 2012-04-03 11:25:43 PDT
(In reply to comment #1)
> Created an attachment (id=135373) [details]
> Patch

I'm looking for feedback.

The change in blendProperties could maybe be improved.
Comment 3 Alexis Menard (darktears) 2012-04-03 11:39:56 PDT
Created attachment 135376 [details]
Patch
Comment 4 Alexis Menard (darktears) 2012-04-03 11:58:04 PDT
Created attachment 135383 [details]
Patch
Comment 5 Simon Fraser (smfr) 2012-04-03 12:02:48 PDT
Comment on attachment 135383 [details]
Patch

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

Nice change!

> Source/WebCore/platform/animation/Animation.h:184
> +    static CSSPropertyID initialAnimationProperty() { return CSSPropertyInvalid; }

I don't know that it is worth having initialAnimationProperty() and friends. This was copied from the RenderStyle pattern, but it's only used in one place.
Comment 6 Alexis Menard (darktears) 2012-04-03 12:06:33 PDT
(In reply to comment #5)
> (From update of attachment 135383 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=135383&action=review
> 
> Nice change!
> 
> > Source/WebCore/platform/animation/Animation.h:184
> > +    static CSSPropertyID initialAnimationProperty() { return CSSPropertyInvalid; }
> 
> I don't know that it is worth having initialAnimationProperty() and friends. This was copied from the RenderStyle pattern, but it's only used in one place.

It is also used by CSSStyleApplyProperty. I didn't want to touch this guy.
Comment 7 Alexis Menard (darktears) 2012-04-03 12:07:33 PDT
(In reply to comment #6)
> (In reply to comment #5)
> > (From update of attachment 135383 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=135383&action=review
> > 
> > Nice change!
> > 
> > > Source/WebCore/platform/animation/Animation.h:184
> > > +    static CSSPropertyID initialAnimationProperty() { return CSSPropertyInvalid; }
> > 
> > I don't know that it is worth having initialAnimationProperty() and friends. This was copied from the RenderStyle pattern, but it's only used in one place.
> 
> It is also used by CSSStyleApplyProperty. I didn't want to touch this guy.

I'll wait EWS to munch it then I cq+.

Thanks for the review.
Comment 8 WebKit Review Bot 2012-04-03 14:10:47 PDT
Comment on attachment 135383 [details]
Patch

Attachment 135383 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12320410

New failing tests:
transitions/transition-end-event-all-properties.html
fast/forms/validation-message-on-listbox.html
fast/forms/validation-message-on-menulist.html
transitions/shorthand-border-transitions.html
transitions/inherit-other-props.html
transitions/hang-with-bad-transition-list.html
compositing/repaint/opacity-between-absolute2.html
transitions/multiple-mask-transitions.html
fast/forms/validation-message-on-radio.html
fast/forms/validation-message-on-checkbox.html
fast/forms/validation-message-on-range.html
transitions/cubic-bezier-overflow-shadow.html
fast/forms/validation-message-in-relative-body.html
fast/forms/validation-message-appearance.html
css3/filters/composited-during-transition-layertree.html
transitions/inherit.html
fast/forms/validation-message-on-textarea.html
compositing/repaint/opacity-between-absolute.html
Comment 9 WebKit Review Bot 2012-04-03 14:10:53 PDT
Created attachment 135423 [details]
Archive of layout-test-results from ec2-cr-linux-04

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-04  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 10 Alexis Menard (darktears) 2012-04-03 14:14:01 PDT
(In reply to comment #8)
> (From update of attachment 135383 [details])
> Attachment 135383 [details] did not pass chromium-ews (chromium-xvfb):
> Output: http://queues.webkit.org/results/12320410
> 
> New failing tests:
> transitions/transition-end-event-all-properties.html
> fast/forms/validation-message-on-listbox.html
> fast/forms/validation-message-on-menulist.html
> transitions/shorthand-border-transitions.html
> transitions/inherit-other-props.html
> transitions/hang-with-bad-transition-list.html
> compositing/repaint/opacity-between-absolute2.html
> transitions/multiple-mask-transitions.html
> fast/forms/validation-message-on-radio.html
> fast/forms/validation-message-on-checkbox.html
> fast/forms/validation-message-on-range.html
> transitions/cubic-bezier-overflow-shadow.html
> fast/forms/validation-message-in-relative-body.html
> fast/forms/validation-message-appearance.html
> css3/filters/composited-during-transition-layertree.html
> transitions/inherit.html
> fast/forms/validation-message-on-textarea.html
> compositing/repaint/opacity-between-absolute.html

I'm looking. I ran the Animations tests but forgot the Transitions ones :(.
Comment 11 Luke Macpherson 2012-04-03 20:17:19 PDT
Comment on attachment 135383 [details]
Patch

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

> Source/WebCore/rendering/RenderLayerBacking.h:-108
> -    bool startTransition(double timeOffset, int property, const RenderStyle* fromStyle, const RenderStyle* toStyle);

This is another good example of names that should not be removed - fromStyle and toStyle are critical information when understanding what this function does, and should not be removed.
Comment 12 Alexis Menard (darktears) 2012-04-04 05:33:21 PDT
Created attachment 135567 [details]
Patch
Comment 13 Alexis Menard (darktears) 2012-04-04 06:16:19 PDT
(In reply to comment #12)
> Created an attachment (id=135567) [details]
> Patch

EWS is green.

Dean or Simon you mind reviewing this again.

Thanks.
Comment 14 WebKit Review Bot 2012-04-04 12:33:40 PDT
Comment on attachment 135567 [details]
Patch

Clearing flags on attachment: 135567

Committed r113225: <http://trac.webkit.org/changeset/113225>
Comment 15 WebKit Review Bot 2012-04-04 12:33:54 PDT
All reviewed patches have been landed.  Closing bug.