summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2012-07-05 10:19:47 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2012-07-15 11:51:46 +0200
commitc1598303e4c458795c28d41408a00d2082396113 (patch)
tree2a1742859bb5aefab7c84cd0dd61a95a37d3943c
parentaaed0c6e4953941c232cb17fcedda92635ec5905 (diff)
Bug fix: now a clip-based transition works correctly when mode=’out’ and reverse method involves flipping.
-rw-r--r--filter/source/svg/presentation_engine.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index f04226390e1d..984eaef34fca 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -7933,8 +7933,10 @@ ClippingFunctor.prototype.perform = function( nT, nWidth, nHeight )
{
var aClipPoly = this.aParametricPolyPolygon.perform( this.bForwardParameterSweep ? nT : (1 - nT) );
- if( this.bFlip )
- aClipPoly.changeOrientation();
+ // Note: even if the reverse method involves flipping we don't need to
+ // change the clip-poly orientation because we utilize the 'nonzero'
+ // clip-rule.
+ // See: http://www.w3.org/TR/SVG11/painting.html#FillRuleProperty
if( this.bSubtractPolygon )
{