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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder)
const | 217 void DisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder)
const |
218 { | 218 { |
219 if (!isValid()) { | 219 if (!isValid()) { |
220 stringBuilder.append("valid: false, originalDebugString: "); | 220 stringBuilder.append("valid: false, originalDebugString: "); |
221 // This is the original debug string which is in json format. | 221 // This is the original debug string which is in json format. |
222 stringBuilder.append(clientDebugString()); | 222 stringBuilder.append(clientDebugString()); |
223 return; | 223 return; |
224 } | 224 } |
225 | 225 |
226 stringBuilder.append(String::format("client: \"%p", client())); | 226 stringBuilder.append(String::format("client: \"%p", &client())); |
227 if (!clientDebugString().isEmpty()) { | 227 if (!clientDebugString().isEmpty()) { |
228 stringBuilder.append(' '); | 228 stringBuilder.append(' '); |
229 stringBuilder.append(clientDebugString()); | 229 stringBuilder.append(clientDebugString()); |
230 } | 230 } |
231 stringBuilder.append("\", type: \""); | 231 stringBuilder.append("\", type: \""); |
232 stringBuilder.append(typeAsDebugString(type())); | 232 stringBuilder.append(typeAsDebugString(type())); |
233 stringBuilder.append('"'); | 233 stringBuilder.append('"'); |
234 if (m_skippedCache) | 234 if (m_skippedCache) |
235 stringBuilder.append(", skippedCache: true"); | 235 stringBuilder.append(", skippedCache: true"); |
236 if (m_scope) | 236 if (m_scope) |
237 stringBuilder.append(String::format(", scope: %d", m_scope)); | 237 stringBuilder.append(String::format(", scope: %d", m_scope)); |
238 } | 238 } |
239 | 239 |
240 #endif | 240 #endif |
241 | 241 |
242 } // namespace blink | 242 } // namespace blink |
OLD | NEW |