svg-export - Removal of the SVG 1.1 path API in Chrome

On Chrome browser most of shape effects and slide transitions did not
work anymore: that was due to the fact that several animations exploit
the DOM api for handling path segments of the svg:path element.
Starting from version 48 such an api has been removed from Chrome:
https://bugs.chromium.org/p/chromium/issues/detail?id=539385 ;
Moreover Chrome does not yet provide an implementation for the new
svgpath api introduced in SVG 2.0 draft: so there is no native support
for handling path data directly.

The present patch adapts the JavaScript implementation of the old SVG
1.1 path api proposed here: https://github.com/progers/pathseg .

Change-Id: I536202291e0b8895f91d9e499a32fa57c110b2c1
Reviewed-on: https://gerrit.libreoffice.org/26839
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Marco Cecchetti
2016-06-28 18:17:53 +02:00
committed by Andras Timar
parent b3b78c6016
commit d3f5800a96
4 changed files with 1156 additions and 184 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2369,6 +2369,44 @@ STLPort
no representations about the suitability of this software for any
purpose. It is provided "as is" without express or implied warranty.
SVGPathSeg polyfill
The following software may be included in this product: SVGPathSeg
polyfill. Use of any of this software is governed by the terms of
the license below:
Copyright 2015 The Chromium Authors. All rights reserved.
The Chromium Authors can be found at
http://src.chromium.org/svn/trunk/src/AUTHORS
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
TWAIN
The following software may be included in this product: TWAIN. Use of

View File

@@ -4020,6 +4020,38 @@
<text:p text:style-name="P67">Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided &quot;as is&quot; without express or implied warranty.</text:p>
<text:p text:style-name="P67">Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided &quot;as is&quot; without express or implied warranty.</text:p>
<text:p text:style-name="P67">Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Moscow Center for SPARC Technology makes no representations about the suitability of this software for any purpose. It is provided &quot;as is&quot; without express or implied warranty.</text:p>
<text:h text:style-name="Heading_20_2" text:outline-level="2">SVGPathSeg polyfill</text:h>
<text:p text:style-name="Standard">The following software may be included in this product: SVGPathSeg polyfill. Use of any of this software is governed by the terms of the license below:</text:p>
<text:p text:style-name="Preformatted_20_Text">Copyright 2015 The Chromium Authors. All rights reserved.</text:p>
<text:p text:style-name="Preformatted_20_Text"><text:soft-page-break/></text:p>
<text:p text:style-name="Preformatted_20_Text">The Chromium Authors can be found at</text:p>
<text:p text:style-name="Preformatted_20_Text">http://src.chromium.org/svn/trunk/src/AUTHORS</text:p>
<text:p text:style-name="Preformatted_20_Text"/>
<text:p text:style-name="Preformatted_20_Text">Redistribution and use in source and binary forms, with or without</text:p>
<text:p text:style-name="Preformatted_20_Text">modification, are permitted provided that the following conditions are</text:p>
<text:p text:style-name="Preformatted_20_Text">met:</text:p>
<text:p text:style-name="Preformatted_20_Text"/>
<text:p text:style-name="Preformatted_20_Text"><text:s text:c="3"/>* Redistributions of source code must retain the above copyright</text:p>
<text:p text:style-name="Preformatted_20_Text">notice, this list of conditions and the following disclaimer.</text:p>
<text:p text:style-name="Preformatted_20_Text"><text:s text:c="3"/>* Redistributions in binary form must reproduce the above</text:p>
<text:p text:style-name="Preformatted_20_Text">copyright notice, this list of conditions and the following disclaimer</text:p>
<text:p text:style-name="Preformatted_20_Text">in the documentation and/or other materials provided with the</text:p>
<text:p text:style-name="Preformatted_20_Text">distribution.</text:p>
<text:p text:style-name="Preformatted_20_Text"><text:s text:c="3"/>* Neither the name of Google Inc. nor the names of its</text:p>
<text:p text:style-name="Preformatted_20_Text">contributors may be used to endorse or promote products derived from</text:p>
<text:p text:style-name="Preformatted_20_Text">this software without specific prior written permission.</text:p>
<text:p text:style-name="Preformatted_20_Text"/>
<text:p text:style-name="Preformatted_20_Text">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</text:p>
<text:p text:style-name="Preformatted_20_Text">&quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</text:p>
<text:p text:style-name="Preformatted_20_Text">LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</text:p>
<text:p text:style-name="Preformatted_20_Text">A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</text:p>
<text:p text:style-name="Preformatted_20_Text">OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</text:p>
<text:p text:style-name="Preformatted_20_Text">SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</text:p>
<text:p text:style-name="Preformatted_20_Text">LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</text:p>
<text:p text:style-name="Preformatted_20_Text">DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</text:p>
<text:p text:style-name="Preformatted_20_Text">THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</text:p>
<text:p text:style-name="Preformatted_20_Text">(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</text:p>
<text:p text:style-name="P8">OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</text:p>
<text:h text:style-name="Heading_20_2" text:outline-level="2">TWAIN</text:h>
<text:p text:style-name="Standard">The following software may be included in this product: TWAIN. Use of any of this software is governed by the terms of the license below:</text:p>
<text:h text:style-name="Heading_20_3" text:outline-level="3"><text:soft-page-break/>The TWAIN License</text:h>

File diff suppressed because one or more lines are too long