| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
atSize& originalPageSize, float maximumShrinkRatio) | 484 void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
atSize& originalPageSize, float maximumShrinkRatio) |
| 485 { | 485 { |
| 486 // In setting printing, we should not validate resources already cached for
the document. | 486 // In setting printing, we should not validate resources already cached for
the document. |
| 487 // See https://bugs.webkit.org/show_bug.cgi?id=43704 | 487 // See https://bugs.webkit.org/show_bug.cgi?id=43704 |
| 488 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher()
); | 488 ResourceCacheValidationSuppressor validationSuppressor(document()->fetcher()
); |
| 489 | 489 |
| 490 document()->setPrinting(printing); | 490 document()->setPrinting(printing); |
| 491 view()->adjustMediaTypeForPrinting(printing); | 491 view()->adjustMediaTypeForPrinting(printing); |
| 492 | 492 |
| 493 document()->styleResolverChanged(); | |
| 494 if (shouldUsePrintingLayout()) { | 493 if (shouldUsePrintingLayout()) { |
| 495 view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShri
nkRatio); | 494 view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShri
nkRatio); |
| 496 } else { | 495 } else { |
| 497 if (LayoutView* layoutView = view()->layoutView()) { | 496 if (LayoutView* layoutView = view()->layoutView()) { |
| 498 layoutView->setPreferredLogicalWidthsDirty(); | 497 layoutView->setPreferredLogicalWidthsDirty(); |
| 499 layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged
); | 498 layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged
); |
| 500 layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants
(); | 499 layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants
(); |
| 501 } | 500 } |
| 502 view()->layout(); | 501 view()->layout(); |
| 503 view()->adjustViewSize(); | 502 view()->adjustViewSize(); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 { | 888 { |
| 890 m_frame->disableNavigation(); | 889 m_frame->disableNavigation(); |
| 891 } | 890 } |
| 892 | 891 |
| 893 FrameNavigationDisabler::~FrameNavigationDisabler() | 892 FrameNavigationDisabler::~FrameNavigationDisabler() |
| 894 { | 893 { |
| 895 m_frame->enableNavigation(); | 894 m_frame->enableNavigation(); |
| 896 } | 895 } |
| 897 | 896 |
| 898 } // namespace blink | 897 } // namespace blink |
| OLD | NEW |