Chromium Code Reviews| Index: webkit/glue/webframe_impl.cc |
| =================================================================== |
| --- webkit/glue/webframe_impl.cc (revision 23266) |
| +++ webkit/glue/webframe_impl.cc (working copy) |
| @@ -1045,6 +1045,16 @@ |
| return print_context_->pageCount(); |
| } |
| +float WebFrameImpl::getPrintPageShrink(int page) { |
| + // Ensure correct state. |
| + if (!print_context_.get() || page < 0) { |
|
darin (slow to review)
2009/08/13 16:57:01
I don't think it is important to check these thing
|
| + 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()) { |