| Index: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| index 64ee6a63899d6412e41b9b5584ab37e14c270921..62167d4fee4dad206e1b1c4d5898d250fc2b7d54 100644
|
| --- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
| @@ -339,16 +339,16 @@ int WebPluginContainerImpl::printBegin(const WebPrintParams& printParams) const
|
| return m_webPlugin->printBegin(printParams);
|
| }
|
|
|
| -void WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext* gc, const IntRect& printRect)
|
| +void WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext& gc, const IntRect& printRect)
|
| {
|
| - if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, LayoutPoint()))
|
| + if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, LayoutPoint()))
|
| return;
|
|
|
| - LayoutObjectDrawingRecorder drawingRecorder(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, printRect, LayoutPoint());
|
| - gc->save();
|
| - WebCanvas* canvas = gc->canvas();
|
| + LayoutObjectDrawingRecorder drawingRecorder(gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, printRect, LayoutPoint());
|
| + gc.save();
|
| + WebCanvas* canvas = gc.canvas();
|
| m_webPlugin->printPage(pageNumber, canvas);
|
| - gc->restore();
|
| + gc.restore();
|
| }
|
|
|
| void WebPluginContainerImpl::printEnd()
|
|
|