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

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

Issue 1209133002: Traverse into child LayoutViews during invalidateTreeIfNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address chrishtr's comments; Fix unit tests Created 5 years, 6 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
« Source/core/frame/FrameView.cpp ('K') | « Source/core/layout/LayoutPart.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutPart.cpp
diff --git a/Source/core/layout/LayoutPart.cpp b/Source/core/layout/LayoutPart.cpp
index cae3fb991c9aa9970659e306f186f9fd9452063c..b48e96f211f7bb0a03c62d7fd7bd339f7dadc0ab 100644
--- a/Source/core/layout/LayoutPart.cpp
+++ b/Source/core/layout/LayoutPart.cpp
@@ -331,4 +331,15 @@ bool LayoutPart::setWidgetGeometry(const LayoutRect& frame)
return widget->frameRect().size() != newFrame.size();
}
+void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paintInvalidationState)
+{
+ if (widget() && widget()->isFrameView()) {
+ FrameView* childFrameView = toFrameView(widget());
+ PaintInvalidationState childViewPaintInvalidationState(paintInvalidationState, *childFrameView->layoutView(), paintInvalidationState.paintInvalidationContainer());
+ toFrameView(widget())->invalidateTreeIfNeeded(childViewPaintInvalidationState);
+ }
+
+ LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState);
+}
+
}
« Source/core/frame/FrameView.cpp ('K') | « Source/core/layout/LayoutPart.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698