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

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: Add a complex-subtree-update test 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 7c06c2691ad27befcc59579db36081c3b927dc9b..1ea49e7b54577f4b3f4a4f3490c829d0522093a6 100644
--- a/Source/core/layout/LayoutPart.cpp
+++ b/Source/core/layout/LayoutPart.cpp
@@ -338,10 +338,16 @@ 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);
}
+void LayoutPart::clearRepaintFlagsOfSubtrees()
+{
+ if (widget() && widget()->isFrameView())
+ toFrameView(widget())->layoutView()->clearRepaintFlagsRecursively();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698