| Index: WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp
|
| ===================================================================
|
| --- WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (revision 120960)
|
| +++ WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (working copy)
|
| @@ -52,6 +52,7 @@
|
| #include "Image.h"
|
| #include "ImageLayerChromium.h"
|
| #include "LayerChromium.h"
|
| +#include "NativeImageSkia.h"
|
| #include "PlatformString.h"
|
| #include "SystemTime.h"
|
|
|
| @@ -365,7 +366,8 @@
|
| childrenChanged = true;
|
| }
|
| ImageLayerChromium* imageLayer = static_cast<ImageLayerChromium*>(m_contentsLayer.get());
|
| - imageLayer->setContents(image);
|
| + NativeImageSkia* nativeImage = image->nativeImageForCurrentFrame();
|
| + imageLayer->setBitmap(nativeImage->bitmap());
|
| imageLayer->setOpaque(image->isBitmapImage() && !image->currentFrameHasAlpha());
|
| updateContentsRect();
|
| } else {
|
|
|