[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - filter/source

Henry Castro hcastro at collabora.com
Wed May 4 13:59:45 UTC 2016


 filter/source/svg/presentation_engine.js |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit bd5f5ee9b21fd52e13e759643fe885836f0b82f8
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue May 3 19:21:26 2016 -0400

    filter: svg: avoid undefined variables
    
    Change-Id: Ibc3b678decfb36f5ac5779edb43aef1657507df2
    Reviewed-on: https://gerrit.libreoffice.org/24627
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    (cherry picked from commit c950792fd97894ae08304a7ded83b3d405f9a7d0)

diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index 4432ddf..ea5774a 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -68,7 +68,6 @@
  *  @source http://code.google.com/p/jessyink/
  */
 
-
 /** Convenience function to get an element depending on whether it has a
  *  property with a particular name.
  *
@@ -3652,6 +3651,9 @@ SVGPathElement.prototype.changeOrientation = function()
  *  Note: Opera doesn't have any SVGPathSeg* class and rises an error.
  *  We exploit this fact for providing a different implementation.
  */
+
+var SVGPathSeg = typeof SVGPathSeg === 'undefined' ? function() {} : SVGPathSeg;
+
 try
 {   // Firefox, Google Chrome, Internet Explorer, Safari.
 
@@ -13379,7 +13381,7 @@ function ElapsedTime( aTimeBase )
 {
     this.aTimeBase = aTimeBase;
     this.nLastQueriedTime = 0.0;
-    this.nStartTime = this.getCurrentTime();
+    this.nStartTime = this.getSystemTime();
     this.nFrozenTime = 0.0;
     this.bInPauseMode = false;
     this.bInHoldMode = false;
@@ -13394,7 +13396,7 @@ ElapsedTime.prototype.getTimeBase = function()
 ElapsedTime.prototype.reset = function()
 {
     this.nLastQueriedTime = 0.0;
-    this.nStartTime = this.getCurrentTime();
+    this.nStartTime = this.getSystemTime();
     this.nFrozenTime = 0.0;
     this.bInPauseMode = false;
     this.bInHoldMode = false;


More information about the Libreoffice-commits mailing list