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

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

Issue 2404213004: Implement incremental paint property tree rebuilding (Closed)
Patch Set: Cleanup needsUpdate finder construction, tighten reasons for updating a property subtree, misc clea… Created 4 years, 2 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/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
index 88b7f0127e81e629468b821ec2e872c4b6e3d1bf..c05ed444ea282084bcfcc1c71712107085d113ed 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -83,11 +83,18 @@ struct PaintPropertyTreeBuilderContext {
class PaintPropertyTreeBuilder {
public:
PaintPropertyTreeBuilderContext setupInitialContext();
- void buildTreeNodes(FrameView&, PaintPropertyTreeBuilderContext&);
- void buildTreeNodesForSelf(const LayoutObject&,
- PaintPropertyTreeBuilderContext&);
- void buildTreeNodesForChildren(const LayoutObject&,
- PaintPropertyTreeBuilderContext&);
+ // Update the paint properties for |FrameView| if needed, and always update
+ // the context.
+ void updateProperties(FrameView&, PaintPropertyTreeBuilderContext&);
+
+ // Update the paint properties that affect this |LayoutObject| (e.g.,
+ // properties like paint offset) if needed, and always update the context.
+ void updatePropertiesForSelf(const LayoutObject&,
+ PaintPropertyTreeBuilderContext&);
+ // Update the paint properties that affect children of this |LayoutObject|
+ // (e.g., scroll offset transform) if needed, and always update the context.
+ void updatePropertiesForChildren(const LayoutObject&,
+ PaintPropertyTreeBuilderContext&);
private:
static void updatePaintOffsetTranslation(const LayoutObject&,

Powered by Google App Engine
This is Rietveld 408576698