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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 2464823003: Refactor LayoutView paint offset updates out of FrameView update code (Closed)
Patch Set: Remove unnecessary forward decl Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintPropertyTreeBuilder_h 5 #ifndef PaintPropertyTreeBuilder_h
6 #define PaintPropertyTreeBuilder_h 6 #define PaintPropertyTreeBuilder_h
7 7
8 #include "platform/geometry/LayoutPoint.h" 8 #include "platform/geometry/LayoutPoint.h"
9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }; 75 };
76 76
77 // Creates paint property tree nodes for special things in the layout tree. 77 // Creates paint property tree nodes for special things in the layout tree.
78 // Special things include but not limit to: overflow clip, transform, fixed-pos, 78 // Special things include but not limit to: overflow clip, transform, fixed-pos,
79 // animation, mask, filter, ... etc. 79 // animation, mask, filter, ... etc.
80 // It expects to be invoked for each layout tree node in DOM order during 80 // It expects to be invoked for each layout tree node in DOM order during
81 // InPrePaint phase. 81 // InPrePaint phase.
82 class PaintPropertyTreeBuilder { 82 class PaintPropertyTreeBuilder {
83 public: 83 public:
84 PaintPropertyTreeBuilderContext setupInitialContext(); 84 PaintPropertyTreeBuilderContext setupInitialContext();
85 // Update the paint properties for |FrameView| and ensure the context is 85 // Update the paint properties for a frame and ensure the context is up to
86 // up to date. 86 // date.
87 void updatePropertiesAndContext(FrameView&, PaintPropertyTreeBuilderContext&); 87 void updateFramePropertiesAndContext(FrameView&,
88 PaintPropertyTreeBuilderContext&);
88 89
89 // Update the paint properties that affect this object (e.g., properties like 90 // Update the paint properties that affect this object (e.g., properties like
90 // paint offset translation) and ensure the context is up to date. 91 // paint offset translation) and ensure the context is up to date.
91 void updatePropertiesAndContextForSelf(const LayoutObject&, 92 void updatePropertiesAndContextForSelf(const LayoutObject&,
92 PaintPropertyTreeBuilderContext&); 93 PaintPropertyTreeBuilderContext&);
93 // Update the paint properties that affect children of this object (e.g., 94 // Update the paint properties that affect children of this object (e.g.,
94 // scroll offset transform) and ensure the context is up to date. 95 // scroll offset transform) and ensure the context is up to date.
95 void updatePropertiesAndContextForChildren(const LayoutObject&, 96 void updatePropertiesAndContextForChildren(const LayoutObject&,
96 PaintPropertyTreeBuilderContext&); 97 PaintPropertyTreeBuilderContext&);
97 98
(...skipping 26 matching lines...) Expand all
124 static void updateScrollAndScrollTranslation( 125 static void updateScrollAndScrollTranslation(
125 const LayoutObject&, 126 const LayoutObject&,
126 PaintPropertyTreeBuilderContext&); 127 PaintPropertyTreeBuilderContext&);
127 static void updateOutOfFlowContext(const LayoutObject&, 128 static void updateOutOfFlowContext(const LayoutObject&,
128 PaintPropertyTreeBuilderContext&); 129 PaintPropertyTreeBuilderContext&);
129 }; 130 };
130 131
131 } // namespace blink 132 } // namespace blink
132 133
133 #endif // PaintPropertyTreeBuilder_h 134 #endif // PaintPropertyTreeBuilder_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698