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 BoxPainter_h | 5 #ifndef BoxPainter_h |
6 #define BoxPainter_h | 6 #define BoxPainter_h |
7 | 7 |
8 #include "core/paint/ObjectPainter.h" | 8 #include "core/paint/ObjectPainter.h" |
9 #include "core/rendering/RenderBoxModelObject.h" | 9 #include "core/rendering/RenderBoxModelObject.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
| 13 class BackgroundImageGeometry; |
13 class LayoutPoint; | 14 class LayoutPoint; |
14 struct PaintInfo; | 15 struct PaintInfo; |
15 class RenderBox; | 16 class RenderBox; |
16 class RenderObject; | 17 class RenderObject; |
17 | 18 |
18 class BoxPainter { | 19 class BoxPainter { |
19 public: | 20 public: |
20 BoxPainter(RenderBox& renderBox) : m_renderBox(renderBox) { } | 21 BoxPainter(RenderBox& renderBox) : m_renderBox(renderBox) { } |
21 void paint(PaintInfo&, const LayoutPoint&); | 22 void paint(PaintInfo&, const LayoutPoint&); |
22 | 23 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 BoxSide, bool firstEdgeMatches, bool secondEdgeMatches); | 64 BoxSide, bool firstEdgeMatches, bool secondEdgeMatches); |
64 static void clipBorderSideForComplexInnerPath(GraphicsContext*, const Rounde
dRect&, const RoundedRect&, BoxSide, const BorderEdge[]); | 65 static void clipBorderSideForComplexInnerPath(GraphicsContext*, const Rounde
dRect&, const RoundedRect&, BoxSide, const BorderEdge[]); |
65 | 66 |
66 // FIXME: this should be const. | 67 // FIXME: this should be const. |
67 RenderBox& m_renderBox; | 68 RenderBox& m_renderBox; |
68 }; | 69 }; |
69 | 70 |
70 } // namespace blink | 71 } // namespace blink |
71 | 72 |
72 #endif | 73 #endif |
OLD | NEW |