Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 1569503002: [Printing] Remove unnecessary styleResolverChanged(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698