| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index d246d6429bb3d4d14845836d5cef76892d60a94b..b052ed726f259bcd1677e81f63d0948ac1b6407a 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1319,6 +1319,16 @@ bool WebLocalFrameImpl::isPrintScalingDisabledForPlugin(const WebNode& node)
|
| return pluginContainer->isPrintScalingDisabled();
|
| }
|
|
|
| +int WebLocalFrameImpl::getPrintCopiesForPlugin(const WebNode& node)
|
| +{
|
| + WebPluginContainerImpl* pluginContainer = node.isNull() ? pluginContainerFromFrame(frame()) : toWebPluginContainerImpl(node.pluginContainer());
|
| +
|
| + if (!pluginContainer || !pluginContainer->supportsPaginatedPrint())
|
| + return 1;
|
| +
|
| + return pluginContainer->getCopiesToPrint();
|
| +}
|
| +
|
| bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex)
|
| {
|
| return frame()->document()->styleForPage(pageIndex)->pageSizeType() != PAGE_SIZE_AUTO;
|
|
|