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

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

Issue 1832453002: Invalidate the LayoutView and all non-composited descendants when doing a full invalidate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 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. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 } 459 }
460 } 460 }
461 461
462 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() 462 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants()
463 { 463 {
464 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); 464 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this);
465 } 465 }
466 466
467 void LayoutView::invalidatePaintForViewAndCompositedLayers() 467 void LayoutView::invalidatePaintForViewAndCompositedLayers()
468 { 468 {
469 setShouldDoFullPaintInvalidation(); 469 setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
470 470
471 // The only way we know how to hit these ASSERTS below this point is via the Chromium OS login screen. 471 // The only way we know how to hit these ASSERTS below this point is via the Chromium OS login screen.
472 DisableCompositingQueryAsserts disabler; 472 DisableCompositingQueryAsserts disabler;
473 473
474 if (compositor()->inCompositingMode()) 474 if (compositor()->inCompositingMode())
475 compositor()->fullyInvalidatePaint(); 475 compositor()->fullyInvalidatePaint();
476 } 476 }
477 477
478 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const 478 void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect& rect, const PaintInvalidationState* invalidationState) const
479 { 479 {
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1030
1031 ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize& delta) 1031 ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize& delta)
1032 { 1032 {
1033 if (!frameView()) 1033 if (!frameView())
1034 return ScrollResult(); 1034 return ScrollResult();
1035 1035
1036 return frame()->applyScrollDelta(granularity, delta, false); 1036 return frame()->applyScrollDelta(granularity, delta, false);
1037 } 1037 }
1038 1038
1039 } // namespace blink 1039 } // 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