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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index bbfcf0dd2f7f72df06cf0b364b4a488ec092fca9..f291ca093e9364afa7cadc019113def27d2ec74a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -427,7 +427,7 @@ void LayoutView::paintBoxDecorationBackground(const PaintInfo& paintInfo, const
ViewPainter(*this).paintBoxDecorationBackground(paintInfo);
}
-void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidationState)
+PaintInvalidationReason LayoutView::invalidatePaintIfNeeded(PaintInvalidationState& paintInvalidationState, const LayoutBoxModelObject& paintInvalidationContainer)
{
ASSERT(!needsLayout());
@@ -440,7 +440,7 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio
invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintInvalidationFull);
invalidateDisplayItemClientsWithPaintInvalidationState(paintInvalidationContainer, paintInvalidationState, PaintInvalidationFull);
}
- LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState);
+ return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState, paintInvalidationContainer);
}
static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(LayoutObject* object)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698