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