summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-05-03 19:21:26 -0400
committerJan Holesovsky <kendy@collabora.com>2016-05-04 15:59:14 +0200
commitbd5f5ee9b21fd52e13e759643fe885836f0b82f8 (patch)
tree941965cec95fcc0f15b4e1e43a2fe4b7995a1806
parent5034d9ae26dd2cf0ab9de46c83c8012524cce288 (diff)
filter: svg: avoid undefined variables
Change-Id: Ibc3b678decfb36f5ac5779edb43aef1657507df2 Reviewed-on: https://gerrit.libreoffice.org/24627 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit c950792fd97894ae08304a7ded83b3d405f9a7d0)
-rw-r--r--filter/source/svg/presentation_engine.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index 4432ddf8de85..ea5774acf191 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;