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

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

Issue 1952763002: Move showLineTreeAndMark() to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | no next file » | 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 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 node()->showTreeForThis(); 1652 node()->showTreeForThis();
1653 } 1653 }
1654 1654
1655 void LayoutObject::showLayoutTreeForThis() const 1655 void LayoutObject::showLayoutTreeForThis() const
1656 { 1656 {
1657 showLayoutTree(this, 0); 1657 showLayoutTree(this, 0);
1658 } 1658 }
1659 1659
1660 void LayoutObject::showLineTreeForThis() const 1660 void LayoutObject::showLineTreeForThis() const
1661 { 1661 {
1662 if (containingBlock()) 1662 if (LayoutBlock* cb = containingBlock()) {
1663 containingBlock()->showLineTreeAndMark(0, 0, 0, 0, this); 1663 if (cb->isLayoutBlockFlow())
wkorman 2016/05/04 20:30:41 Does this change behavior of what we output at all
mstensho (USE GERRIT) 2016/05/04 20:54:25 In theory, yes. If someone wants to display the li
1664 toLayoutBlockFlow(cb)->showLineTreeAndMark(0, 0, 0, 0, this);
wkorman 2016/05/04 20:30:41 Use nullptr rather than 0. Is it untoward re: cons
mstensho (USE GERRIT) 2016/05/04 20:54:25 Done.
1665 }
1664 } 1666 }
1665 1667
1666 void LayoutObject::showLayoutObject() const 1668 void LayoutObject::showLayoutObject() const
1667 { 1669 {
1668 showLayoutObject(0); 1670 showLayoutObject(0);
1669 } 1671 }
1670 1672
1671 void LayoutObject::showLayoutObject(int printedCharacters) const 1673 void LayoutObject::showLayoutObject(int printedCharacters) const
1672 { 1674 {
1673 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this); 1675 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this);
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
3706 const blink::LayoutObject* root = object1; 3708 const blink::LayoutObject* root = object1;
3707 while (root->parent()) 3709 while (root->parent())
3708 root = root->parent(); 3710 root = root->parent();
3709 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3711 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3710 } else { 3712 } else {
3711 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3713 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3712 } 3714 }
3713 } 3715 }
3714 3716
3715 #endif 3717 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698