| Index: Source/web/WebPluginContainerImpl.cpp
|
| diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
|
| index 40a701310f852752b35d2165eaf5d6a8f1370216..9dfdc56ae99c9b3e121a547626b2a0b9ea9ad065 100644
|
| --- a/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/Source/web/WebPluginContainerImpl.cpp
|
| @@ -119,10 +119,10 @@ void WebPluginContainerImpl::paint(GraphicsContext* context, const IntRect& rect
|
| if (!frameRect().intersects(rect))
|
| return;
|
|
|
| - LayoutObjectDrawingRecorder drawingRecorder(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, rect);
|
| - if (drawingRecorder.canUseCachedDrawing())
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin))
|
| return;
|
|
|
| + LayoutObjectDrawingRecorder drawingRecorder(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, rect);
|
| context->save();
|
|
|
| ASSERT(parent()->isFrameView());
|
| @@ -354,9 +354,10 @@ int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const
|
|
|
| void WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext* gc, const IntRect& printRect)
|
| {
|
| - LayoutObjectDrawingRecorder drawingRecorder(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, printRect);
|
| - if (drawingRecorder.canUseCachedDrawing())
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin))
|
| return;
|
| +
|
| + LayoutObjectDrawingRecorder drawingRecorder(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, printRect);
|
| gc->save();
|
| WebCanvas* canvas = gc->canvas();
|
| m_webPlugin->printPage(pageNumber, canvas);
|
|
|