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, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class SVGSVGElement FINAL : public SVGGraphicsElement, | 43 class SVGSVGElement FINAL : public SVGGraphicsElement, |
44 public SVGFitToViewBox, | 44 public SVGFitToViewBox, |
45 public SVGZoomAndPan { | 45 public SVGZoomAndPan { |
46 public: | 46 public: |
47 static PassRefPtr<SVGSVGElement> create(Document&); | 47 static PassRefPtr<SVGSVGElement> create(Document&); |
48 | 48 |
49 using SVGGraphicsElement::ref; | 49 using SVGGraphicsElement::ref; |
50 using SVGGraphicsElement::deref; | 50 using SVGGraphicsElement::deref; |
51 | 51 |
52 virtual bool isValid() const { return SVGTests::isValid(); } | 52 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } |
53 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 53 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
54 | 54 |
55 // 'SVGSVGElement' functions | 55 // 'SVGSVGElement' functions |
56 const AtomicString& contentScriptType() const; | 56 const AtomicString& contentScriptType() const; |
57 void setContentScriptType(const AtomicString& type); | 57 void setContentScriptType(const AtomicString& type); |
58 | 58 |
59 const AtomicString& contentStyleType() const; | 59 const AtomicString& contentStyleType() const; |
60 void setContentStyleType(const AtomicString& type); | 60 void setContentStyleType(const AtomicString& type); |
61 | 61 |
62 SVGRect viewport() const; | 62 SVGRect viewport() const; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 private: | 140 private: |
141 explicit SVGSVGElement(Document&); | 141 explicit SVGSVGElement(Document&); |
142 virtual ~SVGSVGElement(); | 142 virtual ~SVGSVGElement(); |
143 | 143 |
144 virtual bool isSVGSVGElement() const OVERRIDE { return true; } | 144 virtual bool isSVGSVGElement() const OVERRIDE { return true; } |
145 | 145 |
146 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 146 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
147 | 147 |
148 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 148 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; |
149 virtual RenderObject* createRenderer(RenderStyle*); | 149 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
150 | 150 |
151 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 151 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
152 virtual void removedFrom(ContainerNode*) OVERRIDE; | 152 virtual void removedFrom(ContainerNode*) OVERRIDE; |
153 | 153 |
154 virtual void svgAttributeChanged(const QualifiedName&); | 154 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
155 | 155 |
156 virtual bool selfHasRelativeLengths() const; | 156 virtual bool selfHasRelativeLengths() const OVERRIDE; |
157 | 157 |
158 void inheritViewAttributes(SVGViewElement*); | 158 void inheritViewAttributes(SVGViewElement*); |
159 | 159 |
160 enum CollectIntersectionOrEnclosure { | 160 enum CollectIntersectionOrEnclosure { |
161 CollectIntersectionList, | 161 CollectIntersectionList, |
162 CollectEnclosureList | 162 CollectEnclosureList |
163 }; | 163 }; |
164 | 164 |
165 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const SVGRect&, SVGE
lement*, CollectIntersectionOrEnclosure) const; | 165 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const SVGRect&, SVGE
lement*, CollectIntersectionOrEnclosure) const; |
166 | 166 |
167 RefPtr<SVGAnimatedLength> m_x; | 167 RefPtr<SVGAnimatedLength> m_x; |
168 RefPtr<SVGAnimatedLength> m_y; | 168 RefPtr<SVGAnimatedLength> m_y; |
169 RefPtr<SVGAnimatedLength> m_width; | 169 RefPtr<SVGAnimatedLength> m_width; |
170 RefPtr<SVGAnimatedLength> m_height; | 170 RefPtr<SVGAnimatedLength> m_height; |
171 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) | 171 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) |
172 DECLARE_ANIMATED_RECT(ViewBox, viewBox) | 172 DECLARE_ANIMATED_RECT(ViewBox, viewBox) |
173 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) | 173 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect
Ratio) |
174 END_DECLARE_ANIMATED_PROPERTIES | 174 END_DECLARE_ANIMATED_PROPERTIES |
175 | 175 |
176 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const; | 176 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE; |
177 | 177 |
178 bool m_useCurrentView; | 178 bool m_useCurrentView; |
179 SVGZoomAndPanType m_zoomAndPan; | 179 SVGZoomAndPanType m_zoomAndPan; |
180 RefPtr<SMILTimeContainer> m_timeContainer; | 180 RefPtr<SMILTimeContainer> m_timeContainer; |
181 SVGPoint m_translation; | 181 SVGPoint m_translation; |
182 RefPtr<SVGViewSpec> m_viewSpec; | 182 RefPtr<SVGViewSpec> m_viewSpec; |
183 WeakPtrFactory<SVGSVGElement> m_weakFactory; | 183 WeakPtrFactory<SVGSVGElement> m_weakFactory; |
184 }; | 184 }; |
185 | 185 |
186 inline bool isSVGSVGElement(const Node& node) | 186 inline bool isSVGSVGElement(const Node& node) |
187 { | 187 { |
188 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); | 188 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); |
189 } | 189 } |
190 | 190 |
191 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); | 191 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); |
192 | 192 |
193 } // namespace WebCore | 193 } // namespace WebCore |
194 | 194 |
195 #endif | 195 #endif |
OLD | NEW |