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 "platform/graphics/paint/DisplayItem.h" | 6 #include "platform/graphics/paint/DisplayItem.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 #ifndef NDEBUG | 10 #ifndef NDEBUG |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW
idgetDelegateBackgroundFallback"; | 49 case DisplayItem::PageWidgetDelegateBackgroundFallback: return "DrawingPageW
idgetDelegateBackgroundFallback"; |
50 case DisplayItem::Resizer: return "DrawingResizer"; | 50 case DisplayItem::Resizer: return "DrawingResizer"; |
51 case DisplayItem::SVGFilter: return "DrawingSVGFilter"; | 51 case DisplayItem::SVGFilter: return "DrawingSVGFilter"; |
52 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner"; | 52 case DisplayItem::ScrollbarCorner: return "DrawingScrollbarCorner"; |
53 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal"; | 53 case DisplayItem::ScrollbarHorizontal: return "DrawingScrollbarHorizontal"; |
54 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark"; | 54 case DisplayItem::ScrollbarTickMark: return "DrawingScrollbarTickMark"; |
55 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical"; | 55 case DisplayItem::ScrollbarVertical: return "DrawingScrollbarVertical"; |
56 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap"; | 56 case DisplayItem::VideoBitmap: return "DrawingVideoBitmap"; |
57 case DisplayItem::ViewBackground: return "DrawingViewBackground"; | 57 case DisplayItem::ViewBackground: return "DrawingViewBackground"; |
58 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill"; | 58 case DisplayItem::DebugRedFill: return "DrawingDebugRedFill"; |
| 59 case DisplayItem::PageOverlay: return "PageOverlay"; |
59 default: | 60 default: |
60 ASSERT_NOT_REACHED(); | 61 ASSERT_NOT_REACHED(); |
61 return "Unknown"; | 62 return "Unknown"; |
62 } | 63 } |
63 } | 64 } |
64 | 65 |
65 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) | 66 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) |
66 { | 67 { |
67 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); | 68 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); |
68 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); | 69 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 stringBuilder.append("type: \""); | 145 stringBuilder.append("type: \""); |
145 stringBuilder.append(typeAsDebugString(type())); | 146 stringBuilder.append(typeAsDebugString(type())); |
146 stringBuilder.append('"'); | 147 stringBuilder.append('"'); |
147 if (m_id.scopeContainer) | 148 if (m_id.scopeContainer) |
148 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); | 149 stringBuilder.append(String::format(", scope: \"%p,%d\"", m_id.scopeCont
ainer, m_id.scopeId)); |
149 } | 150 } |
150 | 151 |
151 #endif | 152 #endif |
152 | 153 |
153 } // namespace blink | 154 } // namespace blink |
OLD | NEW |