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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp

Issue 2733773004: Add check for missing visual rect updates and fix failures (Closed)
Patch Set: - Created 3 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/paint/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index 7adecea88839413b0e1330aa2849047a6175db28..2cbbf4478abe08512687b32786565c1cbb28831d 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -44,6 +44,8 @@ void PrePaintTreeWalk::walk(FrameView& rootFrame) {
PrePaintTreeWalkContext initialContext;
initialContext.treeBuilderContext =
m_propertyTreeBuilder.setupInitialContext();
+ initialContext.ancestorTransformedOrRootPaintLayer =
+ rootFrame.layoutView()->layer();
// GeometryMapper depends on paint properties.
if (rootFrame.needsPaintPropertyUpdate() ||
@@ -65,7 +67,6 @@ void PrePaintTreeWalk::walk(FrameView& frameView,
PrePaintTreeWalkContext context(parentContext);
// ancestorOverflowLayer does not cross frame boundaries.
context.ancestorOverflowPaintLayer = nullptr;
- context.ancestorTransformedOrRootPaintLayer = frameView.layoutView()->layer();
m_propertyTreeBuilder.updateProperties(frameView, context.treeBuilderContext);
m_paintInvalidator.invalidatePaintIfNeeded(frameView,
context.paintInvalidatorContext);

Powered by Google App Engine
This is Rietveld 408576698