blob: 4441329ce3a7f70c8012b1ece1eeb58d5e87c82d [file] [log] [blame]
eseidelebc3ff12007-10-18 07:30:13 +00001/*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 *
zimmermann@webkit.orgc19aac82010-08-03 12:50:41 +00004 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
eseidelebc3ff12007-10-18 07:30:13 +000012 *
zimmermann@webkit.org711245f2010-08-03 19:39:01 +000013 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
zimmermann@webkit.orgc19aac82010-08-03 12:50:41 +000014 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
zimmermann@webkit.org711245f2010-08-03 19:39:01 +000016 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
zimmermann@webkit.orgc19aac82010-08-03 12:50:41 +000017 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
eseidelebc3ff12007-10-18 07:30:13 +000024 */
25
commit-queue@webkit.orgcab10ce2012-10-12 06:10:17 +000026// SVGViewSpec intentionally doesn't inherit from SVGZoomAndPan & SVGFitToViewBox on the IDLs.
27// It would require that any of those classes would be RefCounted, and we want to avoid that.
commit-queue@webkit.orga4d60d12012-10-12 11:44:58 +000028[
darin@apple.com4e6d6262016-10-22 20:56:47 +000029 ImplementationLacksVTable,
30 JSGenerateToJSObject,
commit-queue@webkit.orga4d60d12012-10-12 11:44:58 +000031] interface SVGViewSpec {
darin@apple.com4e6d6262016-10-22 20:56:47 +000032 readonly attribute SVGTransformList transform;
33 readonly attribute SVGElement viewTarget;
34 readonly attribute DOMString viewBoxString;
35 readonly attribute DOMString preserveAspectRatioString;
36 readonly attribute DOMString transformString;
37 readonly attribute DOMString viewTargetString;
eseidelebc3ff12007-10-18 07:30:13 +000038
darin@apple.com4e6d6262016-10-22 20:56:47 +000039 // SVGZoomAndPan
40 [SetterMayThrowException] attribute unsigned short zoomAndPan;
commit-queue@webkit.orgcab10ce2012-10-12 06:10:17 +000041};
zimmermann@webkit.orgcdbf6db2012-05-29 08:41:58 +000042
ch.dumez@sisa.samsung.com588799a2013-06-26 14:28:00 +000043SVGViewSpec implements SVGFitToViewBox;