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 #include "config.h" | 5 #include "config.h" |
6 #include "core/rendering/PaintInfo.h" | 6 #include "core/rendering/PaintInfo.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 DisplayItem::Type PaintInfo::displayItemTypeForClipping() const | 10 DisplayItem::Type PaintInfo::displayItemTypeForClipping() const |
(...skipping 21 matching lines...) Expand all Loading... |
32 return DisplayItem::ClipBoxTextClip; | 32 return DisplayItem::ClipBoxTextClip; |
33 break; | 33 break; |
34 case PaintPhaseClippingMask: | 34 case PaintPhaseClippingMask: |
35 return DisplayItem::ClipBoxClippingMask; | 35 return DisplayItem::ClipBoxClippingMask; |
36 break; | 36 break; |
37 case PaintPhaseChildBlockBackground: | 37 case PaintPhaseChildBlockBackground: |
38 case PaintPhaseOutline: | 38 case PaintPhaseOutline: |
39 case PaintPhaseBlockBackground: | 39 case PaintPhaseBlockBackground: |
40 case PaintPhaseSelfOutline: | 40 case PaintPhaseSelfOutline: |
41 case PaintPhaseMask: | 41 case PaintPhaseMask: |
| 42 case PaintPhaseCaret: |
42 ASSERT_NOT_REACHED(); | 43 ASSERT_NOT_REACHED(); |
43 } | 44 } |
44 // This should never happen. | 45 // This should never happen. |
45 return DisplayItem::ClipBoxForeground; | 46 return DisplayItem::ClipBoxForeground; |
46 } | 47 } |
47 | 48 |
48 } // namespace blink | 49 } // namespace blink |
OLD | NEW |