gecko-dev/dom/animation
Brian Birtles 121b831ff7 Bug 1122414 part 2 - Return the transitionProperty from Animation.name for CSS transitions; r=jwatt
This is a bit awkward. We lazily set mName to the transition property and then
return it. The reasons for this approach are:

* We don't really want to eagerly fill in mName for all transitions since in
  99% of cases we'll never use it and this will lead to wasted allocations.

* The signature of Name() returns a const nsString reference. This is because
  Name() is used when building CSS Animations (to compare different copies of
  the same animation when updating). For that case we don't really want to
  generate unnecessary copies of nsString objects so we return a reference.
  However, that means for transitions as well we need to return a reference so
  we can't just generate a temporary string on-demand.

  As a result we also have to const-cast ourselves so we can update the mName
  member. We could make mName mutable but seeing as it's only set once, the
  const_cast seems more appropriate.
2015-04-14 09:13:27 +09:00
..
test Bug 1122414 part 2 - Return the transitionProperty from Animation.name for CSS transitions; r=jwatt 2015-04-14 09:13:27 +09:00
Animation.cpp Bug 1151346 - Make ActiveLayerTracker::IsOffsetOrMarginStyleAnimated respect CSS animations. r=roc 2015-04-05 22:53:51 -04:00
Animation.h Bug 1122414 part 2 - Return the transitionProperty from Animation.name for CSS transitions; r=jwatt 2015-04-14 09:13:27 +09:00
AnimationEffect.cpp Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv 2015-03-19 10:13:33 -04:00
AnimationEffect.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
AnimationPlayer.cpp Bug 1134381 - Don't pause an AnimationPlayer if it is already paused; r=jwatt 2015-04-14 09:07:41 +09:00
AnimationPlayer.h Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
AnimationTimeline.cpp Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
AnimationTimeline.h Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
AnimationUtils.h Bug 1073379, part 1 - Add an AnimationUtils::DoubleToTimeDuration helper. r=birtles 2015-02-09 10:25:51 +00:00
DocumentTimeline.cpp Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
DocumentTimeline.h Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
moz.build Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
PendingPlayerTracker.cpp Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug 2015-04-10 10:34:22 +09:00
PendingPlayerTracker.h Bug 1109390 part 7 - Rename PendingPlayerTracker's Start* methods to Trigger*; r=jwatt 2015-03-27 15:56:45 +09:00