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

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

Issue 2858873002: [SPv2] Refactor PaintInvalidator to be multicol-ready. (Closed)
Patch Set: none Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 126c4eb81d8c5f83cfde9a2dba216fe31051feae..d363bd8b79152c07a7e200a5cef31b5ec8f15c29 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -19,7 +19,6 @@ struct PrePaintTreeWalkContext {
PrePaintTreeWalkContext()
: tree_builder_context(
WTF::WrapUnique(new PaintPropertyTreeBuilderContext)),
- paint_invalidator_context(tree_builder_context.get()),
ancestor_overflow_paint_layer(nullptr),
ancestor_transformed_or_root_paint_layer(nullptr) {}
@@ -30,8 +29,7 @@ struct PrePaintTreeWalkContext {
? new PaintPropertyTreeBuilderContext(
*parent_context.tree_builder_context)
: nullptr)),
- paint_invalidator_context(tree_builder_context.get(),
- parent_context.paint_invalidator_context),
+ paint_invalidator_context(parent_context.paint_invalidator_context),
ancestor_overflow_paint_layer(
parent_context.ancestor_overflow_paint_layer),
ancestor_transformed_or_root_paint_layer(
@@ -94,6 +92,7 @@ void PrePaintTreeWalk::Walk(FrameView& frame_view,
*context.tree_builder_context);
}
paint_invalidator_.InvalidatePaint(frame_view,
+ context.tree_builder_context.get(),
context.paint_invalidator_context);
if (LayoutView* view = frame_view.GetLayoutView()) {
@@ -312,7 +311,8 @@ void PrePaintTreeWalk::Walk(const LayoutObject& object,
object, *context.tree_builder_context);
}
- paint_invalidator_.InvalidatePaint(object, context.paint_invalidator_context);
+ paint_invalidator_.InvalidatePaint(object, context.tree_builder_context.get(),
+ context.paint_invalidator_context);
if (context.tree_builder_context) {
property_tree_builder_.UpdatePropertiesForChildren(
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintInvalidator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698