| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 if (isText() && toLayoutText(this)->isTextFragment()) | 1311 if (isText() && toLayoutText(this)->isTextFragment()) |
| 1312 stringBuilder.append(String::format(" \"%s\" ", toLayoutText(this)->text
().ascii().data())); | 1312 stringBuilder.append(String::format(" \"%s\" ", toLayoutText(this)->text
().ascii().data())); |
| 1313 | 1313 |
| 1314 if (virtualContinuation()) | 1314 if (virtualContinuation()) |
| 1315 stringBuilder.append(String::format(" continuation=%p", virtualContinuat
ion())); | 1315 stringBuilder.append(String::format(" continuation=%p", virtualContinuat
ion())); |
| 1316 | 1316 |
| 1317 if (node()) { | 1317 if (node()) { |
| 1318 while (stringBuilder.length() < showTreeCharacterOffset) | 1318 while (stringBuilder.length() < showTreeCharacterOffset) |
| 1319 stringBuilder.append(' '); | 1319 stringBuilder.append(' '); |
| 1320 stringBuilder.append('\t'); | 1320 stringBuilder.append('\t'); |
| 1321 node()->showNode(stringBuilder.toString().utf8().data()); | 1321 WTFLogAlways("%s%s", stringBuilder.toString().utf8().data(), node()->toS
tring().utf8().data()); |
| 1322 } else { | 1322 } else { |
| 1323 WTFLogAlways("%s", stringBuilder.toString().utf8().data()); | 1323 WTFLogAlways("%s", stringBuilder.toString().utf8().data()); |
| 1324 } | 1324 } |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 void LayoutObject::showLayoutTreeAndMark(const LayoutObject* markedObject1, cons
t char* markedLabel1, const LayoutObject* markedObject2, const char* markedLabel
2, unsigned depth) const | 1327 void LayoutObject::showLayoutTreeAndMark(const LayoutObject* markedObject1, cons
t char* markedLabel1, const LayoutObject* markedObject2, const char* markedLabel
2, unsigned depth) const |
| 1328 { | 1328 { |
| 1329 StringBuilder stringBuilder; | 1329 StringBuilder stringBuilder; |
| 1330 if (markedObject1 == this && markedLabel1) | 1330 if (markedObject1 == this && markedLabel1) |
| 1331 stringBuilder.append(markedLabel1); | 1331 stringBuilder.append(markedLabel1); |
| (...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3231 const blink::LayoutObject* root = object1; | 3231 const blink::LayoutObject* root = object1; |
| 3232 while (root->parent()) | 3232 while (root->parent()) |
| 3233 root = root->parent(); | 3233 root = root->parent(); |
| 3234 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3234 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3235 } else { | 3235 } else { |
| 3236 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3236 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3237 } | 3237 } |
| 3238 } | 3238 } |
| 3239 | 3239 |
| 3240 #endif | 3240 #endif |
| OLD | NEW |