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

Side by Side Diff: Source/core/layout/LayoutObject.cpp

Issue 1106693002: Move the anonymous decoration to decoratedName. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutRubyBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutInline.cpp ('k') | Source/core/layout/LayoutRubyBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698