OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher()
); | 467 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher()
); |
468 | 468 |
469 document()->setPrinting(printing); | 469 document()->setPrinting(printing); |
470 view()->adjustMediaTypeForPrinting(printing); | 470 view()->adjustMediaTypeForPrinting(printing); |
471 | 471 |
472 document()->styleResolverChanged(); | 472 document()->styleResolverChanged(); |
473 if (shouldUsePrintingLayout()) { | 473 if (shouldUsePrintingLayout()) { |
474 view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShri
nkRatio); | 474 view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShri
nkRatio); |
475 } else { | 475 } else { |
476 if (LayoutView* layoutView = view()->layoutView()) | 476 if (LayoutView* layoutView = view()->layoutView()) |
477 layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidatio
n(); | 477 layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidatio
n(LayoutInvalidationReason::PrintingChanged); |
478 view()->layout(); | 478 view()->layout(); |
479 view()->adjustViewSize(); | 479 view()->adjustViewSize(); |
480 } | 480 } |
481 | 481 |
482 // Subframes of the one we're printing don't lay out to the page size. | 482 // Subframes of the one we're printing don't lay out to the page size. |
483 for (RefPtrWillBeRawPtr<Frame> child = tree().firstChild(); child; child = c
hild->tree().nextSibling()) { | 483 for (RefPtrWillBeRawPtr<Frame> child = tree().firstChild(); child; child = c
hild->tree().nextSibling()) { |
484 if (child->isLocalFrame()) | 484 if (child->isLocalFrame()) |
485 toLocalFrame(child.get())->setPrinting(printing, FloatSize(), FloatS
ize(), 0); | 485 toLocalFrame(child.get())->setPrinting(printing, FloatSize(), FloatS
ize(), 0); |
486 } | 486 } |
487 } | 487 } |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 // We detach the FrameView's custom scroll bars as early as | 801 // We detach the FrameView's custom scroll bars as early as |
802 // possible to prevent m_doc->detach() from messing with the view | 802 // possible to prevent m_doc->detach() from messing with the view |
803 // such that its scroll bars won't be torn down. | 803 // such that its scroll bars won't be torn down. |
804 // | 804 // |
805 // FIXME: We should revisit this. | 805 // FIXME: We should revisit this. |
806 if (m_view) | 806 if (m_view) |
807 m_view->prepareForDetach(); | 807 m_view->prepareForDetach(); |
808 } | 808 } |
809 | 809 |
810 } // namespace blink | 810 } // namespace blink |
OLD | NEW |