Changeset 76487 in webkit


Ignore:
Timestamp:
Jan 24, 2011 12:33:57 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-24 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r76463.
http://trac.webkit.org/changeset/76463
https://bugs.webkit.org/show_bug.cgi?id=52993

It broke canvas/philip/tests/2d.path.stroke.skew.html
(Requested by Ossy on #webkit).

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::rotate):
  • platform/graphics/qt/PathQt.cpp: (WebCore::Path::addArc):
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r76483 r76487  
     12011-01-24  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r76463.
     4        http://trac.webkit.org/changeset/76463
     5        https://bugs.webkit.org/show_bug.cgi?id=52993
     6
     7        It broke canvas/philip/tests/2d.path.stroke.skew.html
     8        (Requested by Ossy on #webkit).
     9
     10        * platform/graphics/qt/GraphicsContextQt.cpp:
     11        (WebCore::GraphicsContext::rotate):
     12        * platform/graphics/qt/PathQt.cpp:
     13        (WebCore::Path::addArc):
     14
    1152011-01-23  Andrey Kosyakov  <caseq@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r76463 r76487  
    6363#include <QStack>
    6464#include <QVector>
    65 #include <wtf/MathExtras.h>
     65
     66#ifndef M_PI
     67#define M_PI 3.14159265358979323846
     68#endif
    6669
    6770namespace WebCore {
     
    11331136        return;
    11341137
    1135     m_data->p()->rotate(rad2deg(radians));
     1138    m_data->p()->rotate(180 / M_PI*radians);
    11361139}
    11371140
  • trunk/Source/WebCore/platform/graphics/qt/PathQt.cpp

    r76463 r76487  
    4040#include <QTransform>
    4141#include <QString>
    42 #include <wtf/MathExtras.h>
    4342#include <wtf/OwnPtr.h>
     43
     44#define _USE_MATH_DEFINES
     45#include <math.h>
     46
     47#ifndef M_PI
     48#   define M_PI 3.14159265358979323846
     49#endif
    4450
    4551namespace WebCore {
     
    258264}
    259265
     266#define DEGREES(t) ((t) * 180.0 / M_PI)
    260267void Path::addArc(const FloatPoint& p, float r, float sar, float ear, bool anticlockwise)
    261268{
     
    274281    //end hack
    275282
    276     float sa = rad2deg(sar);
    277     float ea = rad2deg(ear);
     283    float sa = DEGREES(sar);
     284    float ea = DEGREES(ear);
    278285
    279286    double span = 0;
Note: See TracChangeset for help on using the changeset viewer.