Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: Source/core/svg/SVGSVGElement.h

Issue 185333004: [SVG] Refactor getIntersectionList() and getEnclosureList() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Build fix. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual void removedFrom(ContainerNode*) OVERRIDE; 144 virtual void removedFrom(ContainerNode*) OVERRIDE;
145 145
146 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 146 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
147 147
148 virtual bool selfHasRelativeLengths() const OVERRIDE; 148 virtual bool selfHasRelativeLengths() const OVERRIDE;
149 149
150 void inheritViewAttributes(SVGViewElement*); 150 void inheritViewAttributes(SVGViewElement*);
151 151
152 void updateCurrentTranslate(); 152 void updateCurrentTranslate();
153 153
154 enum CollectIntersectionOrEnclosure { 154 enum CheckIntersectionOrEnclosure {
155 CollectIntersectionList, 155 CheckIntersection,
156 CollectEnclosureList 156 CheckEnclosure
157 }; 157 };
158 158
159 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const FloatRect&, SV GElement*, CollectIntersectionOrEnclosure) const; 159 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check IntersectionOrEnclosure) const;
160 PassRefPtr<NodeList> collectIntersectionOrEnclosureList(const FloatRect&, SV GElement*, CheckIntersectionOrEnclosure) const;
160 161
161 RefPtr<SVGAnimatedLength> m_x; 162 RefPtr<SVGAnimatedLength> m_x;
162 RefPtr<SVGAnimatedLength> m_y; 163 RefPtr<SVGAnimatedLength> m_y;
163 RefPtr<SVGAnimatedLength> m_width; 164 RefPtr<SVGAnimatedLength> m_width;
164 RefPtr<SVGAnimatedLength> m_height; 165 RefPtr<SVGAnimatedLength> m_height;
165 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement) 166 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSVGElement)
166 END_DECLARE_ANIMATED_PROPERTIES 167 END_DECLARE_ANIMATED_PROPERTIES
167 168
168 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE; 169 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE;
169 170
170 bool m_useCurrentView; 171 bool m_useCurrentView;
171 RefPtr<SMILTimeContainer> m_timeContainer; 172 RefPtr<SMILTimeContainer> m_timeContainer;
172 RefPtr<SVGPoint> m_translation; 173 RefPtr<SVGPoint> m_translation;
173 RefPtr<SVGViewSpec> m_viewSpec; 174 RefPtr<SVGViewSpec> m_viewSpec;
174 175
175 friend class SVGCurrentTranslateTearOff; 176 friend class SVGCurrentTranslateTearOff;
176 }; 177 };
177 178
178 inline bool isSVGSVGElement(const Node& node) 179 inline bool isSVGSVGElement(const Node& node)
179 { 180 {
180 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement(); 181 return node.isSVGElement() && toSVGElement(node).isSVGSVGElement();
181 } 182 }
182 183
183 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement); 184 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSVGElement);
184 185
185 } // namespace WebCore 186 } // namespace WebCore
186 187
187 #endif 188 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698