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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGMarkerData.h

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 case EndMarker: 89 case EndMarker:
90 return markerEnd; 90 return markerEnd;
91 } 91 }
92 92
93 ASSERT_NOT_REACHED(); 93 ASSERT_NOT_REACHED();
94 return nullptr; 94 return nullptr;
95 } 95 }
96 96
97 private: 97 private:
98 float currentAngle(SVGMarkerType type) const { 98 float currentAngle(SVGMarkerType type) const {
99 // For details of this calculation, see: http://www.w3.org/TR/SVG/single-pag e.html#painting-MarkerElement 99 // For details of this calculation, see:
100 // http://www.w3.org/TR/SVG/single-page.html#painting-MarkerElement
100 FloatPoint inSlope(m_inslopePoints[1] - m_inslopePoints[0]); 101 FloatPoint inSlope(m_inslopePoints[1] - m_inslopePoints[0]);
101 FloatPoint outSlope(m_outslopePoints[1] - m_outslopePoints[0]); 102 FloatPoint outSlope(m_outslopePoints[1] - m_outslopePoints[0]);
102 103
103 double inAngle = rad2deg(inSlope.slopeAngleRadians()); 104 double inAngle = rad2deg(inSlope.slopeAngleRadians());
104 double outAngle = rad2deg(outSlope.slopeAngleRadians()); 105 double outAngle = rad2deg(outSlope.slopeAngleRadians());
105 106
106 switch (type) { 107 switch (type) {
107 case StartMarker: 108 case StartMarker:
108 if (m_autoStartReverse) 109 if (m_autoStartReverse)
109 outAngle += 180; 110 outAngle += 180;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 FloatPoint m_origin; 164 FloatPoint m_origin;
164 FloatPoint m_subpathStart; 165 FloatPoint m_subpathStart;
165 FloatPoint m_inslopePoints[2]; 166 FloatPoint m_inslopePoints[2];
166 FloatPoint m_outslopePoints[2]; 167 FloatPoint m_outslopePoints[2];
167 bool m_autoStartReverse; 168 bool m_autoStartReverse;
168 }; 169 };
169 170
170 } // namespace blink 171 } // namespace blink
171 172
172 #endif // SVGMarkerData_h 173 #endif // SVGMarkerData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698