diff options
author | Henry Castro <hcastro@collabora.com> | 2016-05-03 19:21:26 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-05-04 13:55:22 +0000 |
commit | c950792fd97894ae08304a7ded83b3d405f9a7d0 (patch) | |
tree | 74cbbc0935d2e1901791dfeecb0301208b57c87a /filter | |
parent | b57184b2fb7f08fb48dc43958932e9f24d8d856f (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>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/presentation_engine.js | 8 |
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; |