-
darin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=88201 Patch by Vitaly Buka <vitalybuka@chromium.org> on 2012-06-05 Reviewed by Brady Eidson. No new tests. Root case is already covered by tests. Case described in the issue can be reproduced only by direct call to Frame::setPrinting of subframe. Probably it's not possible with layout tests. * page/Frame.cpp: (WebCore::Frame::setPrinting): Use shouldUsePrintingLayout to choose proper version of forceLayout(). (WebCore::Frame::shouldUsePrintingLayout): Checks if current frame is the top frame being printed. * rendering/RenderView.cpp: (WebCore::RenderView::shouldUsePrintingLayout): Forward to Frame. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
bf782019