| 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 struct SameSizeAsDisplayItem { | 10 struct SameSizeAsDisplayItem { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 return "Drawing" + specialDrawingTypeAsDebugString(type); | 121 return "Drawing" + specialDrawingTypeAsDebugString(type); |
| 122 } | 122 } |
| 123 | 123 |
| 124 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) | 124 static WTF::String clipTypeAsDebugString(DisplayItem::Type type) |
| 125 { | 125 { |
| 126 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); | 126 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipBox); |
| 127 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); | 127 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipColumnBounds); |
| 128 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); | 128 PAINT_PHASE_BASED_DEBUG_STRINGS(ClipLayerFragment); |
| 129 | 129 |
| 130 switch (type) { | 130 switch (type) { |
| 131 DEBUG_STRING_CASE(ClipDescendantStackingContext); |
| 131 DEBUG_STRING_CASE(ClipFileUploadControlRect); | 132 DEBUG_STRING_CASE(ClipFileUploadControlRect); |
| 132 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect); | 133 DEBUG_STRING_CASE(ClipFrameToVisibleContentRect); |
| 133 DEBUG_STRING_CASE(ClipFrameScrollbars); | 134 DEBUG_STRING_CASE(ClipFrameScrollbars); |
| 134 DEBUG_STRING_CASE(ClipLayerBackground); | 135 DEBUG_STRING_CASE(ClipLayerBackground); |
| 135 DEBUG_STRING_CASE(ClipLayerColumnBounds); | 136 DEBUG_STRING_CASE(ClipLayerColumnBounds); |
| 136 DEBUG_STRING_CASE(ClipLayerFilter); | 137 DEBUG_STRING_CASE(ClipLayerFilter); |
| 137 DEBUG_STRING_CASE(ClipLayerForeground); | 138 DEBUG_STRING_CASE(ClipLayerForeground); |
| 138 DEBUG_STRING_CASE(ClipLayerParent); | 139 DEBUG_STRING_CASE(ClipLayerParent); |
| 139 DEBUG_STRING_CASE(ClipLayerOverflowControls); | 140 DEBUG_STRING_CASE(ClipLayerOverflowControls); |
| 140 DEBUG_STRING_CASE(ClipNodeImage); | 141 DEBUG_STRING_CASE(ClipNodeImage); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 stringBuilder.append('"'); | 231 stringBuilder.append('"'); |
| 231 if (m_skippedCache) | 232 if (m_skippedCache) |
| 232 stringBuilder.append(", skippedCache: true"); | 233 stringBuilder.append(", skippedCache: true"); |
| 233 if (m_scope) | 234 if (m_scope) |
| 234 stringBuilder.append(String::format(", scope: %d", m_scope)); | 235 stringBuilder.append(String::format(", scope: %d", m_scope)); |
| 235 } | 236 } |
| 236 | 237 |
| 237 #endif | 238 #endif |
| 238 | 239 |
| 239 } // namespace blink | 240 } // namespace blink |
| OLD | NEW |