diff options
author | Marco Cecchetti <mrcekets@gmail.com> | 2012-06-21 18:55:50 +0200 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2012-06-28 12:28:07 +0200 |
commit | 19da52d09b74a7de98be454fd48f807758e18c96 (patch) | |
tree | d47faaf21036843abbc89714e72ffbb1644b7c7b | |
parent | 1ef95a7206979756a885b7bea4c788684f5e7b61 (diff) |
Now the rewind option is handled by the JavaScript engine too.
-rw-r--r-- | filter/source/svg/presentation_engine.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index 13a0a3b351ef..4dba32e66c72 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -5799,6 +5799,8 @@ AnimationBaseNode.prototype.deactivate_st = function( eDestState ) { if( this.aActivity ) this.aActivity.dispose(); + if( ( this.getFillMode() == FILL_MODE_REMOVE ) && this.getAnimatedElement() ) + this.removeEffect(); } }; @@ -6202,6 +6204,8 @@ BaseContainerNode.prototype.deactivate_st = function( eDestState ) { // end all children that are not ENDED: this.forEachChildNode( mem_fn( 'end' ), ~ENDED_NODE ); + if( this.getFillMode() == FILL_MODE_REMOVE ) + this.forEachChildNode( mem_fn( 'removeEffect' ), ENDED_NODE ); } }; @@ -8562,6 +8566,7 @@ AnimatedElement.prototype.setTo = function( nNewState ) this.nScaleFactorX = aBBox.width / aBaseBBox.width; this.nScaleFactorY = aBBox.height / aBaseBBox.height; } + return bRet; }; AnimatedElement.prototype.getBaseBBox = function() |