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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2583733003: Use LayoutObject::subtreeNeedsPaintPropertyUpdate for printing invalidation (Closed)
Patch Set: - Created 3 years, 12 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal( 423 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(
424 LayoutObject* object) { 424 LayoutObject* object) {
425 object->setShouldDoFullPaintInvalidation(); 425 object->setShouldDoFullPaintInvalidation();
426 for (LayoutObject* child = object->slowFirstChild(); child; 426 for (LayoutObject* child = object->slowFirstChild(); child;
427 child = child->nextSibling()) { 427 child = child->nextSibling()) {
428 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); 428 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child);
429 } 429 }
430 } 430 }
431 431
432 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() { 432 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() {
433 DCHECK(!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()); 433 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
434 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); 434 setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
435 else
436 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this);
435 } 437 }
436 438
437 void LayoutView::invalidatePaintForViewAndCompositedLayers() { 439 void LayoutView::invalidatePaintForViewAndCompositedLayers() {
438 setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 440 setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
439 441
440 // The only way we know how to hit these ASSERTS below this point is via the 442 // The only way we know how to hit these ASSERTS below this point is via the
441 // Chromium OS login screen. 443 // Chromium OS login screen.
442 DisableCompositingQueryAsserts disabler; 444 DisableCompositingQueryAsserts disabler;
443 445
444 if (compositor()->inCompositingMode()) 446 if (compositor()->inCompositingMode())
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { 1033 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
1032 // Frame scroll corner is painted using LayoutView as the display item client. 1034 // Frame scroll corner is painted using LayoutView as the display item client.
1033 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && 1035 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
1034 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar())) 1036 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar()))
1035 return false; 1037 return false;
1036 1038
1037 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); 1039 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
1038 } 1040 }
1039 1041
1040 } // namespace blink 1042 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698