Changeset 63976 in webkit


Ignore:
Timestamp:
Jul 23, 2010 8:30:30 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-23 Patrick Gansterer <paroga@paroga.com>

Reviewed by Adam Roben.

Buildfix for WinCE graphics after r56015.
https://bugs.webkit.org/show_bug.cgi?id=41354

Use fabs() insetead of abs().

  • platform/graphics/wince/GraphicsContextWince.cpp: (WebCore::GraphicsContext::fillRect):
  • platform/graphics/wince/PlatformPathWince.cpp: (WebCore::PlatformPath::addArcTo):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63975 r63976  
     12010-07-23  Patrick Gansterer  <paroga@paroga.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        Buildfix for WinCE graphics after r56015.
     6        https://bugs.webkit.org/show_bug.cgi?id=41354
     7
     8        Use fabs() insetead of abs().
     9
     10        * platform/graphics/wince/GraphicsContextWince.cpp:
     11        (WebCore::GraphicsContext::fillRect):
     12        * platform/graphics/wince/PlatformPathWince.cpp:
     13        (WebCore::PlatformPath::addArcTo):
     14
    1152010-07-23  ryuan choi  <ryuan.choi@samsung.com>
    216
  • trunk/WebCore/platform/graphics/wince/GraphicsContextWince.cpp

    r63864 r63976  
    15141514    int height = rect.height();
    15151515    FloatSize d = gradient->p1() - gradient->p0();
    1516     bool vertical = abs(d.height()) > abs(d.width());
     1516    bool vertical = fabs(d.height()) > fabs(d.width());
    15171517    for (size_t i = 0; i < numStops; ++i) {
    15181518        const Gradient::ColorStop& stop = stops[i];
  • trunk/WebCore/platform/graphics/wince/PlatformPathWince.cpp

    r54503 r63976  
    672672    double d01 = v01.length();
    673673    double d21 = v21.length();
    674     double angle = (piDouble - abs(asin(cross / (d01 * d21)))) * 0.5;
     674    double angle = (piDouble - fabs(asin(cross / (d01 * d21)))) * 0.5;
    675675    double span = radius * tan(angle);
    676676    double rate = span / d01;
Note: See TracChangeset for help on using the changeset viewer.