| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 case EndFloatClip: return "EndFloatClip"; | 71 case EndFloatClip: return "EndFloatClip"; |
| 72 case BeginClipPath: return "BeginClipPath"; | 72 case BeginClipPath: return "BeginClipPath"; |
| 73 case EndClipPath: return "EndClipPath"; | 73 case EndClipPath: return "EndClipPath"; |
| 74 case VideoBitmap: return "VideoBitmap"; | 74 case VideoBitmap: return "VideoBitmap"; |
| 75 case ImageBitmap: return "ImageBitmap"; | 75 case ImageBitmap: return "ImageBitmap"; |
| 76 case DragImage: return "DragImage"; | 76 case DragImage: return "DragImage"; |
| 77 case LinkHighlight: return "LinkHighlight"; | 77 case LinkHighlight: return "LinkHighlight"; |
| 78 case PageWidgetDelegateClip: return "PageWidgetDelegateClip"; | 78 case PageWidgetDelegateClip: return "PageWidgetDelegateClip"; |
| 79 case PageWidgetDelegateBackgroundFallback: return "PageWidgetDelegateBackgro
undFallback"; | 79 case PageWidgetDelegateBackgroundFallback: return "PageWidgetDelegateBackgro
undFallback"; |
| 80 case ViewBackground: return "ViewBackground"; | 80 case ViewBackground: return "ViewBackground"; |
| 81 case SVGFilter: return "SVGFilter"; |
| 81 } | 82 } |
| 82 ASSERT_NOT_REACHED(); | 83 ASSERT_NOT_REACHED(); |
| 83 return "Unknown"; | 84 return "Unknown"; |
| 84 } | 85 } |
| 85 | 86 |
| 86 WTF::String DisplayItem::asDebugString() const | 87 WTF::String DisplayItem::asDebugString() const |
| 87 { | 88 { |
| 88 WTF::StringBuilder stringBuilder; | 89 WTF::StringBuilder stringBuilder; |
| 89 stringBuilder.append('{'); | 90 stringBuilder.append('{'); |
| 90 dumpPropertiesAsDebugString(stringBuilder); | 91 dumpPropertiesAsDebugString(stringBuilder); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 103 stringBuilder.append(", "); | 104 stringBuilder.append(", "); |
| 104 } | 105 } |
| 105 stringBuilder.append("type: \""); | 106 stringBuilder.append("type: \""); |
| 106 stringBuilder.append(typeAsDebugString(type())); | 107 stringBuilder.append(typeAsDebugString(type())); |
| 107 stringBuilder.append('"'); | 108 stringBuilder.append('"'); |
| 108 } | 109 } |
| 109 | 110 |
| 110 #endif | 111 #endif |
| 111 | 112 |
| 112 } // namespace blink | 113 } // namespace blink |
| OLD | NEW |