OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1305 bool WebLocalFrameImpl::isPrintScalingDisabledForPlugin(const WebNode& node) | 1305 bool WebLocalFrameImpl::isPrintScalingDisabledForPlugin(const WebNode& node) |
1306 { | 1306 { |
1307 WebPluginContainerImpl* pluginContainer = node.isNull() ? pluginContainerFr omFrame(frame()) : toWebPluginContainerImpl(node.pluginContainer()); | 1307 WebPluginContainerImpl* pluginContainer = node.isNull() ? pluginContainerFr omFrame(frame()) : toWebPluginContainerImpl(node.pluginContainer()); |
1308 | 1308 |
1309 if (!pluginContainer || !pluginContainer->supportsPaginatedPrint()) | 1309 if (!pluginContainer || !pluginContainer->supportsPaginatedPrint()) |
1310 return false; | 1310 return false; |
1311 | 1311 |
1312 return pluginContainer->isPrintScalingDisabled(); | 1312 return pluginContainer->isPrintScalingDisabled(); |
1313 } | 1313 } |
1314 | 1314 |
1315 int WebLocalFrameImpl::getNumCopiesForPlugin(const WebNode& node) | |
1316 { | |
1317 WebPluginContainerImpl* pluginContainer = node.isNull() ? pluginContainerFro mFrame(frame()) : toWebPluginContainerImpl(node.pluginContainer()); | |
1318 | |
1319 if (!pluginContainer || !pluginContainer->supportsPaginatedPrint()) | |
1320 return false; | |
Inactive
2014/07/15 15:55:00
You should not return a boolean here...
Nikhil
2014/07/16 13:58:49
Done.
| |
1321 | |
1322 return pluginContainer->getNumCopies(); | |
1323 } | |
1324 | |
1315 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) | 1325 bool WebLocalFrameImpl::hasCustomPageSizeStyle(int pageIndex) |
1316 { | 1326 { |
1317 return frame()->document()->styleForPage(pageIndex)->pageSizeType() != PAGE_ SIZE_AUTO; | 1327 return frame()->document()->styleForPage(pageIndex)->pageSizeType() != PAGE_ SIZE_AUTO; |
1318 } | 1328 } |
1319 | 1329 |
1320 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) | 1330 bool WebLocalFrameImpl::isPageBoxVisible(int pageIndex) |
1321 { | 1331 { |
1322 return frame()->document()->isPageBoxVisible(pageIndex); | 1332 return frame()->document()->isPageBoxVisible(pageIndex); |
1323 } | 1333 } |
1324 | 1334 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1842 | 1852 |
1843 void WebLocalFrameImpl::invalidateAll() const | 1853 void WebLocalFrameImpl::invalidateAll() const |
1844 { | 1854 { |
1845 ASSERT(frame() && frame()->view()); | 1855 ASSERT(frame() && frame()->view()); |
1846 FrameView* view = frame()->view(); | 1856 FrameView* view = frame()->view(); |
1847 view->invalidateRect(view->frameRect()); | 1857 view->invalidateRect(view->frameRect()); |
1848 invalidateScrollbar(); | 1858 invalidateScrollbar(); |
1849 } | 1859 } |
1850 | 1860 |
1851 } // namespace blink | 1861 } // namespace blink |
OLD | NEW |