Commit Graph

307 Commits

Author SHA1 Message Date
Daniel Holbert
9c6a7040a2 Bug 534028, Patch D: Tests for smil animation of mapped attributes. r=roc
--HG--
rename : content/smil/test/test_smilCSSFromBy.xhtml => content/smil/test/test_smilMappedAttrFromBy.xhtml
rename : content/smil/test/test_smilCSSPaced.xhtml => content/smil/test/test_smilMappedAttrPaced.xhtml
2010-03-16 16:17:33 -07:00
Daniel Holbert
ca4469b700 Bug 534028, Patch C: Support SMIL animation of SVG attributes that are mapped to CSS properties. r=roc 2010-03-16 16:17:33 -07:00
Daniel Holbert
40273edd28 Backed out changeset 68363c7a7f06 due to debug mochitest orange w/ abort_if_false failure 2010-03-11 23:11:09 -08:00
Daniel Holbert
e45a2ef460 Bug 541588: Hook up nsSMILAnimationController to nsRefreshDriver for scheduling samples. r=roc 2010-03-11 22:03:49 -08:00
Daniel Holbert
7f63efa6df Bug 551736: Add parens around right-shift, to fix compile warning and make sure we construct hash value correctly. r=sicking 2010-03-11 22:03:49 -08:00
Daniel Holbert
7569307a1d merge 2010-03-10 15:03:47 -08:00
Daniel Holbert
12ff630e60 Backed out changeset 76abe26bf57c due to orange. 2010-03-10 15:03:34 -08:00
Daniel Holbert
181e7a795a Bug 541588: Hook up nsSMILAnimationController to nsRefreshDriver for scheduling samples. r=roc 2010-03-10 12:33:37 -08:00
Daniel Holbert
92f89fb9c1 Bug 550975: In mochitests with SVG embedded in XHTML, move initial pauseAnimations call to <svg> onload handler. r=roc 2010-03-10 12:33:37 -08:00
Jonas Sicking
0e6d5d8188 Bug 534136 Part 3: Optimize atom-using code for the fact that atoms store 16bit strings. Also take advantage of new nsAtomString API. r=bz 2010-03-08 07:45:00 -08:00
Jonas Sicking
c7c7514f75 Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap 2010-03-08 07:45:00 -08:00
Daniel Holbert
827926975c 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
1d4431e4cb Bug 540090: Add method nsIDocument::HasAnimationController, to let us check for active SMIL animation without triggering lazy construction. r=roc 2010-03-02 23:09:51 -08:00
Daniel Holbert
943ac9cd80 Backed out changeset e9ab6e4d121d (Bug 547333 followup) due to debug mochitest orange. 2010-03-02 08:29:46 -08:00
Daniel Holbert
16b59df3ce 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
d5d1ef1794 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
a93e76b890 Bug 537361 followup: Address review suggestions. r=birtles 2010-03-01 11:31:52 -08:00
Brian Birtles
15dfd1c3aa Bug 537361: Store SMIL intervals with state for restoring. r=dholbert 2010-03-01 11:31:50 -08:00
Daniel Holbert
d7e9ac7147 Backed out changeset 367cdcfa611b due to smil reftest failures on opt mac & windows tinderboxen 2010-02-26 15:43:47 -08:00
Daniel Holbert
6e8793e23b 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
4886418c6c Test for bug 547333. 2010-02-25 10:20:44 -08:00
Saint Wesonga
5d2c924b93 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
e5e15fadb9 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
1d26fc55f0 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
0185ff4ef3 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
d022ff95c3 Bug 542670 Patch B: Add specialized implementations for nsISMILType::IsEqual. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
23eff0e71e Bug 542670 Patch A: Add equality operator for nsSMILValue. r=roc 2010-02-20 13:13:11 -08:00
Daniel Holbert
a286aac4cb 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
dd2a6ecedc 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
0de31a3453 Bug 533291 Patch A: Create classes nsSMILTargetIdentifier & nsSMILWeakTargetIdentifier, based on nsSMILCompositorKey. r=roc 2010-02-20 13:13:11 -08:00
Jonathan Watt
a1a6327f16 Bug 540588. Add support for SMIL animation of <integer> attributes in SVG. r=dholbert 2010-02-18 21:51:00 +00:00
Jonathan Watt
ecd0d20033 Bug 545042. Add support for SMIL animation of <angle> attributes in SVG. r=dholbert 2010-02-18 21:50:59 +00:00
Daniel Holbert
abb3defa19 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
fd7772777e 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
082e12c87c Bug 517553: Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE' 2010-02-07 10:52:43 -05:00
Daniel Holbert
2a34c11d01 Bug 542731, Patch D: Make nsISMILType methods protected, & only give nsSMILValue access. r=roc 2010-02-01 18:46:13 -08:00
Daniel Holbert
cbd7942798 Bug 542731, Patch B: Clean up nsSMILCSS* classes. r=roc 2010-02-01 18:46:13 -08:00
Daniel Holbert
6409e78281 Bug 542731, Patch A: Clean up nsSMILValue class. r=roc 2010-01-29 12:18:50 -08:00
Daniel Holbert
11b174b084 Bug 542731: SMIL misc code cleanup - remove end-of-line whitespace. 2010-01-28 01:51:03 -08:00
Daniel Holbert
8de7d5755d 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
1a9b2068d8 Bug 540479. Add support for SMIL animation of boolean attributes in SVG. r=dholbert 2010-01-24 16:42:08 +00:00
Jonathan Watt
570dbfcdcf 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
6cac918f7c Fix indentation in db_smilCSSFromTo.js (whitespace-only, test-only). 2010-01-19 13:40:22 -08:00
Brian Birtles
44cd3b8d6b 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
141de6d154 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
da78d003b2 Bug 537852 followup D: Misc nit fixes to syncbase reftests. r=birtles 2010-01-12 12:00:50 -08:00
Brian Birtles
610477f65e Bug 537852: Add tests for syncbase timing (bug 474743). r=dholbert 2010-01-12 12:00:49 -08:00
Daniel Holbert
56ee09184b 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
c8f6f13d21 Bug 474743 Patch D: Implement syncbase logic. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
2d6def246c Bug 474743 Patch C: Implement the parsing for syncbase timing. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
36ddff2445 Bug 474743 Patch B: Implement milestone sampling behavior. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Brian Birtles
fa6faa698b Bug 474743 Patch A: Refactor nsSMILParserUtils to use newer iterators. r=dholbert sr=roc 2010-01-12 12:00:49 -08:00
Daniel Holbert
b20bff31e2 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
96cd4fb14d Bug 530983, patch 2: Enable SMIL animation for 'clip' property. r=roc 2010-01-04 16:32:11 -08:00
Jae-Seong Lee-Russo
dac7014353 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
029e0c411a 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
e30078c6f9 Trivial fix for random orange in test 'test_smilTextZoom.xhtml' from bug 474049. 2009-12-21 18:28:24 -08:00
Daniel Holbert
a4f10a3bdf Bug 530675: Support "cursor" property in SVG/SMIL. r=roc 2009-12-10 09:26:28 -08:00
Daniel Holbert
17ce1f0741 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
cc4d1f9129 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
43014f2ee6 Bug 520487: Support URI-valued properties in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
10c93fe33c Bug 528656: Support "font-family" property in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
e4eadae38f Bug 524539, patch 2: Support "stroke-dasharray" property in SVG/SMIL. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
1cb5b1c508 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
00a1934907 Add mochitest for bug 529387. (test only) 2009-12-10 09:26:27 -08:00
Daniel Holbert
42be6a5054 Bug 529387: Don't create SMIL animation controller for data documents. r=roc 2009-12-10 09:26:27 -08:00
Daniel Holbert
980aebc279 minor fixes to comments in nsSMILAnimationFunction.h. b=no_bug r+a=comments_only 2009-12-08 13:06:35 -08:00
Daniel Holbert
edba719e51 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
ff1edb3161 Pass property to nsStyleAnimation interpolation functions. (Bug 528234) r=dholbert 2009-11-14 19:16:58 -08:00
Daniel Holbert
3b5c30efe5 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
05d1532e81 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
dbe5f93b5c Bug 524828 - Fix random orange in test_smilGetStartTime.xhtml
--HG--
extra : rebase_source : db96df6c884d9b0898f6e29be87902569ae13f9d
2009-10-31 09:15:14 +11:00
Daniel Holbert
a44093af8c Bug 525099: Bail out if GetZeroValueForUnit fails, in nsSMILCSSValueType. r=roc 2009-10-29 14:08:02 -07:00
Daniel Holbert
638007729b 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
cf8e774a99 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
a0d87ac241 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
d8c59c3f5f 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
ac25c80d86 tests for bug 521335 2009-10-20 09:55:37 -07:00
Daniel Holbert
408720e9ce 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
8461beec27 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
a24f436459 Better disambiguate nsStyleCoord constructors taking nscoord and nscolor. (Bug 521352) r=bzbarsky 2009-10-13 19:38:20 -07:00
Brian Birtles
7a531f32da 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
27efa4b049 Bug 520485, patch 5 of 5: remove unnecessary checks in nsSMILCSSValueType::Add. r=roc 2009-10-08 18:30:55 -07:00
Daniel Holbert
4541a570c6 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
5e589fe66b 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
2ccbe80f89 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
daeb0d21b4 Bug 520325: add mochitests for "none" CSS value. 2009-10-03 15:16:16 -07:00
Daniel Holbert
176ee39664 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
4dd8361b02 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
d713407bcd 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
ba372f3a4c 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
b43f7a62a0 Fix test from bug 501569 to avoid triggering the tinderbox error parser. 2009-08-25 08:30:16 -07:00
Brian Birtles
2572fb5ff8 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
43ff7295f1 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
6a27498683 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
5e7740d543 Bug 504479 nsSMILAnimationFunction::ScaleIntervalProgress Comparing unsigned less than zero is never true
r=roc
2009-07-22 17:31:01 -05:00
Daniel Holbert
3a5504e673 cleanup: remove trailing whitespace in SMIL code. (whitespace changes only) 2009-07-15 11:33:31 -07:00
Jeff Muizelaar
9e0f7bd861 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
b47ea83e82 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
c77f3164bf 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
3dc6c6a6d7 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
d2f5ec869c 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
7e4a16aa3b 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
802428be09 Bug 468996. Implement SMIL animateTransform element. r+sr=roc 2009-01-19 22:14:16 +13:00
Brian Birtles
9973adc34e 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
48fbbe3ba1 Bug 473702. Implement SVGAnimationElement methods getStartTime/getCurrentTime/getSimpleDuration. r+sr=roc 2009-01-19 22:10:53 +13:00
Brian Birtles
0a47d48dae 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