Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp

Issue 1497873002: Make DisplayItemClient an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698