Changeset 25237 in webkit


Ignore:
Timestamp:
Aug 25, 2007 5:35:44 AM (17 years ago)
Author:
bdash
Message:

2007-08-25 Jasper Bryant-Greene <m@ni.ac.nz>

Reviewed by Oliver Hunt.

Set paintingDisabled to true in Cairo's GraphicsContext constructor
when passed a null PlatformGraphicsContext.

  • platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::GraphicsContext):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r25236 r25237  
     12007-08-25  Jasper Bryant-Greene  <m@ni.ac.nz>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Set paintingDisabled to true in Cairo's GraphicsContext constructor
     6        when passed a null PlatformGraphicsContext.
     7
     8        * platform/graphics/cairo/GraphicsContextCairo.cpp:
     9        (WebCore::GraphicsContext::GraphicsContext):
     10
    1112007-08-25  Mitz Pettel  <mitz@webkit.org>
    212
  • trunk/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp

    r24927 r25237  
    104104    , m_data(new GraphicsContextPlatformPrivate)
    105105{
    106     cairo_surface_t* surface = cairo_win32_surface_create(dc);
    107     m_data->cr = cairo_create(surface);
     106    if (dc) {
     107        cairo_surface_t* surface = cairo_win32_surface_create(dc);
     108        m_data->cr = cairo_create(surface);
     109    } else {
     110        setPaintingDisabled(true);
     111        m_data->cr = 0;
     112    }
    108113}
    109114#endif
     
    114119{
    115120    m_data->cr = cairo_reference(cr);
     121    setPaintingDisabled(!cr);
    116122}
    117123
Note: See TracChangeset for help on using the changeset viewer.