Closed Bug 783835 Opened 12 years ago Closed 12 years ago

Compositor needs to know the css property being animated

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: dzbarsky, Assigned: dzbarsky)

References

Details

Attachments

(1 file)

This is needed since some properties have different interpolation rules.
Attached patch PatchSplinter Review
Assignee: nobody → dzbarsky
Status: NEW → ASSIGNED
Attachment #653118 - Flags: review?(roc)
Comment on attachment 653118 [details] [diff] [review]
Patch

Review of attachment 653118 [details] [diff] [review]:
-----------------------------------------------------------------

r+ with that fixed.

::: gfx/layers/ipc/CompositorParent.cpp
@@ +658,5 @@
>      SampleValue(portion, animation, animData.mStartValues[segmentIndex],
>                  animData.mEndValues[segmentIndex], &interpolatedValue);
>      ShadowLayer* shadow = aLayer->AsShadowLayer();
>      switch (interpolatedValue.type()) {
> +    case Animatable::Tfloat:

Shouldn't we switch on the property name here, not the type?
Attachment #653118 - Flags: review?(roc) → review+
Blocks: 783893
https://hg.mozilla.org/mozilla-central/rev/e4714af49469
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: