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

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

Issue 2640863003: Inline PrePaintTreeWalk private methods and static functions (Closed)
Patch Set: ALWAYS_INLINE 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // paint offset translation) and ensure the context is up to date. Also 109 // paint offset translation) and ensure the context is up to date. Also
110 // handles updating the object's paintOffset. 110 // handles updating the object's paintOffset.
111 void updatePropertiesForSelf(const LayoutObject&, 111 void updatePropertiesForSelf(const LayoutObject&,
112 PaintPropertyTreeBuilderContext&); 112 PaintPropertyTreeBuilderContext&);
113 // Update the paint properties that affect children of this object (e.g., 113 // Update the paint properties that affect children of this object (e.g.,
114 // scroll offset transform) and ensure the context is up to date. 114 // scroll offset transform) and ensure the context is up to date.
115 void updatePropertiesForChildren(const LayoutObject&, 115 void updatePropertiesForChildren(const LayoutObject&,
116 PaintPropertyTreeBuilderContext&); 116 PaintPropertyTreeBuilderContext&);
117 117
118 private: 118 private:
119 static void updatePaintOffsetTranslation(const LayoutObject&, 119 ALWAYS_INLINE static void updatePaintOffsetTranslation(
120 PaintPropertyTreeBuilderContext&);
121 static void updateTransform(const LayoutObject&,
122 PaintPropertyTreeBuilderContext&);
123 static void updateTransformForNonRootSVG(const LayoutObject&,
124 PaintPropertyTreeBuilderContext&);
125 static void updateEffect(const LayoutObject&,
126 PaintPropertyTreeBuilderContext&);
127 static void updateCssClip(const LayoutObject&,
128 PaintPropertyTreeBuilderContext&);
129 static void updateLocalBorderBoxContext(const LayoutObject&,
130 PaintPropertyTreeBuilderContext&);
131 static void updateScrollbarPaintOffset(const LayoutObject&,
132 PaintPropertyTreeBuilderContext&);
133 static void updateOverflowClip(const LayoutObject&,
134 PaintPropertyTreeBuilderContext&);
135 static void updatePerspective(const LayoutObject&,
136 PaintPropertyTreeBuilderContext&);
137 static void updateSvgLocalToBorderBoxTransform(
138 const LayoutObject&, 120 const LayoutObject&,
139 PaintPropertyTreeBuilderContext&); 121 PaintPropertyTreeBuilderContext&);
140 static void updateScrollAndScrollTranslation( 122 ALWAYS_INLINE static void updateTransform(const LayoutObject&,
123 PaintPropertyTreeBuilderContext&);
124 ALWAYS_INLINE static void updateTransformForNonRootSVG(
141 const LayoutObject&, 125 const LayoutObject&,
142 PaintPropertyTreeBuilderContext&); 126 PaintPropertyTreeBuilderContext&);
143 static void updateOutOfFlowContext(const LayoutObject&, 127 ALWAYS_INLINE static void updateEffect(const LayoutObject&,
144 PaintPropertyTreeBuilderContext&); 128 PaintPropertyTreeBuilderContext&);
129 ALWAYS_INLINE static void updateCssClip(const LayoutObject&,
130 PaintPropertyTreeBuilderContext&);
131 ALWAYS_INLINE static void updateLocalBorderBoxContext(
132 const LayoutObject&,
133 PaintPropertyTreeBuilderContext&);
134 ALWAYS_INLINE static void updateScrollbarPaintOffset(
135 const LayoutObject&,
136 PaintPropertyTreeBuilderContext&);
137 ALWAYS_INLINE static void updateOverflowClip(
138 const LayoutObject&,
139 PaintPropertyTreeBuilderContext&);
140 ALWAYS_INLINE static void updatePerspective(const LayoutObject&,
141 PaintPropertyTreeBuilderContext&);
142 ALWAYS_INLINE static void updateSvgLocalToBorderBoxTransform(
143 const LayoutObject&,
144 PaintPropertyTreeBuilderContext&);
145 ALWAYS_INLINE static void updateScrollAndScrollTranslation(
146 const LayoutObject&,
147 PaintPropertyTreeBuilderContext&);
148 ALWAYS_INLINE static void updateOutOfFlowContext(
149 const LayoutObject&,
150 PaintPropertyTreeBuilderContext&);
145 }; 151 };
146 152
147 } // namespace blink 153 } // namespace blink
148 154
149 #endif // PaintPropertyTreeBuilder_h 155 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698