Changeset 76463 in webkit
- Timestamp:
- Jan 23, 2011 8:24:25 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r76462 r76463 1 2011-01-23 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Tor Arne Vestbø. 4 5 [Qt] Use rad2deg() from WTF instead of rolling our own. 6 7 * platform/graphics/qt/GraphicsContextQt.cpp: 8 (WebCore::GraphicsContext::rotate): 9 * platform/graphics/qt/PathQt.cpp: 10 (WebCore::Path::addArc): 11 1 12 2011-01-23 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 13 -
trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r76415 r76463 63 63 #include <QStack> 64 64 #include <QVector> 65 66 #ifndef M_PI 67 #define M_PI 3.14159265358979323846 68 #endif 65 #include <wtf/MathExtras.h> 69 66 70 67 namespace WebCore { … … 1136 1133 return; 1137 1134 1138 m_data->p()->rotate( 180 / M_PI*radians);1135 m_data->p()->rotate(rad2deg(radians)); 1139 1136 } 1140 1137 -
trunk/Source/WebCore/platform/graphics/qt/PathQt.cpp
r71936 r76463 40 40 #include <QTransform> 41 41 #include <QString> 42 #include <wtf/MathExtras.h> 42 43 #include <wtf/OwnPtr.h> 43 44 #define _USE_MATH_DEFINES45 #include <math.h>46 47 #ifndef M_PI48 # define M_PI 3.1415926535897932384649 #endif50 44 51 45 namespace WebCore { … … 264 258 } 265 259 266 #define DEGREES(t) ((t) * 180.0 / M_PI)267 260 void Path::addArc(const FloatPoint& p, float r, float sar, float ear, bool anticlockwise) 268 261 { … … 281 274 //end hack 282 275 283 float sa = DEGREES(sar);284 float ea = DEGREES(ear);276 float sa = rad2deg(sar); 277 float ea = rad2deg(ear); 285 278 286 279 double span = 0;
Note: See TracChangeset
for help on using the changeset viewer.