OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZ
oomAndPan::parseFromNumber(zoomAndPan); } | 64 void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZ
oomAndPan::parseFromNumber(zoomAndPan); } |
65 | 65 |
66 SVGElement* contextElement() const { return m_contextElement; } | 66 SVGElement* contextElement() const { return m_contextElement; } |
67 void resetContextElement() { m_contextElement = 0; } | 67 void resetContextElement() { m_contextElement = 0; } |
68 | 68 |
69 // Custom non-animated 'transform' property. | 69 // Custom non-animated 'transform' property. |
70 SVGTransformListPropertyTearOff* transform(); | 70 SVGTransformListPropertyTearOff* transform(); |
71 SVGTransformList transformBaseValue() const { return m_transform; } | 71 SVGTransformList transformBaseValue() const { return m_transform; } |
72 | 72 |
73 // Custom animated 'viewBox' property. | 73 // Custom animated 'viewBox' property. |
74 PassRefPtr<SVGAnimatedRect> viewBoxAnimated(); | 74 PassRefPtr<SVGAnimatedRect> viewBox(); |
75 FloatRect& viewBox() { return m_viewBox; } | 75 FloatRect& viewBoxCurrentValue() { return m_viewBox; } |
76 FloatRect viewBoxBaseValue() const { return m_viewBox; } | 76 FloatRect viewBoxBaseValue() const { return m_viewBox; } |
77 void setViewBoxBaseValue(const FloatRect& viewBox) { m_viewBox = viewBox; } | 77 void setViewBoxBaseValue(const FloatRect& viewBox) { m_viewBox = viewBox; } |
78 | 78 |
79 // Custom animated 'preserveAspectRatio' property. | 79 // Custom animated 'preserveAspectRatio' property. |
80 PassRefPtr<SVGAnimatedPreserveAspectRatio> preserveAspectRatioAnimated(); | 80 PassRefPtr<SVGAnimatedPreserveAspectRatio> preserveAspectRatio(); |
81 SVGPreserveAspectRatio& preserveAspectRatio() { return m_preserveAspectRatio
; } | 81 SVGPreserveAspectRatio& preserveAspectRatioCurrentValue() { return m_preserv
eAspectRatio; } |
82 SVGPreserveAspectRatio preserveAspectRatioBaseValue() const { return m_prese
rveAspectRatio; } | 82 SVGPreserveAspectRatio preserveAspectRatioBaseValue() const { return m_prese
rveAspectRatio; } |
83 void setPreserveAspectRatioBaseValue(const SVGPreserveAspectRatio& preserveA
spectRatio) { m_preserveAspectRatio = preserveAspectRatio; } | 83 void setPreserveAspectRatioBaseValue(const SVGPreserveAspectRatio& preserveA
spectRatio) { m_preserveAspectRatio = preserveAspectRatio; } |
84 | 84 |
85 private: | 85 private: |
86 explicit SVGViewSpec(SVGElement*); | 86 explicit SVGViewSpec(SVGElement*); |
87 | 87 |
88 static const SVGPropertyInfo* transformPropertyInfo(); | 88 static const SVGPropertyInfo* transformPropertyInfo(); |
89 static const SVGPropertyInfo* viewBoxPropertyInfo(); | 89 static const SVGPropertyInfo* viewBoxPropertyInfo(); |
90 static const SVGPropertyInfo* preserveAspectRatioPropertyInfo(); | 90 static const SVGPropertyInfo* preserveAspectRatioPropertyInfo(); |
91 | 91 |
(...skipping 13 matching lines...) Expand all Loading... |
105 | 105 |
106 SVGTransformList m_transform; | 106 SVGTransformList m_transform; |
107 FloatRect m_viewBox; | 107 FloatRect m_viewBox; |
108 SVGPreserveAspectRatio m_preserveAspectRatio; | 108 SVGPreserveAspectRatio m_preserveAspectRatio; |
109 String m_viewTargetString; | 109 String m_viewTargetString; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace WebCore | 112 } // namespace WebCore |
113 | 113 |
114 #endif | 114 #endif |
OLD | NEW |