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

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

Issue 18098007: Get rid of SVGPoint special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/core/svg/SVGPointList.h ('k') | Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // RenderSVGRoot wants to query the intrinsic size, by only examining the wi dth/height attributes. 77 // RenderSVGRoot wants to query the intrinsic size, by only examining the wi dth/height attributes.
78 Length intrinsicWidth(ConsiderCSSMode = RespectCSSProperties) const; 78 Length intrinsicWidth(ConsiderCSSMode = RespectCSSProperties) const;
79 Length intrinsicHeight(ConsiderCSSMode = RespectCSSProperties) const; 79 Length intrinsicHeight(ConsiderCSSMode = RespectCSSProperties) const;
80 FloatSize currentViewportSize() const; 80 FloatSize currentViewportSize() const;
81 FloatRect currentViewBoxRect() const; 81 FloatRect currentViewBoxRect() const;
82 82
83 float currentScale() const; 83 float currentScale() const;
84 void setCurrentScale(float scale); 84 void setCurrentScale(float scale);
85 85
86 FloatPoint& currentTranslate() { return m_translation; } 86 SVGPoint& currentTranslate() { return m_translation; }
87 void setCurrentTranslate(const FloatPoint&); 87 void setCurrentTranslate(const FloatPoint&);
88 88
89 // Only used from the bindings. 89 // Only used from the bindings.
90 void updateCurrentTranslate(); 90 void updateCurrentTranslate();
91 91
92 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); } 92 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); }
93 93
94 void pauseAnimations(); 94 void pauseAnimations();
95 void unpauseAnimations(); 95 void unpauseAnimations();
96 bool animationsPaused() const; 96 bool animationsPaused() const;
97 97
98 float getCurrentTime() const; 98 float getCurrentTime() const;
99 void setCurrentTime(float seconds); 99 void setCurrentTime(float seconds);
100 100
101 unsigned suspendRedraw(unsigned maxWaitMilliseconds); 101 unsigned suspendRedraw(unsigned maxWaitMilliseconds);
102 void unsuspendRedraw(unsigned suspendHandleId); 102 void unsuspendRedraw(unsigned suspendHandleId);
103 void unsuspendRedrawAll(); 103 void unsuspendRedrawAll();
104 void forceRedraw(); 104 void forceRedraw();
105 105
106 PassRefPtr<NodeList> getIntersectionList(const FloatRect&, SVGElement* refer enceElement) const; 106 PassRefPtr<NodeList> getIntersectionList(const FloatRect&, SVGElement* refer enceElement) const;
107 PassRefPtr<NodeList> getEnclosureList(const FloatRect&, SVGElement* referenc eElement) const; 107 PassRefPtr<NodeList> getEnclosureList(const FloatRect&, SVGElement* referenc eElement) const;
108 bool checkIntersection(SVGElement*, const FloatRect&) const; 108 bool checkIntersection(SVGElement*, const FloatRect&) const;
109 bool checkEnclosure(SVGElement*, const FloatRect&) const; 109 bool checkEnclosure(SVGElement*, const FloatRect&) const;
110 void deselectAll(); 110 void deselectAll();
111 111
112 static float createSVGNumber(); 112 static float createSVGNumber();
113 static SVGLength createSVGLength(); 113 static SVGLength createSVGLength();
114 static SVGAngle createSVGAngle(); 114 static SVGAngle createSVGAngle();
115 static FloatPoint createSVGPoint(); 115 static SVGPoint createSVGPoint();
116 static SVGMatrix createSVGMatrix(); 116 static SVGMatrix createSVGMatrix();
117 static FloatRect createSVGRect(); 117 static FloatRect createSVGRect();
118 static SVGTransform createSVGTransform(); 118 static SVGTransform createSVGTransform();
119 static SVGTransform createSVGTransformFromMatrix(const SVGMatrix&); 119 static SVGTransform createSVGTransformFromMatrix(const SVGMatrix&);
120 120
121 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst; 121 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) co nst;
122 122
123 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode) ; 123 void setupInitialView(const String& fragmentIdentifier, Element* anchorNode) ;
124 124
125 Element* getElementById(const AtomicString&) const; 125 Element* getElementById(const AtomicString&) const;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 167 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
168 DECLARE_ANIMATED_RECT(ViewBox, viewBox) 168 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
169 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 169 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
170 END_DECLARE_ANIMATED_PROPERTIES 170 END_DECLARE_ANIMATED_PROPERTIES
171 171
172 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope ) const; 172 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope ) const;
173 173
174 bool m_useCurrentView; 174 bool m_useCurrentView;
175 SVGZoomAndPanType m_zoomAndPan; 175 SVGZoomAndPanType m_zoomAndPan;
176 RefPtr<SMILTimeContainer> m_timeContainer; 176 RefPtr<SMILTimeContainer> m_timeContainer;
177 FloatPoint m_translation; 177 SVGPoint m_translation;
178 RefPtr<SVGViewSpec> m_viewSpec; 178 RefPtr<SVGViewSpec> m_viewSpec;
179 }; 179 };
180 180
181 inline SVGSVGElement* toSVGSVGElement(Node* node) 181 inline SVGSVGElement* toSVGSVGElement(Node* node)
182 { 182 {
183 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); 183 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement());
184 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t()); 184 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGSVGElemen t());
185 return static_cast<SVGSVGElement*>(node); 185 return static_cast<SVGSVGElement*>(node);
186 } 186 }
187 187
188 } // namespace WebCore 188 } // namespace WebCore
189 189
190 #endif 190 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPointList.h ('k') | Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698