Ms2ger
53886f9525
Bug 820864 - Fix new build warnings in nsTransitionManager.cpp; r=nrc
2012-12-12 20:32:29 +01:00
Nicholas Cameron
3575f84d30
Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz
...
--HG--
extra : rebase_source : 1207275df5c509ac1974e2b9333c738b995f9d5e
2012-12-12 10:12:43 +13:00
Boris Zbarsky
fa61227956
Bug 811449 part 8. Get rid of nsGenericElement. r=peterv
2012-11-14 14:10:08 -08:00
Cameron McCormack
2302c9d358
Bug 811581 - Add a base class for all *RuleProcessorData classes. r=bz
2012-11-15 06:09:01 +11:00
Jeff Walden
7d556d0048
Eliminate a few nullptr-to-bool conversions to avoid a clang warning (which we upgrade to error) in some clang revs. No bug, r=sparky
...
--HG--
extra : rebase_source : 6b45c8e1dd07449a5ebc34704c19e05fe155f628
2012-10-09 16:14:42 -07:00
David Zbarsky
0d9ed62c15
Bug 785648 - Improve OMTA logging r=cjones
2012-08-25 21:27:28 -04:00
David Zbarsky
d18fec853b
Bug 780692 Part 0: Make sure frames that have async animations are marked as having active layers r=roc
2012-08-25 10:52:30 -04:00
David Zbarsky
718c01298c
Fix a logging message, no bug, r=me
2012-08-25 00:10:47 -04:00
David Zbarsky
be2e552065
Log when we can't use async animations due to pseudos, no bug, r=cjones
2012-08-24 15:08:18 -04:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
David Zbarsky
3822af4b7f
Bug 784239 - Perform async animations even when not all properties can be asyncified r=roc
2012-08-21 21:48:47 -04:00
David Zbarsky
8c734bee81
Bug 768440 Part 2: Animate CSS Transitions on the compositor r=roc,dbaron
2012-07-31 10:28:22 -07:00
David Zbarsky
3328afd1c5
Bug 768440 Part 1: Move ElementTransitions and ElementPropertyTransition to the header r=dbaron
2012-07-31 10:28:21 -07:00
Mark Finkle
a4d33f44cf
Backout 169ff207ed19, a34baed70c1b, f9ccdd490bd7, 39550ed860e6, 2194a2dd66b2, 908eb2e26843, a76e0a267f26 due to mobile viewport bustage (bug 778580)
2012-07-30 14:36:12 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Zbarsky
2d67ac5273
Bug 768440 Part 2: Animate CSS Transitions on the compositor r=roc,dbaron
2012-07-27 13:23:45 -07:00
David Zbarsky
3a600c900c
Bug 768440 Part 1: Move ElementTransitions and ElementPropertyTransition to the header r=dbaron
2012-07-27 13:23:44 -07:00
Ed Morley
0981437de6
Backout 1244b8a8e57a (bug 755084), 32d16d0f87c9 (bug 706179), 8548e016d4a9 (bug 768440), 697f5b87eae9 (bug 768440), 808fc2bd4e8c (bug 755084), 54b1484cd125 (bug 755084), 876726b632c0 (bug 706179) for xul android R3 failures
2012-07-25 16:37:04 +01:00
David Zbarsky
673c1ec883
Bug 768440 Part 2: Animate CSS Transitions on the compositor r=roc,dbaron
2012-07-25 01:48:10 -07:00
David Zbarsky
30466bcc94
Bug 768440 Part 1: Move ElementTransitions and ElementPropertyTransition to the header r=dbaron
2012-07-25 01:48:10 -07:00
Matt Brubeck
091f852d76
Back out f4f5189b1d0c, 3b4f0606c547, b8a5a1ab8a5f, 5078933d6954, 7e0260c45de9 (bug 768440, bug 755084, bug 706179) because of reftest failures
2012-07-23 20:25:51 -07:00
David Zbarsky
f1b8756af2
Bug 768440 Part 2: Animate CSS Transitions on the compositor r=roc,dbaron
2012-07-23 17:34:49 -07:00
David Zbarsky
cb91932cbf
Bug 768440 Part 1: Move ElementTransitions and ElementPropertyTransition to the header r=dbaron
2012-07-23 17:34:48 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Nicholas Nethercote
dd32d38d63
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
2a7afd1ec3
Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky
2011-12-08 21:01:52 -08:00
Ehsan Akhgari
2a602a5685
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
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
Boris Zbarsky
9dc3b4cdd3
Bug 523294 part 1. Change the signature of HasAttributeDependentStyle. r=dbaron
2009-12-10 14:36:03 -08:00
L. David Baron
eea2f3996a
Pass property to nsStyleAnimation interpolation functions. (Bug 528234) r=dholbert
2009-11-14 19:16:58 -08:00
Boris Zbarsky
5215a681c7
Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron
2009-10-29 17:17:56 -04:00
L. David Baron
27faacf80b
Add support for animation of text-shadow and -moz-box-shadow (the first complex value types that we animate). (Bug 523196) r=dholbert sr=bzbarsky
2009-10-21 06:53:46 -04:00
L. David Baron
e57591b530
Switch nsStyleAnimation from using nsStyleCoord to using its own nsStyleAnimation::Value, so we don't have to add nontrivial destructors to nsStyleCoord. (Bug 522852) r=dholbert,bzbarsky
2009-10-20 07:46:16 -04:00
L. David Baron
653c9c5c2f
Make ReResolveStyleContext no longer rerun selector matching on next-continuations by making both ReResolveStyleContext and ReParentStyleContext enforce the invariant that all continuations have the same style context. (Bug 522563) r=bzbarsky
2009-10-17 10:31:47 -04:00
L. David Baron
48e18ed038
Add bug numbers for the FIXME comments in CSS transitions patches. (Bug 435441)
2009-10-15 17:23:19 -07:00
L. David Baron
bc34d93c16
Eliminate nsStyleAnimation::StoreComputedValue. (Bug 520396) r=dholbert,bzbarsky
2009-10-07 20:22:42 -07:00
L. David Baron
125bd1103e
Implement CSS transitions: handle starting and animation of the transitions. (Bug 435441) r=bzbarsky sr=roc
2009-10-07 20:22:42 -07:00