OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 static PassRefPtr<SVGViewElement> create(const QualifiedName&, const Handle<
Document>&); | 41 static PassRefPtr<SVGViewElement> create(const QualifiedName&, const Handle<
Document>&); |
42 | 42 |
43 using SVGStyledElement::ref; | 43 using SVGStyledElement::ref; |
44 using SVGStyledElement::deref; | 44 using SVGStyledElement::deref; |
45 | 45 |
46 SVGStringList& viewTarget() { return m_viewTarget; } | 46 SVGStringList& viewTarget() { return m_viewTarget; } |
47 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } | 47 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } |
48 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan
::parseFromNumber(zoomAndPan); } | 48 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan
::parseFromNumber(zoomAndPan); } |
49 | 49 |
| 50 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledElement::acc
ept(visitor); } |
| 51 |
50 private: | 52 private: |
51 SVGViewElement(const QualifiedName&, const Handle<Document>&); | 53 SVGViewElement(const QualifiedName&, const Handle<Document>&); |
52 | 54 |
53 // FIXME: svgAttributeChanged missing. | 55 // FIXME: svgAttributeChanged missing. |
54 bool isSupportedAttribute(const QualifiedName&); | 56 bool isSupportedAttribute(const QualifiedName&); |
55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
56 | 58 |
57 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; } | 59 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; } |
58 | 60 |
59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement) | 61 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement) |
60 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 62 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
61 DECLARE_ANIMATED_RECT(ViewBox, viewBox) | 63 DECLARE_ANIMATED_RECT(ViewBox, viewBox) |
62 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) | 64 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) |
63 END_DECLARE_ANIMATED_PROPERTIES | 65 END_DECLARE_ANIMATED_PROPERTIES |
64 | 66 |
65 SVGZoomAndPanType m_zoomAndPan; | 67 SVGZoomAndPanType m_zoomAndPan; |
66 SVGStringList m_viewTarget; | 68 SVGStringList m_viewTarget; |
67 }; | 69 }; |
68 | 70 |
69 } // namespace WebCore | 71 } // namespace WebCore |
70 | 72 |
71 #endif // ENABLE(SVG) | 73 #endif // ENABLE(SVG) |
72 #endif | 74 #endif |
OLD | NEW |