OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ObjectPainter_h | 5 #ifndef ObjectPainter_h |
6 #define ObjectPainter_h | 6 #define ObjectPainter_h |
7 | 7 |
8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class Color; | 15 class Color; |
16 class GraphicsContext; | 16 class GraphicsContext; |
17 class LayoutPoint; | 17 class LayoutPoint; |
18 struct PaintInfo; | 18 struct PaintInfo; |
19 class LayoutObject; | 19 class LayoutObject; |
20 class ComputedStyle; | |
21 | 20 |
22 class ObjectPainter { | 21 class ObjectPainter { |
23 STACK_ALLOCATED(); | 22 STACK_ALLOCATED(); |
24 | 23 |
25 public: | 24 public: |
26 ObjectPainter(const LayoutObject& layoutObject) | 25 ObjectPainter(const LayoutObject& layoutObject) |
27 : m_layoutObject(layoutObject) {} | 26 : m_layoutObject(layoutObject) {} |
28 | 27 |
29 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset); | 28 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset); |
30 void paintInlineChildrenOutlines(const PaintInfo&, | 29 void paintInlineChildrenOutlines(const PaintInfo&, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 #if DCHECK_IS_ON() | 123 #if DCHECK_IS_ON() |
125 void doCheckPaintOffset(const PaintInfo&, const LayoutPoint& paintOffset); | 124 void doCheckPaintOffset(const PaintInfo&, const LayoutPoint& paintOffset); |
126 #endif | 125 #endif |
127 | 126 |
128 const LayoutObject& m_layoutObject; | 127 const LayoutObject& m_layoutObject; |
129 }; | 128 }; |
130 | 129 |
131 } // namespace blink | 130 } // namespace blink |
132 | 131 |
133 #endif | 132 #endif |
OLD | NEW |