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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Address chrishtrs comments Created 4 years 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/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
index b6925cf20673061a387c07b9e4a04332fa29291e..e1f5e3911c1e41448db27f7839576ee28bb56c79 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -77,6 +77,11 @@ struct PaintPropertyTreeBuilderContext {
const ClipPaintPropertyNode* inputClipOfCurrentEffect = nullptr;
bool isUnderMultiColumnSpanner = false;
+
+ // True if a change has forced all properties in a subtree to be updated. This
+ // can be set due to paint offset changes or when the structure of the
+ // property tree changes (i.e., a node is added or removed).
+ bool forceSubtreeUpdate = false;
};
// Creates paint property tree nodes for special things in the layout tree.
@@ -113,9 +118,8 @@ class PaintPropertyTreeBuilder {
PaintPropertyTreeBuilderContext&);
static void updateLocalBorderBoxContext(const LayoutObject&,
PaintPropertyTreeBuilderContext&);
- static void updateScrollbarPaintOffset(
- const LayoutObject&,
- const PaintPropertyTreeBuilderContext&);
+ static void updateScrollbarPaintOffset(const LayoutObject&,
+ PaintPropertyTreeBuilderContext&);
static void updateOverflowClip(const LayoutObject&,
PaintPropertyTreeBuilderContext&);
static void updatePerspective(const LayoutObject&,

Powered by Google App Engine
This is Rietveld 408576698