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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: s/setSelfNeedsRepaint/setNeedsRepaint/ Created 5 years, 4 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: Source/core/layout/LayoutPart.cpp
diff --git a/Source/core/layout/LayoutPart.cpp b/Source/core/layout/LayoutPart.cpp
index 3bd9e7fbba2e5aafaf2d74491450b2ac38532fee..34254ef8b4d8b432bcc19bbdf02a862da075ec37 100644
--- a/Source/core/layout/LayoutPart.cpp
+++ b/Source/core/layout/LayoutPart.cpp
@@ -336,10 +336,18 @@ void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint
if (widget() && widget()->isFrameView()) {
FrameView* childFrameView = toFrameView(widget());
PaintInvalidationState childViewPaintInvalidationState(*childFrameView->layoutView(), paintInvalidationState);
- toFrameView(widget())->invalidateTreeIfNeeded(childViewPaintInvalidationState);
+ childFrameView->invalidateTreeIfNeeded(childViewPaintInvalidationState);
}
LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState);
}
+bool LayoutPart::clearRepaintFlagsOfSubtrees()
+{
+ bool result = LayoutReplaced::clearRepaintFlagsOfSubtrees();
+ if (widget() && widget()->isFrameView())
+ result &= toFrameView(widget())->layoutView()->clearRepaintFlagsRecursively();
+ return result;
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698