Index: webkit/glue/webframe_impl.cc |
=================================================================== |
--- webkit/glue/webframe_impl.cc (revision 21267) |
+++ webkit/glue/webframe_impl.cc (working copy) |
@@ -1764,6 +1764,16 @@ |
return print_context_->pageCount(); |
} |
+float WebFrameImpl::GetPrintPageShrink(int page) { |
+ // Ensure correct state. |
+ if (!print_context_.get() || page < 0) { |
+ NOTREACHED(); |
+ return 0; |
+ } |
+ |
+ return print_context_->getPageShrink(page); |
+} |
+ |
float WebFrameImpl::PrintPage(int page, WebCanvas* canvas) { |
// Ensure correct state. |
if (!print_context_.get() || page < 0 || !frame() || !frame()->document()) { |