Changeset 65451 in webkit


Ignore:
Timestamp:
Aug 16, 2010 2:26:28 PM (14 years ago)
Author:
hyatt@apple.com
Message:

Fix GTK build bustage.

File:
1 edited

Legend:

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

    r65449 r65451  
    929929    if (!kernelSize) {
    930930        setColor(cr, shadowColor);
    931         cairo_mask_surface(cr, buffer->image()->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y());
     931        RefPtr<Image> copiedImage = buffer->copyImage(); // FIXME: Copying the image is wasteful.
     932        cairo_mask_surface(cr, copiedImage->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y());
    932933        return;
    933934    }
     
    949950    // Masking makes it possible to just blur the alpha channel.
    950951    setColor(cr, shadowColor);
    951     cairo_mask_surface(cr, blur->resultImage()->image()->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y());
     952    RefPtr<Image> copiedImage = blur->resultImage()->copyImage(); // FIXME: Copying the image is wasteful.
     953    cairo_mask_surface(cr, copiedImage->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y());
    952954#endif
    953955}
Note: See TracChangeset for help on using the changeset viewer.