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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 while (layoutView->frame()->ownerLayoutObject()) | 1087 while (layoutView->frame()->ownerLayoutObject()) |
1088 layoutView = layoutView->frame()->ownerLayoutObject()->view(); | 1088 layoutView = layoutView->frame()->ownerLayoutObject()->view(); |
1089 return layoutView; | 1089 return layoutView; |
1090 } | 1090 } |
1091 | 1091 |
1092 String LayoutObject::decoratedName() const | 1092 String LayoutObject::decoratedName() const |
1093 { | 1093 { |
1094 StringBuilder name; | 1094 StringBuilder name; |
1095 name.append(this->name()); | 1095 name.append(this->name()); |
1096 | 1096 |
| 1097 if (isAnonymous()) |
| 1098 name.append(" (anonymous)"); |
| 1099 if (style()) { |
| 1100 if (isAnonymousColumnsBlock()) |
| 1101 name.append(" (anonymous multi-column)"); |
| 1102 if (isAnonymousColumnSpanBlock()) |
| 1103 name.append(" (anonymous multi-column span)"); |
| 1104 } |
1097 if (isOutOfFlowPositioned()) | 1105 if (isOutOfFlowPositioned()) |
1098 name.append(" (positioned)"); | 1106 name.append(" (positioned)"); |
1099 if (isRelPositioned()) | 1107 if (isRelPositioned()) |
1100 name.append(" (relative positioned)"); | 1108 name.append(" (relative positioned)"); |
1101 if (isFloating()) | 1109 if (isFloating()) |
1102 name.append(" (floating)"); | 1110 name.append(" (floating)"); |
1103 | 1111 |
1104 return name.toString(); | 1112 return name.toString(); |
1105 } | 1113 } |
1106 | 1114 |
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3294 { | 3302 { |
3295 if (object1) { | 3303 if (object1) { |
3296 const blink::LayoutObject* root = object1; | 3304 const blink::LayoutObject* root = object1; |
3297 while (root->parent()) | 3305 while (root->parent()) |
3298 root = root->parent(); | 3306 root = root->parent(); |
3299 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3307 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3300 } | 3308 } |
3301 } | 3309 } |
3302 | 3310 |
3303 #endif | 3311 #endif |
OLD | NEW |