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 RoundedInnerRectClipper_h | 5 #ifndef RoundedInnerRectClipper_h |
6 #define RoundedInnerRectClipper_h | 6 #define RoundedInnerRectClipper_h |
7 | 7 |
8 #include "core/rendering/PaintPhase.h" | 8 #include "core/rendering/PaintPhase.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class FloatRoundedRect; | 13 class FloatRoundedRect; |
14 class LayoutRect; | 14 class LayoutRect; |
15 class RenderObject; | 15 class LayoutObject; |
16 struct PaintInfo; | 16 struct PaintInfo; |
17 | 17 |
18 enum RoundedInnerRectClipperBehavior { | 18 enum RoundedInnerRectClipperBehavior { |
19 ApplyToDisplayListIfEnabled, | 19 ApplyToDisplayListIfEnabled, |
20 ApplyToContext | 20 ApplyToContext |
21 }; | 21 }; |
22 | 22 |
23 class RoundedInnerRectClipper { | 23 class RoundedInnerRectClipper { |
24 public: | 24 public: |
25 RoundedInnerRectClipper(RenderObject&, const PaintInfo&, const LayoutRect&,
const FloatRoundedRect& clipRect, RoundedInnerRectClipperBehavior); | 25 RoundedInnerRectClipper(LayoutObject&, const PaintInfo&, const LayoutRect&,
const FloatRoundedRect& clipRect, RoundedInnerRectClipperBehavior); |
26 ~RoundedInnerRectClipper(); | 26 ~RoundedInnerRectClipper(); |
27 | 27 |
28 private: | 28 private: |
29 RenderObject& m_renderer; | 29 LayoutObject& m_renderer; |
30 const PaintInfo& m_paintInfo; | 30 const PaintInfo& m_paintInfo; |
31 bool m_useDisplayItemList; | 31 bool m_useDisplayItemList; |
32 DisplayItem::Type m_clipType; | 32 DisplayItem::Type m_clipType; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace blink | 35 } // namespace blink |
36 | 36 |
37 #endif // RoundedInnerRectClipper_h | 37 #endif // RoundedInnerRectClipper_h |
OLD | NEW |