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

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

Issue 2359063002: Add static root property tree nodes [spv2] (Closed)
Patch Set: Address reviewer comments and fix a test Created 4 years, 3 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 a3904399780b5be1f28692d10372409ea4ad71e1..976226def65cf179a40992e0805809689a44cb1b 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -28,9 +28,9 @@ void PrePaintTreeWalk::walk(FrameView& rootFrame)
{
DCHECK(rootFrame.frame().document()->lifecycle().state() == DocumentLifecycle::InPrePaint);
- PrePaintTreeWalkContext rootContext;
- m_propertyTreeBuilder.buildTreeRootNodes(rootFrame, rootContext.treeBuilderContext);
- walk(rootFrame, rootContext);
+ PrePaintTreeWalkContext initialContext;
+ initialContext.treeBuilderContext = m_propertyTreeBuilder.setupInitialContext();
+ walk(rootFrame, initialContext);
m_paintInvalidator.processPendingDelayedPaintInvalidations();
}

Powered by Google App Engine
This is Rietveld 408576698