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

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

Issue 1172153004: Absolute-position the initial containing block. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698