| 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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 return layoutView; | 1083 return layoutView; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 String LayoutObject::decoratedName() const | 1086 String LayoutObject::decoratedName() const |
| 1087 { | 1087 { |
| 1088 StringBuilder name; | 1088 StringBuilder name; |
| 1089 name.append(this->name()); | 1089 name.append(this->name()); |
| 1090 | 1090 |
| 1091 if (isAnonymous()) | 1091 if (isAnonymous()) |
| 1092 name.append(" (anonymous)"); | 1092 name.append(" (anonymous)"); |
| 1093 if (isOutOfFlowPositioned()) | 1093 // FIXME: Remove the special case for LayoutView here (requires rebaseline o
f all tests). |
| 1094 if (isOutOfFlowPositioned() && !isLayoutView()) |
| 1094 name.append(" (positioned)"); | 1095 name.append(" (positioned)"); |
| 1095 if (isRelPositioned()) | 1096 if (isRelPositioned()) |
| 1096 name.append(" (relative positioned)"); | 1097 name.append(" (relative positioned)"); |
| 1097 if (isFloating()) | 1098 if (isFloating()) |
| 1098 name.append(" (floating)"); | 1099 name.append(" (floating)"); |
| 1099 | 1100 |
| 1100 return name.toString(); | 1101 return name.toString(); |
| 1101 } | 1102 } |
| 1102 | 1103 |
| 1103 String LayoutObject::debugName() const | 1104 String LayoutObject::debugName() const |
| (...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3307 const blink::LayoutObject* root = object1; | 3308 const blink::LayoutObject* root = object1; |
| 3308 while (root->parent()) | 3309 while (root->parent()) |
| 3309 root = root->parent(); | 3310 root = root->parent(); |
| 3310 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3311 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3311 } else { | 3312 } else { |
| 3312 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3313 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3313 } | 3314 } |
| 3314 } | 3315 } |
| 3315 | 3316 |
| 3316 #endif | 3317 #endif |
| OLD | NEW |