| 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 * Copyright (C) 2014 Google, Inc. |
| 4 * | 5 * |
| 5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 8 * 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. |
| 9 * | 10 * |
| 10 * 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual void removedFrom(ContainerNode*) OVERRIDE; | 145 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 145 | 146 |
| 146 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 147 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 147 | 148 |
| 148 virtual bool selfHasRelativeLengths() const OVERRIDE; | 149 virtual bool selfHasRelativeLengths() const OVERRIDE; |
| 149 | 150 |
| 150 void inheritViewAttributes(SVGViewElement*); | 151 void inheritViewAttributes(SVGViewElement*); |
| 151 | 152 |
| 152 void updateCurrentTranslate(); | 153 void updateCurrentTranslate(); |
| 153 | 154 |
| 154 enum CollectIntersectionOrEnclosure { | 155 enum CheckIntersectionOrEnclosure { |
| 155 CollectIntersectionList, | 156 CheckIntersection, |
| 156 CollectEnclosureList | 157 CheckEnclosure |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const FloatRect&, SV
GElement*, CollectIntersectionOrEnclosure) const; | 160 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check
IntersectionOrEnclosure) const; |
| 161 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const FloatRect&, SV
GElement*, CheckIntersectionOrEnclosure) const; |
| 160 | 162 |
| 161 RefPtr<SVGAnimatedLength> m_x; | 163 RefPtr<SVGAnimatedLength> m_x; |
| 162 RefPtr<SVGAnimatedLength> m_y; | 164 RefPtr<SVGAnimatedLength> m_y; |
| 163 RefPtr<SVGAnimatedLength> m_width; | 165 RefPtr<SVGAnimatedLength> m_width; |
| 164 RefPtr<SVGAnimatedLength> m_height; | 166 RefPtr<SVGAnimatedLength> m_height; |
| 165 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) | 167 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) |
| 166 END_DECLARE_ANIMATED_PROPERTIES | 168 END_DECLARE_ANIMATED_PROPERTIES |
| 167 | 169 |
| 168 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE; | 170 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE; |
| 169 | 171 |
| 170 bool m_useCurrentView; | 172 bool m_useCurrentView; |
| 171 RefPtr<SMILTimeContainer> m_timeContainer; | 173 RefPtr<SMILTimeContainer> m_timeContainer; |
| 172 RefPtr<SVGPoint> m_translation; | 174 RefPtr<SVGPoint> m_translation; |
| 173 RefPtr<SVGViewSpec> m_viewSpec; | 175 RefPtr<SVGViewSpec> m_viewSpec; |
| 174 | 176 |
| 175 friend class SVGCurrentTranslateTearOff; | 177 friend class SVGCurrentTranslateTearOff; |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 inline bool isSVGSVGElement(const Node& node) | 180 inline bool isSVGSVGElement(const Node& node) |
| 179 { | 181 { |
| 180 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); | 182 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); |
| 181 } | 183 } |
| 182 | 184 |
| 183 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); | 185 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); |
| 184 | 186 |
| 185 } // namespace WebCore | 187 } // namespace WebCore |
| 186 | 188 |
| 187 #endif | 189 #endif |
| OLD | NEW |