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

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

Issue 1813383002: Move all fast-path paint invalidation mapping into PaintInvalidationState (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutPart.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutPart.cpp b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
index 0a83a6843dfb5ec2ff752fc4fdbc5e235042c7b7..def0becaf8e64b131bac80de75d3016338fcc033 100644
--- a/third_party/WebKit/Source/core/layout/LayoutPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
@@ -349,13 +349,13 @@ bool LayoutPart::setWidgetGeometry(const LayoutRect& frame)
void LayoutPart::invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& paintInvalidationState)
{
- if (widget() && widget()->isFrameView()) {
+ if (widget() && widget()->isFrameView() && !isThrottledFrameView()) {
FrameView* childFrameView = toFrameView(widget());
// |childFrameView| is in another document, which could be
// missing its LayoutView. TODO(jchaffraix): Ideally we should
// not need this code.
if (LayoutView* childLayoutView = childFrameView->layoutView()) {
- PaintInvalidationState childViewPaintInvalidationState(*childLayoutView, paintInvalidationState);
+ PaintInvalidationState childViewPaintInvalidationState(paintInvalidationState, *childLayoutView);
childFrameView->invalidateTreeIfNeeded(childViewPaintInvalidationState);
}
}

Powered by Google App Engine
This is Rietveld 408576698