Commit Graph

59 Commits

Author SHA1 Message Date
L. David Baron
5f0fb38ae4 Assert that we destroy ElementAnimations/ElementTransitions through its Destroy() method. (Bug 653644) r=bzbarsky 2011-04-30 15:16:19 -07:00
L. David Baron
a84d8c9295 Make AnimValuesStyleRule::AddEmptyValue infallible. (Bug 435442, patch 8) r=bzbarsky 2011-04-11 23:18:43 -07:00
L. David Baron
726f8b0eca Refactor some parts of nsTransitionManager into common base class to be shared with AnimationManager. (Bug 435442, patch 7) r=bzbarsky 2011-04-11 23:18:43 -07:00
L. David Baron
9f841c864a Implement step-start, step-end, and steps() timing functions. (Bug 435442, patch 0) r=bzbarsky 2011-04-11 23:18:42 -07:00
L. David Baron
8ba3daf109 Don't cancel transitions that are almost completed (and round to their final value) when we get an unrelated style change. (Bug 613888) r=bzbarsky a2.0=blocking 2011-01-14 19:57:53 -08:00
L. David Baron
c6323b36fe Fix backwards handling of zero-duration transitions. (Bug 622461) r=bzbarsky a2.0=blocking2.0:betaN 2011-01-04 10:10:54 -05:00
L. David Baron
6808a1e824 For transition reversing computations, ensure valuePortion is within 0.0-1.0. (Bug 611238) r=bzbarsky a=blocking2.0:final
Without the change to ensure that valuePortion is nonnegative, duration
might become negative, which it's not allowed to be.  Without this
change, this can happen when a transition starts off moving into
negative value space, which happens when y1 in the timing function is
negative.  The result that we want should come from using the absolute
value (rather than clamping to zero): if we reverse the transition when
it's in this negative space, we want the same movement we'd get if it
were the same distance into positive value space, just in the opposite
direction.

Additionally, I'm clamping valuePortion to be at most 1.  This affects
"bouncy" transitions where the timing function's y2 is greater than
one.  This is less critical, but ensures the invariant that a transition
will never take longer than its specified time, which seems like a good
thing to ensure.

I believe doing this computation at this stage is preferable to doing it
before the multiplication by oldPT.mReversePortion, since we should be
clamping the value within the range of the complete transition, not just
relative to the most recent reverse.
2010-12-16 08:53:17 -08:00
L. David Baron
2bee206d34 Don't use ComputeDistance in nsTransitionManager when shortening reversals of partially running transitions, and shorten only transitions that are actually back to the current start point. (Bug 582379, bug 526784) r=bzbarsky a2.0=blocking 2010-11-10 07:49:53 -08:00
L. David Baron
e0c6877082 Fix division-by-zero crash that dholbert saw, although I haven't been able to, and make the code a bit more robust. (Bug 582379) r=bzbarsky a2.0=blocking 2010-11-10 07:49:53 -08:00
L. David Baron
2a41b9c1dc Make AnimValuesStyleRule::MapRuleInfoInto check that property hasn't been filled in yet, so that it cascades correctly and interacts correctly with nsStyleSet::ResolveStyleByAddingRules. (Bug 598099) r=bzbarsky a2.0=blocking-betaN 2010-10-23 16:31:55 -07:00
Boris Zbarsky
f7eeb3d973 Bug 592698. We might not have a presshell by this point, so null-check it. r=dbaron 2010-09-15 12:40:11 -07:00
Zack Weinberg
bc4afbe28a Bug 576044 (6/12): remove vestiges of nsCSSType. r=dbaron a2.0=dbaron 2010-08-19 15:33:44 -04:00
Zack Weinberg
1e5ad912e8 Bug 569719 part 4: Move nsCSSExpandedDataBlock::RuleDataPropertyAt into struct nsRuleData. r=dbaron 2010-07-23 11:00:21 -07:00
L. David Baron
a539512caf Clean up messy line thanks to new operator from bug 570912. (Bug 582111) r=bzbarsky 2010-07-28 16:43:53 -07:00
L. David Baron
18dff75787 Make the transitions style rule hold on to its values and thus preserve rule immutability. Do this by reusing the code for the covering style rule for both transitions style rule types. (Bug 582111) r=bzbarsky 2010-07-28 16:43:53 -07:00
Craig Topper
f720fbc615 Bug 575901 - DeCOMtaminate nsIStyleRuleProcessor method signatures. r=bz 2010-07-18 23:20:40 +02:00
L. David Baron
5c276249e4 Fire transitionend events only for transitions on elements (not pseudo-elements). (Bug 537140) r=bzbarsky 2010-07-02 21:18:55 -07:00
Boris Zbarsky
b8fb52d415 Bug 555627. Make transitions actually work correctly on :before and :after. r=dbaron 2010-06-30 18:54:29 -07:00
Craig Topper
00d9a2b835 Bug 566808 - "DeCOMtaminate nsIStyleRule method signatures" [r=dbaron]
(transplanted from 9a7be1835b530c72a46069a5c3951b80b16804a3)

