OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 | 23 |
24 #include "core/svg/SVGSVGElement.h" | 24 #include "core/svg/SVGSVGElement.h" |
25 | 25 |
26 #include "HTMLNames.h" | 26 #include "HTMLNames.h" |
27 #include "SVGNames.h" | 27 #include "SVGNames.h" |
28 #include "bindings/v8/ScriptEventListener.h" | 28 #include "bindings/v8/ScriptEventListener.h" |
29 #include "core/css/CSSHelper.h" | 29 #include "core/css/CSSHelper.h" |
30 #include "core/dom/Attribute.h" | |
31 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
32 #include "core/dom/EventListener.h" | 31 #include "core/dom/EventListener.h" |
33 #include "core/dom/EventNames.h" | 32 #include "core/dom/EventNames.h" |
34 #include "core/dom/NodeTraversal.h" | 33 #include "core/dom/NodeTraversal.h" |
35 #include "core/dom/StaticNodeList.h" | 34 #include "core/dom/StaticNodeList.h" |
36 #include "core/editing/FrameSelection.h" | 35 #include "core/editing/FrameSelection.h" |
37 #include "core/page/Frame.h" | 36 #include "core/page/Frame.h" |
38 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
39 #include "core/page/FrameView.h" | 38 #include "core/page/FrameView.h" |
40 #include "core/platform/FloatConversion.h" | 39 #include "core/platform/FloatConversion.h" |
41 #include "core/platform/graphics/FloatRect.h" | 40 #include "core/platform/graphics/FloatRect.h" |
42 #include "core/platform/graphics/transforms/AffineTransform.h" | 41 #include "core/platform/graphics/transforms/AffineTransform.h" |
43 #include "core/rendering/RenderObject.h" | 42 #include "core/rendering/RenderObject.h" |
44 #include "core/rendering/RenderPart.h" | 43 #include "core/rendering/RenderPart.h" |
45 #include "core/rendering/svg/RenderSVGModelObject.h" | 44 #include "core/rendering/svg/RenderSVGModelObject.h" |
46 #include "core/rendering/svg/RenderSVGResource.h" | 45 #include "core/rendering/svg/RenderSVGResource.h" |
47 #include "core/rendering/svg/RenderSVGRoot.h" | 46 #include "core/rendering/svg/RenderSVGRoot.h" |
48 #include "core/rendering/svg/RenderSVGViewportContainer.h" | 47 #include "core/rendering/svg/RenderSVGViewportContainer.h" |
49 #include "core/svg/SVGAngle.h" | 48 #include "core/svg/SVGAngle.h" |
50 #include "core/svg/SVGElementInstance.h" | 49 #include "core/svg/SVGElementInstance.h" |
51 #include "core/svg/SVGFitToViewBox.h" | 50 #include "core/svg/SVGFitToViewBox.h" |
52 #include "core/svg/SVGPreserveAspectRatio.h" | 51 #include "core/svg/SVGPreserveAspectRatio.h" |
53 #include "core/svg/SVGTransform.h" | 52 #include "core/svg/SVGTransform.h" |
54 #include "core/svg/SVGTransformList.h" | 53 #include "core/svg/SVGTransformList.h" |
55 #include "core/svg/SVGViewElement.h" | 54 #include "core/svg/SVGViewElement.h" |
56 #include "core/svg/SVGViewSpec.h" | 55 #include "core/svg/SVGViewSpec.h" |
57 #include "core/svg/SVGZoomEvent.h" | |
58 #include "core/svg/animation/SMILTimeContainer.h" | 56 #include "core/svg/animation/SMILTimeContainer.h" |
59 #include <wtf/StdLibExtras.h> | 57 #include <wtf/StdLibExtras.h> |
60 | 58 |
61 namespace WebCore { | 59 namespace WebCore { |
62 | 60 |
63 // Animated property definitions | 61 // Animated property definitions |
64 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::xAttr, X, x) | 62 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::xAttr, X, x) |
65 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::yAttr, Y, y) | 63 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::yAttr, Y, y) |
66 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::widthAttr, Width, width) | 64 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::widthAttr, Width, width) |
67 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::heightAttr, Height, height) | 65 DEFINE_ANIMATED_LENGTH(SVGSVGElement, SVGNames::heightAttr, Height, height) |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 continue; | 772 continue; |
775 | 773 |
776 Element* element = toElement(node); | 774 Element* element = toElement(node); |
777 if (element->getIdAttribute() == id) | 775 if (element->getIdAttribute() == id) |
778 return element; | 776 return element; |
779 } | 777 } |
780 return 0; | 778 return 0; |
781 } | 779 } |
782 | 780 |
783 } | 781 } |
OLD | NEW |