Show
Ignore:
Timestamp:
04/23/07 08:32:07 (21 months ago)
Author:
bdash
Message:

2007-04-23 Alp Toker <alp@atoker.com>

Reviewed by Mark.

Save and restore the context state when beginning and ending a transparency layer.

  • platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::beginTransparencyLayer): (WebCore::GraphicsContext::endTransparencyLayer):
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp

    r21035 r21041  
    578578 
    579579    cairo_t* context = m_data->context; 
     580    cairo_save(context); 
    580581    cairo_push_group(context); 
    581582    // We insert the opacity into a Cairo surface data slot. 
     
    598599    cairo_pop_group_to_source(context); 
    599600    cairo_paint_with_alpha(context, opacity); 
     601    cairo_restore(context); 
    600602} 
    601603