Chromium Code Reviews| Index: Source/web/WebPluginContainerImpl.cpp |
| diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
| index 6196f7769f4d8f07eb1aaa7f0712a0751f822b2f..1a0211ba7e829413c8c49645846d50299470b07b 100644 |
| --- a/Source/web/WebPluginContainerImpl.cpp |
| +++ b/Source/web/WebPluginContainerImpl.cpp |
| @@ -121,7 +121,7 @@ void WebPluginContainerImpl::paint(GraphicsContext* context, const IntRect& rect |
| if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin)) |
| return; |
| - LayoutObjectDrawingRecorder drawingRecorder(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, rect); |
| + LayoutObjectDrawingRecorder drawingRecorder(*context, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, LayoutRect(rect)); |
|
jbroman
2015/08/26 21:45:09
ditto
chrishtr
2015/08/26 22:32:21
Done
|
| context->save(); |
| ASSERT(parent()->isFrameView()); |
| @@ -345,7 +345,7 @@ void WebPluginContainerImpl::printPage(int pageNumber, GraphicsContext* gc, cons |
| if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin)) |
| return; |
| - LayoutObjectDrawingRecorder drawingRecorder(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, printRect); |
| + LayoutObjectDrawingRecorder drawingRecorder(*gc, *m_element->layoutObject(), DisplayItem::Type::WebPlugin, LayoutRect(printRect)); |
|
jbroman
2015/08/26 21:45:09
ditto
chrishtr
2015/08/26 22:32:22
Done
|
| gc->save(); |
| WebCanvas* canvas = gc->canvas(); |
| m_webPlugin->printPage(pageNumber, canvas); |