OLD | NEW |
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 BoxBorderPainter_h | 5 #ifndef BoxBorderPainter_h |
6 #define BoxBorderPainter_h | 6 #define BoxBorderPainter_h |
7 | 7 |
8 #include "core/layout/LayoutBoxModelObject.h" | 8 #include "core/layout/BackgroundBleedAvoidance.h" |
9 #include "core/style/BorderEdge.h" | 9 #include "core/style/BorderEdge.h" |
10 #include "platform/geometry/FloatRoundedRect.h" | 10 #include "platform/geometry/FloatRoundedRect.h" |
11 #include "platform/heap/Heap.h" | |
12 | 11 |
13 namespace blink { | 12 namespace blink { |
14 | 13 |
15 class ComputedStyle; | 14 class ComputedStyle; |
| 15 class GraphicsContext; |
16 class IntRect; | 16 class IntRect; |
17 class LayoutBox; | 17 class LayoutBox; |
18 class LayoutRect; | 18 class LayoutRect; |
19 struct PaintInfo; | 19 struct PaintInfo; |
| 20 class Path; |
| 21 |
| 22 typedef unsigned BorderEdgeFlags; |
20 | 23 |
21 class BoxBorderPainter { | 24 class BoxBorderPainter { |
22 STACK_ALLOCATED(); | 25 STACK_ALLOCATED(); |
23 public: | 26 public: |
24 BoxBorderPainter(const LayoutRect& borderRect, const ComputedStyle&, | 27 BoxBorderPainter(const LayoutRect& borderRect, const ComputedStyle&, |
25 BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogic
alRightEdge); | 28 BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogic
alRightEdge); |
26 | 29 |
27 BoxBorderPainter(const ComputedStyle&, const LayoutRect& outer, const Layout
Rect& inner, | 30 BoxBorderPainter(const ComputedStyle&, const LayoutRect& outer, const Layout
Rect& inner, |
28 const BorderEdge& uniformEdgeInfo); | 31 const BorderEdge& uniformEdgeInfo); |
29 | 32 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool m_isUniformStyle; | 82 bool m_isUniformStyle; |
80 bool m_isUniformWidth; | 83 bool m_isUniformWidth; |
81 bool m_isUniformColor; | 84 bool m_isUniformColor; |
82 bool m_isRounded; | 85 bool m_isRounded; |
83 bool m_hasAlpha; | 86 bool m_hasAlpha; |
84 }; | 87 }; |
85 | 88 |
86 } // namespace blink | 89 } // namespace blink |
87 | 90 |
88 #endif | 91 #endif |
OLD | NEW |