--HG--
extra : transplant_source : %9A%7B%E1%83%5BS%0Cr%A4%60i%A5%C3%95%1B%80%B1h%04%A3
2010-05-19 22:28:00 -04:00
Boris Zbarsky
f52ee1468f Bug 565815. Use Element in the transition manager instead of nsIContent. r=dbaron 2010-05-14 13:04:51 -04:00
Boris Zbarsky
b3de40cc58 Bug 562688 part 14. Eliminate eELEMENT usage in the rule processor; switch to Element as we can. r=dbaron 2010-04-30 09:12:06 -04:00
Zack Weinberg
8a88b3f08f Eliminate NS_HIDDEN and NS_HIDDEN_ from layout/style/. Search-and-replace plus formatting fixes. rs=bzbarsky, no bug. 2010-04-06 14:52:17 -07:00
Zack Weinberg
54ad0fb73a Bug 494117: Mechanically change 'ReParent' to 'Reparent' throughout the tree. r=bzbarsky 2010-04-01 23:07:43 -07:00
Zack Weinberg
ee4e0f1e56 Bug 494117 preliminary refactor: Search-and-replace 'ReStyle' with 'Restyle' throughout layout. r=roc 2010-03-31 17:43:32 -07:00
Markus Stange
5fb3e948bb Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst 2010-03-17 18:10:57 +01:00
Markus Stange
4a997d3554 Backed out changeset e17c076aceea, bug 508482 (:-moz-window-inactive pseudoclass) because of test_righttoleft.xul test failures. 2010-03-17 20:03:53 +01:00
Markus Stange
f1f3037861 Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst 2010-03-17 18:10:57 +01:00
L. David Baron
515ee52627 Store transitions for one refresh cycle after they complete so that merging with a non-animation style change doesn't make us start a second transition to transition the last step. (Bug 537151) r=bzbarsky 2010-01-12 08:51:37 -08:00
L. David Baron
7a171b8f70 Dispatch transitionend events. (Bug 531585) r=bzbarsky 2009-12-23 14:10:31 -05:00
L. David Baron
179ee34b4d Make the transition manager reference-counted. (Bug 531585) r=bzbarsky 2009-12-23 14:10:31 -05:00
Benjamin Smedberg
c2bbf9c677 Back out all the pieces of bug 531585 (transitioned event for end of CSS transitions) because of timeouts in test_transitions_events.html 2009-12-23 10:15:26 -05:00
L. David Baron
86ffd75ed3 Dispatch transitionend events. (Bug 531585) r=bzbarsky 2009-12-23 06:35:46 -05:00
L. David Baron
6294ba95b7 Make the transition manager reference-counted. (Bug 531585) r=bzbarsky 2009-12-23 06:35:45 -05:00
L. David Baron
4927cc54c4 Merge backout of revisions fa5326c011b8, 8b22441911b0, and cfa10b01b1f6 (bug 531585) on suspicion of causing random orange bug 536382. 2009-12-22 15:47:42 -05:00
L. David Baron
eae023b6a3 Backout revisions fa5326c011b8, 8b22441911b0, and cfa10b01b1f6 (bug 531585) on suspicion of causing random orange bug 536382. 2009-12-22 15:46:23 -05:00
L. David Baron
d0934f9f1f Make the transition manager reference-counted. (Bug 531585) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron
09ff5f95d8 Make setting property after setting transition-duration and transition-delay to 0 stop running transitions on that property: part 3: main patch. (Bug 522643) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron
7a4d1f5c03 Make setting property after setting transition-duration and transition-delay to 0 stop running transitions on that property: part 2: make GetElementTransitions faster so we can call it more often. (Bug 522643) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron
6b160209bb Make setting property after setting transition-duration and transition-delay to 0 stop running transitions on that property: step 1: move static function up. (Bug 522643) r=bzbarsky 2009-12-21 16:46:25 -05:00
L. David Baron
67f4531d35 Add support for animation of 'visibility' to transitions (but make it a special case for transitions). (Bug 531942) r=bzbarsky 2009-12-21 16:46:25 -05:00
Boris Zbarsky
4ecb7006bd Bug 531933. Give HasStateDependentStyle a better signature. r=dbaron 2009-12-11 22:36:34 -08:00
L. David Baron
1fefbc68b6 Make CSS style rule implementations hold on to their data block once RuleMatched has been called so that they follow the immutability contract of nsIStyleRule. Remove workarounds in tests for transitions bugs caused by these violations of style rule immutability. (Bug 522595) r=bzbarsky 2009-12-11 08:13:20 -08:00
L. David Baron
8f42a4d123 Stop transitions when -moz-transition-property changes to a value that no longer includes the transitioning property. (Bug 525530) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky
4a2975a003 Bug 525608 part 7. Make tree pseudos use a separate hashtable instead of riding along on the rulehash. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
6b4f1d994c Bug 525608 part 5. Change anonymous box rule matching to just use a separate hashtable and not ever run SelectorMatches. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
414b184d55 Bug 525608 part 4. Change pseudo-element probing and resolution to not use EnumerateTagRules. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky
e9f228c7d5 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky
7b8acbcaf3 Bug 525608 part 7. Make tree pseudos use a separate hashtable instead of riding along on the rulehash. r=dbaron 2009-12-10 14:36:06 -08:00
Boris Zbarsky
bdb94e5fc6 Bug 525608 part 5. Change anonymous box rule matching to just use a separate hashtable and not ever run SelectorMatches. r=dbaron 2009-12-10 14:36:06 -08:00
Boris Zbarsky
e6128a1572 Bug 525608 part 4. Change pseudo-element probing and resolution to not use EnumerateTagRules. r=dbaron 2009-12-10 14:36:06 -08:00