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

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

Issue 2640863003: Inline PrePaintTreeWalk private methods and static functions (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Update the paint properties that affect this object (e.g., properties like 108 // Update the paint properties that affect this object (e.g., properties like
109 // paint offset translation) and ensure the context is up to date. 109 // paint offset translation) and ensure the context is up to date.
110 void updatePropertiesForSelf(const LayoutObject&, 110 void updatePropertiesForSelf(const LayoutObject&,
111 PaintPropertyTreeBuilderContext&); 111 PaintPropertyTreeBuilderContext&);
112 // Update the paint properties that affect children of this object (e.g., 112 // Update the paint properties that affect children of this object (e.g.,
113 // scroll offset transform) and ensure the context is up to date. 113 // scroll offset transform) and ensure the context is up to date.
114 void updatePropertiesForChildren(const LayoutObject&, 114 void updatePropertiesForChildren(const LayoutObject&,
115 PaintPropertyTreeBuilderContext&); 115 PaintPropertyTreeBuilderContext&);
116 116
117 private: 117 private:
118 static void updatePaintOffsetTranslation(const LayoutObject&, 118 inline static void updatePaintOffsetTranslation(
pdr. 2017/01/18 18:51:58 After seeing your other inline patch, I was experi
Xianzhu 2017/01/18 19:17:33 I looked into the generated code in a release buil
119 PaintPropertyTreeBuilderContext&);
120 static void updateTransform(const LayoutObject&,
121 PaintPropertyTreeBuilderContext&);
122 static void updateTransformForNonRootSVG(const LayoutObject&,
123 PaintPropertyTreeBuilderContext&);
124 static void updateEffect(const LayoutObject&,
125 PaintPropertyTreeBuilderContext&);
126 static void updateCssClip(const LayoutObject&,
127 PaintPropertyTreeBuilderContext&);
128 static void updateLocalBorderBoxContext(const LayoutObject&,
129 PaintPropertyTreeBuilderContext&);
130 static void updateScrollbarPaintOffset(const LayoutObject&,
131 PaintPropertyTreeBuilderContext&);
132 static void updateOverflowClip(const LayoutObject&,
133 PaintPropertyTreeBuilderContext&);
134 static void updatePerspective(const LayoutObject&,
135 PaintPropertyTreeBuilderContext&);
136 static void updateSvgLocalToBorderBoxTransform(
137 const LayoutObject&, 119 const LayoutObject&,
138 PaintPropertyTreeBuilderContext&); 120 PaintPropertyTreeBuilderContext&);
139 static void updateScrollAndScrollTranslation( 121 inline static void updateTransform(const LayoutObject&,
122 PaintPropertyTreeBuilderContext&);
123 inline static void updateTransformForNonRootSVG(
140 const LayoutObject&, 124 const LayoutObject&,
141 PaintPropertyTreeBuilderContext&); 125 PaintPropertyTreeBuilderContext&);
142 static void updateOutOfFlowContext(const LayoutObject&, 126 inline static void updateEffect(const LayoutObject&,
143 PaintPropertyTreeBuilderContext&); 127 PaintPropertyTreeBuilderContext&);
128 inline static void updateCssClip(const LayoutObject&,
129 PaintPropertyTreeBuilderContext&);
130 inline static void updateLocalBorderBoxContext(
131 const LayoutObject&,
132 PaintPropertyTreeBuilderContext&);
133 inline static void updateScrollbarPaintOffset(
134 const LayoutObject&,
135 PaintPropertyTreeBuilderContext&);
136 inline static void updateOverflowClip(const LayoutObject&,
137 PaintPropertyTreeBuilderContext&);
138 inline static void updatePerspective(const LayoutObject&,
139 PaintPropertyTreeBuilderContext&);
140 inline static void updateSvgLocalToBorderBoxTransform(
141 const LayoutObject&,
142 PaintPropertyTreeBuilderContext&);
143 inline static void updateScrollAndScrollTranslation(
144 const LayoutObject&,
145 PaintPropertyTreeBuilderContext&);
146 inline static void updateOutOfFlowContext(const LayoutObject&,
147 PaintPropertyTreeBuilderContext&);
144 }; 148 };
145 149
146 } // namespace blink 150 } // namespace blink
147 151
148 #endif // PaintPropertyTreeBuilder_h 152 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698