Use printing layout correctly for subframes
When an oopif is printed along with its parent, this frame should not use printing layout. Instead, its size is confined by its parent. Before this change, ShouldUsePrintingLayout() works correctly in LocalFrame::SetPrinting() since it also checks |use_printing_layout| variable. But ShouldUsePrintingLayout() doesn't work correctly during layout code where it is also called to decide whether printing layout should be applied for style etc. This CL fixes ShouldUsePrintingLayout() to return the correct value for all cases. BUG=853942 Change-Id: I6cad75fd6db59d00d4c07ea8b23dbaf6a4a47afc Reviewed-on: https://chromium-review.googlesource.com/1175404 Commit-Queue: Wei Li <weili@chromium.org> Reviewed-by:Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#584319}
Showing
Please register or sign in to comment