Changeset 38684 in webkit


Ignore:
Timestamp:
Nov 21, 2008 6:27:48 PM (15 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

Implementation of AffineTransform::mapRect for wx.

https://bugs.webkit.org/show_bug.cgi?id=22401

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r38683 r38684  
     12008-11-21  Kevin Watters  <kevinwatters@gmail.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        Implementation of AffineTransform::mapRect for wx.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=22401
     8
     9        * platform/graphics/wx/AffineTransformWx.cpp:
     10        (WebCore::AffineTransform::mapRect):
     11
    1122008-11-21  Justin Garcia  <justin.garcia@apple.com>
    213
  • trunk/WebCore/platform/graphics/wx/AffineTransformWx.cpp

    r36371 r38684  
    8484IntRect AffineTransform::mapRect(const IntRect &rect) const
    8585{
    86     notImplemented();
     86#if USE(WXGC)
     87    double x, y, width, height;
     88    x = rect.x();
     89    y = rect.y();
     90    width = rect.width();
     91    height = rect.height();
     92   
     93    m_transform.TransformPoint(&x, &y);
     94    m_transform.TransformDistance(&width, &height);
     95    return IntRect(x, y, width, height);
     96#endif
    8797    return IntRect();
    8898}
     
    90100FloatRect AffineTransform::mapRect(const FloatRect &rect) const
    91101{
    92     notImplemented();
     102#if USE(WXGC)
     103    double x, y, width, height;
     104    x = rect.x();
     105    y = rect.y();
     106    width = rect.width();
     107    height = rect.height();
     108   
     109    m_transform.TransformPoint(&x, &y);
     110    m_transform.TransformDistance(&width, &height);
     111    return FloatRect(x, y, width, height);
     112#endif
    93113    return FloatRect();
    94114}
Note: See TracChangeset for help on using the changeset viewer.