Commit Graph

193 Commits

Author SHA1 Message Date
Daniel Holbert
bf932485ec Bug 547333 followup: Move FlushAnimations() call from nsSVGElement::GetAnimatedLengthValues to FlushPendingNotifications. r=jwatt r=bz 2010-03-02 07:36:33 -08:00
Daniel Holbert
749e40a648 Bug 548899: Don't issue attribute-changed notification when transform attribute is animated. r=jwatt sr=roc 2010-03-02 07:36:31 -08:00
Daniel Holbert
639df98604 Bug 537361 followup: Address review suggestions. r=birtles 2010-03-01 11:31:52 -08:00
Brian Birtles
23c0fb4d3c Bug 537361: Store SMIL intervals with state for restoring. r=dholbert 2010-03-01 11:31:50 -08:00
Daniel Holbert
16413ffab8 Backed out changeset 367cdcfa611b due to smil reftest failures on opt mac & windows tinderboxen 2010-02-26 15:43:47 -08:00
Daniel Holbert
ba5c1ee63b Bug 547333 followup: Remove FlushAnimations() call from another internal getter (nsSVGElement::GetAnimatedLengthValues), to prevent SMIL samples during frame construction. r=jwatt 2010-02-26 11:08:54 -08:00
Daniel Holbert
f3f209d3c8 Test for bug 547333. 2010-02-25 10:20:44 -08:00
Saint Wesonga
f78442c0ad Bug 523417 - "warning: invoking macro NS_ENSURE_SUCCESS argument 2: empty macro arguments are undefined in ISO C90 and ISO C++98" in DOM worker code. r=jst 2010-02-22 18:41:21 +01:00
Daniel Holbert
1c36459f3b Bug 533291 Patch Z: Enable "don't recompose if we know our animated value can't have changed" optimization, and add tests. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
9123e91013 Bug 533291 Patch E: Add another outparam to nsISMILAttr::ValueFromString, to let us know whether we can re-use the parsed result in the future. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
abcd247e08 Bug 533291 Patch D: Cache base value with each SMIL compositor, since we need to recompose when base value changes. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
f2e36498c9 Bug 542670 Patch B: Add specialized implementations for nsISMILType::IsEqual. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
a9ff273b62 Bug 542670 Patch A: Add equality operator for nsSMILValue. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
6512adf203 Bug 533291 Patch C: When an inactive nsSMILAnimationFunction has changed, force its target to recompose during that sample. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
c85d4fe6db Bug 533291 Patch B: Add method nsSMILAnimationFunction::UpdateCachedTarget, to tell when an animation function's target has changed. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
b927b3d9ae Bug 533291 Patch A: Create classes nsSMILTargetIdentifier & nsSMILWeakTargetIdentifier, based on nsSMILCompositorKey. r=roc 2010-02-20 13:13:11 -08:00
Jonathan Watt
f2e0136d80 Bug 540588. Add support for SMIL animation of <integer> attributes in SVG. r=dholbert 2010-02-18 21:51:00 +00:00
Jonathan Watt
d8f45843d9 Bug 545042. Add support for SMIL animation of <angle> attributes in SVG. r=dholbert 2010-02-18 21:50:59 +00:00
Daniel Holbert
6a9dbc7787 Remove incorrect usage of nsresult to catch return-val of an EnumerateEntries() call in nsSMILAnimationController. (trivial fix, no bug #) 2010-02-11 13:35:33 -08:00
Daniel Holbert
07c873628f Bug 542731: Add 'explicit' label to all single-arg constructors in SMIL code. r=roc 2010-02-11 11:40:50 -08:00
Jae-Seong Lee-Russo
513e9cf886 Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' 2010-02-07 10:52:43 -05:00
Daniel Holbert
d8f21dffff Bug 542731, Patch D: Make nsISMILType methods protected, & only give nsSMILValue access. r=roc 2010-02-01 18:46:13 -08:00
Daniel Holbert
268b63b5ce Bug 542731, Patch B: Clean up nsSMILCSS* classes. r=roc 2010-02-01 18:46:13 -08:00
Daniel Holbert
1a10ab7962 Bug 542731, Patch A: Clean up nsSMILValue class. r=roc 2010-01-29 12:18:50 -08:00
Daniel Holbert
d215e312fb Bug 542731: SMIL misc code cleanup - remove end-of-line whitespace. 2010-01-28 01:51:03 -08:00
Daniel Holbert
86c7eaa0cd Bug 542731: SMIL misc code cleanup: remove trailing '.' from warning messages, to prevent the '.:' in output like 'ASSERTION: blah blah.: /path/to/file:NN'. (no changes outside of assertion/warning message text) 2010-01-28 01:50:30 -08:00
Jonathan Watt
f3a47b5a19 Bug 540479. Add support for SMIL animation of boolean attributes in SVG. r=dholbert 2010-01-24 16:42:08 +00:00
Jonathan Watt
41fa491d84 Bug 540478, part 2 of 2. Add support for SMIL animation of enumeration attributes in SVG. r=dholbert 2010-01-23 18:59:03 +00:00
Daniel Holbert
d06880c159 Fix indentation in db_smilCSSFromTo.js (whitespace-only, test-only). 2010-01-19 13:40:22 -08:00
Brian Birtles
86f07ee577 Bug 534325: Apply SMIL restart semantics at interval start times rather than end times, and allow duration to determine interval-ending when there's no end attribute. r=dholbert sr=roc 2010-01-13 00:18:51 -08:00
Daniel Holbert
87f5624561 Bug 526536: Add some testcases that should be fixed by syncbase timing patches. (tests-only change) 2010-01-12 12:00:50 -08:00
Daniel Holbert
fbf33f5714 Bug 537852 followup D: Misc nit fixes to syncbase reftests. r=birtles 2010-01-12 12:00:50 -08:00
Brian Birtles
cd171ab676 Bug 537852: Add tests for syncbase timing (bug 474743). r=dholbert 2010-01-12 12:00:49 -08:00
Daniel Holbert
57fee6cdfa Bug 474743 Patch D followup: Switch nsSMILTimedElement::mTimeDependents to be a hash table instead of an array. r=birtles sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
d7a66e59c4 Bug 474743 Patch D: Implement syncbase logic. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
cff9646c5d Bug 474743 Patch C: Implement the parsing for syncbase timing. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
76b1e6e830 Bug 474743 Patch B: Implement milestone sampling behavior. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
519f3f1481 Bug 474743 Patch A: Refactor nsSMILParserUtils to use newer iterators. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Daniel Holbert
fee9f97bcd Bug 537157: Explicitly prevent SMIL animations inside of XBL bindings from running. Also, make nsSMILCSSProperty directly create a computed style object, instead of using nsPIDOMWindow helper method. r=smaug sr=roc 2010-01-06 09:20:50 -08:00
Daniel Holbert
6e8dfed2fc Bug 530983, patch 2: Enable SMIL animation for 'clip' property. r=roc 2010-01-04 16:32:11 -08:00
Jae-Seong Lee-Russo
daf0803331 Bug 530372 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in svg smil, r=jwatt 2009-12-30 18:25:44 -05:00
Daniel Holbert
e1428e2de7 Bug 534975: Allow for null document pointer on SMIL animation targets, in case they get removed from tree due to a restyle during sample. r=roc 2009-12-23 16:19:29 -08:00
Daniel Holbert
8a979e6095 Trivial fix for random orange in test 'test_smilTextZoom.xhtml' from bug 474049. 2009-12-21 18:28:24 -08:00
Daniel Holbert
7ea6084810 Bug 530675: Support "cursor" property in SVG/SMIL. r=roc 2009-12-10 09:26:28 -08:00
Daniel Holbert
0d650e67d8 Bug 520239, patch 5: Enable SVG/SMIL animation of shorthand properties, and remove unneeded nsISMILCSSValueType interface. r=roc 2009-12-10 09:26:28 -08:00
Daniel Holbert
9542b12f07 Bug 530199: Cleanup in nsSMILCSSValueType - postpone allocation of ValueWrappers until they're needed. r=roc 2009-12-10 09:26:28 -08:00
Daniel Holbert
92ac2e0f1b Bug 520487: Support URI-valued properties in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
45e1b492a3 Bug 528656: Support "font-family" property in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
639aa84ba2 Bug 524539, patch 2: Support "stroke-dasharray" property in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
00537f3434 Bug 520239, patch 1: Split out a chunk of nsStyleAnimation::ComputeValue into its own function. r=dbaron 2009-12-10 09:26:27 -08:00
Daniel Holbert
2b6f7e5bde Add mochitest for bug 529387. (test only) 2009-12-10 09:26:27 -08:00
Daniel Holbert
25027ca46a Bug 529387: Don't create SMIL animation controller for data documents. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
86306358a3 minor fixes to comments in nsSMILAnimationFunction.h. b=no_bug r+a=comments_only 2009-12-08 13:06:35 -08:00
Daniel Holbert
9cb6718315 Bug 529406: Enable support for SMIL animation of font-weight & font-stretch. r=roc 2009-11-17 22:08:19 -08:00
L. David Baron
eea2f3996a Pass property to nsStyleAnimation interpolation functions. (Bug 528234) r=dholbert 2009-11-14 19:16:58 -08:00
Daniel Holbert
4821a39ec9 Bug 526875: Make nsSMILCSSValueType::Add accept just-initialized added values (which represent zero). r=roc 2009-11-11 13:41:43 -08:00
Daniel Holbert
e4ce6855cc Bug 525153: In DocumentViewerImpl::LoadComplete, don't call OnPageShow if docshell is being destroyed. r=smaug sr=bz 2009-10-31 17:06:47 -07:00
Brian Birtles
37704abd18 Bug 524828 - Fix random orange in test_smilGetStartTime.xhtml
--HG--
extra : rebase_source : db96df6c884d9b0898f6e29be87902569ae13f9d
2009-10-31 09:15:14 +11:00
Daniel Holbert
f54836501a Bug 525099: Bail out if GetZeroValueForUnit fails, in nsSMILCSSValueType. r=roc 2009-10-29 14:08:02 -07:00
Daniel Holbert
48c43c3c63 Bug 520710 followup: move nsSMILAnimationFunction's inline methods IsToAnimation/IsAdditive to header, to fix link error on some OSX systems. r=smaug 2009-10-25 12:22:29 -07:00
Daniel Holbert
08db3f7b28 bug 520710: SVG/SMIL: Make <set> element apply its 'to' value for whole duration. r=birtles sr=roc 2009-10-22 15:15:44 -07:00
Daniel Holbert
192d1b23ab Bug 523576: Build nsSMILKeySpline even when SMIL is disabled, since the CSS transitions code needs it. r=roc 2009-10-22 15:13:12 -07:00
Daniel Holbert
85330d8cf3 Bug 520486 (patch 2): Enable SVG/SMIL animation of properties with enumerated values. r=roc 2009-10-21 14:57:57 -07:00
Daniel Holbert
fe1cbadc25 tests for bug 521335 2009-10-20 09:55:37 -07:00
Daniel Holbert
3223de4b58 Bug 523188: Allow for ClearAnimValue() (and SetSMILOverrideStyleRule()) to be called for animation targets that aren't in a document. r=birtles r=roc 2009-10-20 09:54:47 -07: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
34d6f3a24f Better disambiguate nsStyleCoord constructors taking nscoord and nscolor. (Bug 521352) r=bzbarsky 2009-10-13 19:38:20 -07:00
Brian Birtles
8141231842 Bug 521705 - SVG SMIL: Update getStartTime to match behaviour in SVG 1.1 SE r=roc
--HG--
extra : rebase_source : ccb167188b6c3be499e75ef3b7d65ec24d266388
2009-10-13 10:14:08 +11:00
Daniel Holbert
3fd0b781fe Bug 520485, patch 5 of 5: remove unnecessary checks in nsSMILCSSValueType::Add. r=roc 2009-10-08 18:30:55 -07:00
Daniel Holbert
d6332e5ef3 Bug 520485, patch 4 of 5: add support for 'font-size-adjust' property in SVG/SMIL. r=roc 2009-10-08 18:30:53 -07:00
Daniel Holbert
4484bfea27 Bug 520485, patch 2 of 5: add support for float values in SVG/SMIL. r=roc 2009-10-08 18:30:50 -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
Daniel Holbert
8f8d556e84 Bug 520325: add mochitests for "none" CSS value. 2009-10-03 15:16:16 -07:00
Daniel Holbert
50268f016b Bug 474049: Add support for SMIL animation of CSS properties in SVG. r=birtles sr=roc 2009-10-02 14:37:25 -07:00
Daniel Holbert
28c722529b comment-only fix: s/@result/@return/ in nsISMILType::Interpolate documentation, for consistency with rest of file 2009-09-25 12:47:04 -07:00
Brian Birtles
dda3d26c82 Bug 510139. Remove no-longer-animated attributes from the set of attributes that are animated. r=roc 2009-08-25 12:02:28 -07:00
Benjamin Smedberg
2e9438fd2f Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
L. David Baron
2c391e58c6 Fix test from bug 501569 to avoid triggering the tinderbox error parser. 2009-08-25 08:30:16 -07:00
Brian Birtles
bb1da31747 Use binary subdivision rather than Newton-Raphson iteration when the slope is very near 0 to avoid failing to converge correctly. (Bug 501569) r=dbaron 2009-08-24 12:34:34 -07:00
Brian Birtles
a21a092b74 Bug 474739. Handle zero-duration intervals properly in SMIL. r=roc
--HG--
extra : rebase_source : 8ad07bedbb6b808dd36ce8949dcb186ba1fd7ca1
2009-08-05 14:39:04 +12:00
Daniel Holbert
447c7e4618 Bug 506096: In SVG Animation (SMIL), make sure to visit the underlying base value for first half of duration, in discrete-mode "to" animations. r+sr=roc 2009-07-27 13:52:19 -07:00
timeless@mozdev.org
4573189bef Bug 504479 nsSMILAnimationFunction::ScaleIntervalProgress Comparing unsigned less than zero is never true
r=roc
2009-07-22 17:31:01 -05:00
Daniel Holbert
78cacddb37 cleanup: remove trailing whitespace in SMIL code. (whitespace changes only) 2009-07-15 11:33:31 -07:00
Jeff Muizelaar
02a803e8c7 Bug 501428. SMIL: Optimize nsSMILKeySpline::CalcBezier. r=dholbert, r=longsonr
Eliminates the call to pow() and reduces the number of multiplications from 4
to 3.
2009-07-15 14:08:57 -04:00
Daniel Holbert
26b1152092 Bug 487450: Remove stale SMIL animation effects from SVG elements, when animations are dynamically removed or retargeted. r+sr=roc 2009-07-14 12:33:29 -07:00
Daniel Holbert
8e11869ccb Bug 492081: In SVG Animation (SMIL), update pause start time during setCurrentTime calls. r+sr=roc 2009-05-09 08:29:24 -07:00
Daniel Holbert
31c18a6827 Bug 458167 - Fix bad usage of "it's" in comments: patch for content folder. r+sr=jst 2009-01-23 01:02:09 -08:00
Brian Birtles
781e1f2a08 Bug 474740, SVG SMIL: dur="media" is incorrectly reported as a parsing error
--HG--
extra : rebase_source : 98c0109978ad9fed21351cad36932a2d7f6bed52
2009-01-22 17:17:12 +13:00
Brian Birtles
ffded06cc0 Bug 474357, Calls to setCurrentTime, beginElementAt etc. should update the DOM state immediately. r+sr=roc
--HG--
extra : rebase_source : 7c69aae13ee1c1b4fff077a046e042bae9a4970d
2009-01-22 14:00:27 +13:00
Brian Birtles
014bd86069 Bug 468996. Implement SMIL animateTransform element. r+sr=roc 2009-01-19 22:14:16 +13:00
Brian Birtles
a845c2644e Bug 474257. Implement SVG 1.1 erratum to make beginElementAt/endElementAt return void. r+sr=roc 2009-01-19 22:12:29 +13:00
Brian Birtles
a4cee8ae5a Bug 473702. Implement SVGAnimationElement methods getStartTime/getCurrentTime/getSimpleDuration. r+sr=roc 2009-01-19 22:10:53 +13:00
Brian Birtles
adf1d4fa7c Bug 216462: Add support for basic SVG animation (SMIL). Disabled in builds by default. r+sr=roc 2009-01-14 20:38:07 -08:00