Changeset 53373 in webkit


Ignore:
Timestamp:
Jan 17, 2010 3:39:25 PM (14 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

[wx] On Win and GTK, we need to manually apply the transforms when falling back
to GDI / GDK drawing, but this is not needed on Mac since we always use CG there.

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

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53372 r53373  
     12010-01-17  Kevin Watters  <kevinwatters@gmail.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        [wx] On Win and GTK, we need to manually apply the transforms when falling back
     6        to GDI / GDK drawing, but this is not needed on Mac since we always use CG there.
     7       
     8        https://bugs.webkit.org/show_bug.cgi?id=33730
     9
     10        * platform/wx/RenderThemeWx.cpp:
     11        (WebCore::RenderThemeWx::paintButton):
     12
    1132010-01-17  Martin Robinson  <martin.james.robinson@gmail.com>
    214
  • trunk/WebCore/platform/wx/RenderThemeWx.cpp

    r48511 r53373  
    268268    IntRect rect = r;
    269269
    270 #if USE(WXGC)
     270// On Mac, wxGraphicsContext and wxDC share the same native implementation,
     271// and so transformations are available.
     272// On Win and Linux, however, this is not true and transforms are lost,
     273// so we need to restore them here.
     274#if USE(WXGC) && !defined(__WXMAC__)
    271275    double xtrans = 0;
    272276    double ytrans = 0;
     
    295299            flags |= wxCONTROL_CHECKED;
    296300#if wxCHECK_VERSION(2,9,1)
    297         wxRendererNative::Get().DrawRadioBitmap(window, *dc, r, flags);
     301        wxRendererNative::Get().DrawRadioBitmap(window, *dc, rect, flags);
    298302#elif wxCHECK_VERSION(2,9,0)
    299303        wxRendererNative::Get().DrawRadioButton(window, *dc, rect, flags);
Note: See TracChangeset for help on using the changeset viewer.